123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 |
- module.exports = {
- create: {
- requestBody: [
- "user_id",
- "admin_id",
- "create_number",
- "name",
- "apply_personal",
- "type",
- "inventor",
- "contact",
- "phone",
- "email",
- "questions",
- "status",
- "file",
- ],
- },
- destroy: {
- params: ["!id"],
- service: "delete",
- },
- update: {
- params: ["!id"],
- requestBody: [
- "user_id",
- "admin_id",
- "create_number",
- "name",
- "apply_personal",
- "type",
- "inventor",
- "contact",
- "phone",
- "email",
- "questions",
- "status",
- "file",
- ],
- },
- show: {
- parameters: {
- params: ["!id"],
- },
- service: "fetch",
- },
- index: {
- parameters: {
- query: {
- user_id: "user_id",
- admin_id: "admin_id",
- create_number: "create_number",
- name: "name",
- apply_name: "apply_name",
- type: "type",
- status: "status",
- "create_time@start": "create_time@start",
- "create_time@end": "create_time@end",
- },
- // options: {
- // "meta.state": 0 // 默认条件
- // },
- },
- service: "query",
- options: {
- query: ["skip", "limit"],
- sort: ["meta.createdAt"],
- desc: true,
- count: true,
- },
- },
- check: {
- requestBody: ["id", "status", "remark", "file"],
- },
- };
|