12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- module.exports = {
- create: {
- requestBody: [
- "order_num",
- "personal",
- "examine_time",
- "opinion",
- "status",
- "totalMoney",
- "order",
- "buy_id",
- "buy_name",
- ],
- },
- destroy: {
- params: ["!id"],
- service: "delete",
- },
- update: {
- params: ["!id"],
- requestBody: [
- "order_num",
- "personal",
- "examine_time",
- "opinion",
- "status",
- "totalMoney",
- "order",
- "buy_id",
- "buy_name",
- ],
- },
- show: {
- parameters: {
- params: ["!id"],
- },
- service: "fetch",
- },
- index: {
- parameters: {
- query: {
- order_num:'order_num',
- personal: "personal",
- mech_id: "order.mech_id",
- status: "status",
- totalMoney: "totalMoney",
- buy_id: "buy_id",
- buy_name: "%buy_name%",
- "examine_time@start": "examine_time@start",
- "examine_time@end": "examine_time@end",
- },
- // options: {
- // "meta.state": 0 // 默认条件
- // },
- },
- service: "query",
- options: {
- query: ["skip", "limit"],
- sort: ["meta.createdAt"],
- desc: true,
- count: true,
- },
- },
- getGoods: {
- requestBody: ["examine_id", "buy_id", "mech_id", "market_id", "status"],
- },
- };
|