1234567891011121314151617181920212223242526272829303132333435363738 |
- module.exports = {
- create: {
- requestBody: ["!schid", "year", "planid", "remark", "daterange", "arrange"],
- },
- destroy: {
- params: ["!id"],
- service: "delete",
- },
- update: {
- params: ["!id"],
- requestBody: ["schid", "year", "planid", "remark", "daterange", "arrange"],
- },
- show: {
- parameters: {
- params: ["!id"],
- },
- service: "fetch",
- },
- index: {
- parameters: {
- query: {
- schid: "schid",
- year: "year",
- planid: "planid",
- remark: "remark",
- daterange: "daterange",
- arrange: "arrange",
- },
- },
- service: "query",
- options: {
- query: ["skip", "limit"],
- sort: ["meta.createdAt"],
- desc: true,
- count: true,
- },
- },
- };
|