1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192 |
- module.exports = {
- create: {
- requestBody: [
- 'money',
- 'order_detail',
- 'customer',
- 'shop',
- 'set_id',
- 'goods',
- 'type',
- 'reason',
- 'desc',
- 'file',
- 'transport',
- 'apply_time',
- 'end_time',
- 'status',
- 'deal_person',
- 'out_bill',
- ],
- },
- destroy: {
- params: ['!id'],
- service: 'delete',
- },
- update: {
- params: ['!id'],
- requestBody: [
- 'money',
- 'order_detail',
- 'customer',
- 'shop',
- 'set_id',
- 'goods',
- 'type',
- 'reason',
- 'desc',
- 'file',
- 'transport',
- 'apply_time',
- 'end_time',
- 'status',
- 'deal_person',
- 'out_bill',
- ],
- },
- show: {
- parameters: {
- params: ['!id'],
- },
- service: 'fetch',
- },
- index: {
- parameters: {
- query: {
- 'meta.createdAt@start': 'meta.createdAt@start',
- 'meta.createdAt@end': 'meta.createdAt@end',
- type: 'type',
- apply_time: 'apply_time',
- end_time: 'end_time',
- deal_person: 'deal_person',
- out_bill: 'out_bill',
- customer: 'customer',
- goods: '%goods.goods.name%',
- shop: 'shop',
- },
- // options: {
- // "meta.state": 0 // 默认条件
- // },
- },
- service: 'query',
- options: {
- query: ['skip', 'limit'],
- sort: ['meta.createdAt'],
- desc: true,
- count: true,
- },
- },
- cgfr: {
- requestBody: ['order_detail', 'goods_id'],
- service: 'computedGoodsForRefund',
- },
- orderCancel: {
- requestBody: ['order_detail', 'desc'],
- },
- getTransportInfo: {
- params: ['!id'],
- },
- canRefund: {
- params: ['!id'],
- },
- };
|