123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- module.exports = {
- create: {
- requestBody: [
- 'column_id',
- 'column_name',
- '!title',
- 'titlejj',
- 'orgin',
- 'publish',
- 'publish_time',
- 'content',
- 'picture'
- ]
- },
- destroy: {
- params: ['!id'],
- service: 'delete'
- },
- update: {
- params: ['!id'],
- requestBody: [
- 'column_id',
- 'column_name',
- '!title',
- 'titlejj',
- 'orgin',
- 'publish',
- 'publish_time',
- 'content',
- 'picture'
- ]
- },
- show: {
- parameters: {
- params: ['!id']
- },
- service: 'fetch'
- },
- index: {
- parameters: {
- query: {
- column_id : 'column_id',
- column_name : 'column_name',
- title : 'title',
- orgin : 'orgin',
- publish: 'publish',
- publish_time: 'publish_time',
- content : 'content',
- picture : 'picture'
- }
- },
- service: 'query',
- options: {
- query: ['skip', 'limit'],
- sort: ['meta.createdAt'],
- desc: true,
- count: true
- }
- },
- };
|