123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113 |
- module.exports = {
- create: {
- requestBody: [
- 'name',
- 'contacts',
- 'phone',
- 'qqwx',
- 'email',
- 'type',
- 'status',
- 'user_id',
- 'field',
- 'cooperation',
- 'company',
- 'condition',
- 'image',
- 'expect',
- 'demand',
- 'budget',
- 'requirementdesc',
- 'present',
- 'achievestatus',
- 'achieveown',
- 'achievesource',
- 'intentionprice',
- 'patent',
- 'roadshow',
- 'achievebrief',
- 'features',
- 'team',
- 'messattribute',
- 'informationdesc',
- 'coreelements',
- 'priceinfo',
- 'remark',
- ],
- },
- destroy: {
- params: ['!id'],
- service: 'delete',
- },
- update: {
- params: ['!id'],
- requestBody: [
- 'name',
- 'contacts',
- 'phone',
- 'qqwx',
- 'email',
- 'type',
- 'status',
- 'user_id',
- 'field',
- 'cooperation',
- 'company',
- 'condition',
- 'image',
- 'expect',
- 'demand',
- 'budget',
- 'requirementdesc',
- 'present',
- 'achievestatus',
- 'achieveown',
- 'achievesource',
- 'intentionprice',
- 'patent',
- 'roadshow',
- 'achievebrief',
- 'features',
- 'team',
- 'messattribute',
- 'informationdesc',
- 'coreelements',
- 'priceinfo',
- 'remark',
- ],
- },
- show: {
- parameters: {
- params: ['!id'],
- },
- service: 'fetch',
- },
- index: {
- parameters: {
- query: {
- name: '%name%',
- code: 'code',
- qqwx: 'qqwx',
- type: 'type',
- status: 'status',
- user_id: 'user_id',
- company: 'company',
- 'create_time@start': 'create_time@start',
- 'create_time@end': 'create_time@end',
- },
- // options: {
- // "meta.state": 0 // 默认条件
- // },
- },
- service: 'query',
- options: {
- query: ['skip', 'limit'],
- sort: ['meta.createdAt'],
- desc: true,
- count: true,
- },
- },
- import: {
- requestBody: ['uri', 'defObject'],
- },
- };
|