1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192 |
- module.exports = {
- create: {
- requestBody: [
- "create_number",
- "create_date",
- "success_number",
- "success_date",
- "name",
- "inventor",
- "address",
- "apply_personal",
- "term",
- "type",
- "agent_personal",
- "agent",
- "abstract",
- "img_url",
- "origin",
- ],
- },
- destroy: {
- params: ["!id"],
- service: "delete",
- },
- update: {
- params: ["!id"],
- requestBody: [
- "create_number",
- "create_date",
- "success_number",
- "success_date",
- "name",
- "inventor",
- "address",
- "apply_personal",
- "term",
- "type",
- "agent_personal",
- "agent",
- "abstract",
- "img_url",
- "origin",
- ],
- },
- show: {
- parameters: {
- params: ["!id"],
- },
- service: "fetch",
- },
- index: {
- parameters: {
- query: {
- create_number: "create_number",
- create_date: "create_date",
- create_number: "create_number",
- success_date: "success_date",
- name: "%name%",
- inventor: "%inventor%",
- address: "address",
- apply_personal: "%apply_personal%",
- term: "term",
- type: "type",
- agent_personal: "agent_personal",
- agent: "agent",
- origin: "%origin%",
- code:"code"
- },
- },
- service: "query",
- options: {
- query: ["skip", "limit"],
- sort: ["meta.createdAt"],
- desc: true,
- count: true,
- },
- },
- toImport: {
- requestBody: ["uri", "origin"],
- service: "toImport",
- },
- toExport: {
- requestBody: ["user"],
- service: "toExport",
- },
- getByCN: {
- parameters: {
- params: ["!create_number"],
- },
- service: "getByCreateNumber",
- },
- };
|