.examine.js 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. module.exports = {
  2. create: {
  3. requestBody: [
  4. "order_num",
  5. "personal",
  6. "examine_time",
  7. "opinion",
  8. "status",
  9. "totalMoney",
  10. "order",
  11. "buy_id",
  12. "buy_name",
  13. ],
  14. },
  15. destroy: {
  16. params: ["!id"],
  17. service: "delete",
  18. },
  19. update: {
  20. params: ["!id"],
  21. requestBody: [
  22. "order_num",
  23. "personal",
  24. "examine_time",
  25. "opinion",
  26. "status",
  27. "totalMoney",
  28. "order",
  29. "buy_id",
  30. "buy_name",
  31. ],
  32. },
  33. show: {
  34. parameters: {
  35. params: ["!id"],
  36. },
  37. service: "fetch",
  38. },
  39. index: {
  40. parameters: {
  41. query: {
  42. order_num:'order_num',
  43. personal: "personal",
  44. mech_id: "order.mech_id",
  45. status: "status",
  46. totalMoney: "totalMoney",
  47. buy_id: "buy_id",
  48. buy_name: "%buy_name%",
  49. "examine_time@start": "examine_time@start",
  50. "examine_time@end": "examine_time@end",
  51. },
  52. // options: {
  53. // "meta.state": 0 // 默认条件
  54. // },
  55. },
  56. service: "query",
  57. options: {
  58. query: ["skip", "limit"],
  59. sort: ["meta.createdAt"],
  60. desc: true,
  61. count: true,
  62. },
  63. },
  64. getGoods: {
  65. requestBody: ["examine_id", "buy_id", "mech_id", "market_id", "status"],
  66. },
  67. };