.dock.js 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. module.exports = {
  2. create: {
  3. requestBody: [
  4. "room_id",
  5. "password",
  6. "room_phone",
  7. "title",
  8. "desc",
  9. "start_time",
  10. "end_time",
  11. "join_end",
  12. "user_id",
  13. "apply",
  14. "province",
  15. "videodata",
  16. "place",
  17. "user_id",
  18. "adminuser",
  19. "phone",
  20. "passwd",
  21. "vipuser",
  22. "email",
  23. "company",
  24. "sponsor",
  25. "organizer",
  26. "openid",
  27. ],
  28. },
  29. destroy: {
  30. params: ["!id"],
  31. service: "delete",
  32. },
  33. update: {
  34. params: ["!id"],
  35. requestBody: [
  36. "room_phone",
  37. "title",
  38. "desc",
  39. "status",
  40. "apply",
  41. "start_time",
  42. "end_time",
  43. "join_end",
  44. "province",
  45. "place",
  46. "videodata",
  47. "adminuser",
  48. "phone",
  49. "passwd",
  50. "vipuser",
  51. "email",
  52. "company",
  53. "sponsor",
  54. "organizer",
  55. "openid",
  56. ],
  57. },
  58. show: {
  59. parameters: {
  60. params: ["!id"],
  61. },
  62. service: "fetch",
  63. },
  64. index: {
  65. parameters: {
  66. query: {
  67. room_phone: "room_phone",
  68. room_id: "room_id",
  69. title: "%title%",
  70. desc: "desc",
  71. start_time: "start_time",
  72. end_time: "end_time",
  73. join_end: "join_end",
  74. user_id: "user_id",
  75. status: "status",
  76. province: "province",
  77. place: "place",
  78. adminuser: "adminuser",
  79. sponsor: "sponsor",
  80. organizer: "organizer",
  81. phone: "phone",
  82. },
  83. },
  84. service: "query",
  85. options: {
  86. query: ["skip", "limit"],
  87. sort: ["meta.createdAt"],
  88. desc: true,
  89. count: true,
  90. },
  91. },
  92. apply: {
  93. params: ["!id"],
  94. requestBody: ["user_id", "user_name", "goodsList", "contact_tel", "role"],
  95. service: "apply",
  96. },
  97. goods: {
  98. params: ["!id"],
  99. requestBody: [
  100. "_id",
  101. "totaltype",
  102. "name",
  103. "product_type_id",
  104. "introduction",
  105. "phase",
  106. "price",
  107. "priceunit",
  108. "image",
  109. "field",
  110. "scope",
  111. "coopermode",
  112. "business",
  113. "budget",
  114. "end_date",
  115. "difficult_problem",
  116. "demand",
  117. "address",
  118. "mature",
  119. "team",
  120. "property",
  121. "mature",
  122. "coopercompany",
  123. "other",
  124. "contact_tel",
  125. "contact_user",
  126. "dockStatus",
  127. ],
  128. service: "goods",
  129. },
  130. check: {
  131. params: ["!id", "!dock_id"],
  132. requestBody: ["status"],
  133. service: "check",
  134. },
  135. // dockCheck: {
  136. // params: ["!id"],
  137. // requestBody: ["is_allowed", "reason"],
  138. // service: "dockCheck",
  139. // },
  140. vipdelete: {
  141. params: ["!id"],
  142. service: "dockVipDelete",
  143. },
  144. };