.car.js 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. module.exports = {
  2. create: {
  3. requestBody: [
  4. "!onwer",
  5. "car_no",
  6. "id_number",
  7. "id_name",
  8. "organ",
  9. "r_date",
  10. "c_type",
  11. "c_doc_no",
  12. "c_weight",
  13. "c_scrap_date",
  14. "c_examine_date",
  15. "r_tran_no",
  16. "r_examine_date",
  17. "buy_car_taxes_no",
  18. "f_company",
  19. "f_tel",
  20. "f_no",
  21. "f_cost",
  22. "f_start_date",
  23. "f_end_date",
  24. "f_solve",
  25. "f_car_taxes",
  26. "f_sign_date",
  27. "b_company",
  28. "b_tel",
  29. "b_no",
  30. "b_cost",
  31. "b_start_date",
  32. "b_end_date",
  33. "b_solve",
  34. "b_sign_date",
  35. "remark",
  36. ],
  37. },
  38. destroy: {
  39. params: ["!id"],
  40. service: "delete",
  41. },
  42. update: {
  43. params: ["!id"],
  44. requestBody: [
  45. "!onwer",
  46. "car_no",
  47. "id_number",
  48. "id_name",
  49. "organ",
  50. "r_date",
  51. "c_type",
  52. "c_doc_no",
  53. "c_weight",
  54. "c_scrap_date",
  55. "c_examine_date",
  56. "r_tran_no",
  57. "r_examine_date",
  58. "buy_car_taxes_no",
  59. "f_company",
  60. "f_tel",
  61. "f_no",
  62. "f_cost",
  63. "f_start_date",
  64. "f_end_date",
  65. "f_solve",
  66. "f_car_taxes",
  67. "f_sign_date",
  68. "b_company",
  69. "b_tel",
  70. "b_no",
  71. "b_cost",
  72. "b_start_date",
  73. "b_end_date",
  74. "b_solve",
  75. "b_sign_date",
  76. "remark",
  77. ],
  78. },
  79. show: {
  80. parameters: {
  81. params: ["!id"],
  82. },
  83. service: "fetch",
  84. },
  85. index: {
  86. parameters: {
  87. query: {
  88. onwer: "%onwer%",
  89. car_no: "%car_no%",
  90. id_number: "%id_number%",
  91. },
  92. },
  93. service: "query",
  94. options: {
  95. query: ["skip", "limit"],
  96. sort: ["meta.createdAt"],
  97. desc: true,
  98. count: true,
  99. },
  100. },
  101. };