|
@@ -1,84 +1,87 @@
|
|
|
module.exports = {
|
|
|
create: {
|
|
|
requestBody: [
|
|
|
- "!name",
|
|
|
- "number",
|
|
|
- "batchid",
|
|
|
- "termid",
|
|
|
- "planid",
|
|
|
- "planyearid",
|
|
|
- "headteacherid",
|
|
|
- "lyteacherid",
|
|
|
- "yclocationid",
|
|
|
- "kzjhlocationid",
|
|
|
- "kbyslocationid",
|
|
|
- "jslocationid",
|
|
|
- "lessonid",
|
|
|
- "type",
|
|
|
+ '!name',
|
|
|
+ 'number',
|
|
|
+ 'batchid',
|
|
|
+ 'termid',
|
|
|
+ 'planid',
|
|
|
+ 'planyearid',
|
|
|
+ 'headteacherid',
|
|
|
+ 'lyteacherid',
|
|
|
+ 'rjteacherid',
|
|
|
+ 'yclocationid',
|
|
|
+ 'kzjhlocationid',
|
|
|
+ 'kbyslocationid',
|
|
|
+ 'jslocationid',
|
|
|
+ 'lessonid',
|
|
|
+ 'type',
|
|
|
],
|
|
|
},
|
|
|
destroy: {
|
|
|
- params: ["!id"],
|
|
|
- service: "delete",
|
|
|
+ params: ['!id'],
|
|
|
+ service: 'delete',
|
|
|
},
|
|
|
update: {
|
|
|
- params: ["!id"],
|
|
|
+ params: ['!id'],
|
|
|
requestBody: [
|
|
|
- "name",
|
|
|
- "number",
|
|
|
- "batchid",
|
|
|
- "termid",
|
|
|
- "planid",
|
|
|
- "planyearid",
|
|
|
- "headteacherid",
|
|
|
- "lyteacherid",
|
|
|
- "yclocationid",
|
|
|
- "kzjhlocationid",
|
|
|
- "kbyslocationid",
|
|
|
- "jslocationid",
|
|
|
- "lessonid",
|
|
|
- "type",
|
|
|
+ 'name',
|
|
|
+ 'number',
|
|
|
+ 'batchid',
|
|
|
+ 'termid',
|
|
|
+ 'planid',
|
|
|
+ 'planyearid',
|
|
|
+ 'headteacherid',
|
|
|
+ 'lyteacherid',
|
|
|
+ 'rjteacherid',
|
|
|
+ 'yclocationid',
|
|
|
+ 'kzjhlocationid',
|
|
|
+ 'kbyslocationid',
|
|
|
+ 'jslocationid',
|
|
|
+ 'lessonid',
|
|
|
+ 'type',
|
|
|
],
|
|
|
},
|
|
|
show: {
|
|
|
parameters: {
|
|
|
- params: ["!id"],
|
|
|
+ params: ['!id'],
|
|
|
},
|
|
|
- service: "fetch",
|
|
|
+ service: 'fetch',
|
|
|
},
|
|
|
index: {
|
|
|
parameters: {
|
|
|
query: {
|
|
|
- name: "name",
|
|
|
- number: "number",
|
|
|
- batchid: "batchid",
|
|
|
- termid: "termid",
|
|
|
- planid: "planid",
|
|
|
- planyearid: "planyearid",
|
|
|
- headteacherid: "headteacherid",
|
|
|
- lyteacherid: "lyteacherid",
|
|
|
- yclocationid: "yclocationid",
|
|
|
- kzjhlocationid: "kzjhlocationid",
|
|
|
- kbyslocationid: "kbyslocationid",
|
|
|
- jslocationid: "jslocationid",
|
|
|
- lessonid: "lessonid",
|
|
|
- type: "type",
|
|
|
+ name: 'name',
|
|
|
+ number: 'number',
|
|
|
+ batchid: 'batchid',
|
|
|
+ termid: 'termid',
|
|
|
+ planid: 'planid',
|
|
|
+ planyearid: 'planyearid',
|
|
|
+ headteacherid: 'headteacherid',
|
|
|
+ lyteacherid: 'lyteacherid',
|
|
|
+ rjteacherid: 'rjteacherid',
|
|
|
+ yclocationid: 'yclocationid',
|
|
|
+ kzjhlocationid: 'kzjhlocationid',
|
|
|
+ kbyslocationid: 'kbyslocationid',
|
|
|
+ jslocationid: 'jslocationid',
|
|
|
+ lessonid: 'lessonid',
|
|
|
+ type: 'type',
|
|
|
},
|
|
|
},
|
|
|
- service: "query",
|
|
|
+ service: 'query',
|
|
|
options: {
|
|
|
- query: ["skip", "limit"],
|
|
|
- sort: ["meta.createdAt"],
|
|
|
+ query: ['skip', 'limit'],
|
|
|
+ sort: ['meta.createdAt'],
|
|
|
desc: true,
|
|
|
count: true,
|
|
|
},
|
|
|
},
|
|
|
toSetClassSetting: {
|
|
|
parameters: {
|
|
|
- query:{
|
|
|
- classid:"classid"
|
|
|
- }
|
|
|
+ query: {
|
|
|
+ classid: 'classid',
|
|
|
+ },
|
|
|
},
|
|
|
- service: "toSetClassSetting",
|
|
|
+ service: 'toSetClassSetting',
|
|
|
},
|
|
|
};
|