12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 |
- module.exports = {
- create: {
- requestBody: [
- '!name',
- 'number',
- 'batchid',
- 'termid',
- 'planid',
- 'planyearid',
- 'headteacherid',
- 'lyteacherid',
- 'yclocationid',
- 'kzjhlocationid',
- 'kbyslocationid',
- 'jslocationid',
- 'lessonid',
- 'type'
- ]
- },
- destroy: {
- params: ['!id'],
- service: 'delete'
- },
- update: {
- params: ['!id'],
- requestBody: [
- 'name',
- 'number',
- 'batchid',
- 'termid',
- 'planid',
- 'planyearid',
- 'headteacherid',
- 'lyteacherid',
- 'yclocationid',
- 'kzjhlocationid',
- 'kbyslocationid',
- 'jslocationid',
- 'lessonid',
- 'type'
- ]
- },
- show: {
- parameters: {
- params: ['!id']
- },
- 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'
- }
- },
- service: 'query',
- options: {
- query: ['skip', 'limit'],
- sort: ['meta.createdAt'],
- desc: true,
- count: true
- }
- },
- };
|