.zhwlcar.js 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. module.exports = {
  2. create: {
  3. requestBody: [
  4. "car_onwer",
  5. "it",
  6. "it_member",
  7. "ro",
  8. "r_time",
  9. "car_no",
  10. "car_type",
  11. "cc_no",
  12. "cc_weight",
  13. "cc_scrap_time",
  14. "cc_examine_time",
  15. "rc_no",
  16. "rc_examine_time",
  17. "bcc_no",
  18. "fi_name",
  19. "fi_tel",
  20. "fi_no",
  21. "fi_cost",
  22. "fi_start_time",
  23. "fi_end_time",
  24. "fi_dw",
  25. "fi_vt",
  26. "fi_sign_time",
  27. "bi_name",
  28. "bi_tel",
  29. "bi_no",
  30. "bi_cost",
  31. "bi_start_time",
  32. "bi_end_time",
  33. "bi_dw",
  34. "bi_sign_time",
  35. "remark",
  36. "last_place",
  37. ],
  38. },
  39. destroy: {
  40. params: ["!id"],
  41. service: "delete",
  42. },
  43. update: {
  44. params: ["!id"],
  45. requestBody: [
  46. "car_onwer",
  47. "it",
  48. "it_member",
  49. "ro",
  50. "r_time",
  51. "car_no",
  52. "car_type",
  53. "cc_no",
  54. "cc_weight",
  55. "cc_scrap_time",
  56. "cc_examine_time",
  57. "rc_no",
  58. "rc_examine_time",
  59. "bcc_no",
  60. "fi_name",
  61. "fi_tel",
  62. "fi_no",
  63. "fi_cost",
  64. "fi_start_time",
  65. "fi_end_time",
  66. "fi_dw",
  67. "fi_vt",
  68. "fi_sign_time",
  69. "bi_name",
  70. "bi_tel",
  71. "bi_no",
  72. "bi_cost",
  73. "bi_start_time",
  74. "bi_end_time",
  75. "bi_dw",
  76. "bi_sign_time",
  77. "remark",
  78. "last_place",
  79. ],
  80. },
  81. show: {
  82. parameters: {
  83. params: ["!id"],
  84. },
  85. service: "fetch",
  86. },
  87. index: {
  88. parameters: {
  89. query: {
  90. car_onwer: "car_onwer",
  91. it: "it",
  92. it_member: "it_member",
  93. },
  94. },
  95. service: "query",
  96. options: {
  97. query: ["skip", "limit"],
  98. sort: ["meta.createdAt"],
  99. desc: true,
  100. count: true,
  101. },
  102. },
  103. };