.examine.js 1.2 KB

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