1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192 |
- module.exports = {
- create: {
- requestBody: [
- "user_id",
- "name",
- "apply_name",
- "type",
- "inventer",
- "contact",
- "phone",
- "email",
- "date",
- "questions",
- "desc",
- "admin_id",
- "is_mech",
- "mechanism_id",
- "mechanism_name",
- "status",
- ],
- },
- destroy: {
- params: ["!id"],
- service: "delete",
- },
- update: {
- params: ["!id"],
- requestBody: [
- "user_id",
- "name",
- "apply_name",
- "type",
- "inventer",
- "contact",
- "phone",
- "email",
- "date",
- "questions",
- "desc",
- "admin_id",
- "is_mech",
- "mechanism_id",
- "mechanism_name",
- "status",
- ],
- },
- show: {
- parameters: {
- params: ["!id"],
- },
- service: "fetch",
- },
- index: {
- parameters: {
- query: {
- user_id: "user_id",
- admin_id: "admin_id",
- name: "name",
- apply_name: "apply_name",
- status: "status",
- is_mech: "is_mech",
- mechanism_id: "mechanism_id",
- mechanism_name: "mechanism_name",
- type: "type",
- "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"],
- },
- import: {
- requestBody: ["uri"],
- },
- cacheImport: {
- requestBody: ["data", "temp_id"],
- },
- toExport: {
- requestBody: ["id"],
- },
- };
|