.student.js 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  1. module.exports = {
  2. create: {
  3. requestBody: [
  4. "!name",
  5. "!id_number",
  6. "!phone",
  7. "gender",
  8. "nation",
  9. "school_name",
  10. "schid",
  11. "faculty",
  12. "major",
  13. "edua_level",
  14. "edua_system",
  15. "entry_year",
  16. "finish_year",
  17. "school_job",
  18. "qq",
  19. "email",
  20. "openid",
  21. "family_place",
  22. "family_is_hard",
  23. "have_grant",
  24. "job",
  25. "planyearid",
  26. "planid",
  27. "termid",
  28. "batchid",
  29. "classid",
  30. "bedroomid",
  31. "bedroom",
  32. "is_fine",
  33. "selfscore",
  34. "score",
  35. "diy",
  36. "isComming",
  37. "type",
  38. "status",
  39. ],
  40. },
  41. destroy: {
  42. params: ["!id"],
  43. service: "delete",
  44. },
  45. update: {
  46. params: ["!id"],
  47. requestBody: [
  48. "name",
  49. "id_number",
  50. "phone",
  51. "gender",
  52. "nation",
  53. "school_name",
  54. "schid",
  55. "faculty",
  56. "major",
  57. "edua_level",
  58. "edua_system",
  59. "entry_year",
  60. "finish_year",
  61. "school_job",
  62. "qq",
  63. "email",
  64. "openid",
  65. "family_place",
  66. "family_is_hard",
  67. "have_grant",
  68. "job",
  69. "planyearid",
  70. "planid",
  71. "termid",
  72. "batchid",
  73. "classid",
  74. "bedroomid",
  75. "bedroom",
  76. "is_fine",
  77. "selfscore",
  78. "score",
  79. "diy",
  80. "isComming",
  81. "type",
  82. "status",
  83. ],
  84. },
  85. show: {
  86. parameters: {
  87. params: ["!id"],
  88. },
  89. service: "fetch",
  90. },
  91. index: {
  92. parameters: {
  93. query: {
  94. name: "name",
  95. id_number: "id_number",
  96. phone: "phone",
  97. gender: "gender",
  98. nation: "nation",
  99. school_name: "school_name",
  100. schid: "schid",
  101. faculty: "faculty",
  102. major: "major",
  103. edua_level: "edua_level",
  104. edua_system: "edua_system",
  105. entry_year: "entry_year",
  106. finish_year: "finish_year",
  107. school_job: "school_job",
  108. qq: "qq",
  109. email: "email",
  110. openid: "openid",
  111. family_place: "family_place",
  112. family_is_hard: "family_is_hard",
  113. have_grant: "have_grant",
  114. job: "job",
  115. planyearid: "planyearid",
  116. planid: "planid",
  117. termid: "termid",
  118. batchid: "batchid",
  119. classid: "classid",
  120. bedroomid: "bedroomid",
  121. bedroom: "bedroom",
  122. is_fine: "is_fine",
  123. selfscore: "selfscore",
  124. score: "score",
  125. diy: "diy",
  126. isComming: "isComming",
  127. type: "type",
  128. is_find_status: "is_find_status",
  129. },
  130. },
  131. service: "query",
  132. options: {
  133. query: ["skip", "limit"],
  134. sort: ["meta.createdAt"],
  135. desc: true,
  136. count: true,
  137. },
  138. },
  139. finestudent: {
  140. parameters: { params: ["!id"] },
  141. service: "getFineStudent",
  142. },
  143. exportStudent: {
  144. requestBody: ["planid", "termid", "batchid", "classid", "model", 'missionid'],
  145. service: "exportStudent",
  146. },
  147. toExport: {
  148. requestBody: ["planid", "termid", "batchid", "classid", "model", 'isComming'],
  149. service: "toExport",
  150. },
  151. arrangeNumber: {
  152. parameters: {
  153. query: { classid: "classid" },
  154. },
  155. service: "arrangeNumber",
  156. },
  157. printCert: {
  158. requestBody: ["ids"],
  159. service: "printCert",
  160. },
  161. getSchoolStudent: {
  162. parameters: {
  163. query: { planid: "planid" },
  164. },
  165. service: "getSchoolStudent",
  166. },
  167. };