123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- module.exports = {
- create: {
- requestBody: ['platform_act', 'order_detail', 'is_deal', 'goods'],
- },
- destroy: {
- params: ['!id'],
- service: 'delete',
- },
- update: {
- params: ['!id'],
- requestBody: ['platform_act', 'order_detail', 'is_deal', 'goods'],
- },
- show: {
- parameters: {
- params: ['!id'],
- },
- service: 'fetch',
- },
- index: {
- parameters: {
- query: {
- 'meta.createdAt@start': 'meta.createdAt@start',
- 'meta.createdAt@end': 'meta.createdAt@end',
- platform_act: 'platform_act',
- order_detail: 'order_detail',
- is_deal: 'is_deal',
- goods: 'goods',
- },
- // options: {
- // "meta.state": 0 // 默认条件
- // },
- },
- service: 'query',
- options: {
- query: ['skip', 'limit'],
- sort: ['meta.createdAt'],
- desc: true,
- count: true,
- },
- },
- grmm: {
- params: ['!id'],
- service: 'getRefundMaxMoney',
- },
- toRefund: {
- requestBody: ['data'],
- },
- };
|