.teacher.js 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. module.exports = {
  2. create: {
  3. requestBody: [
  4. '!name',
  5. '!phone',
  6. '!idnumber',
  7. '!gender',
  8. // '!zynumber',
  9. '!zynumberfile',
  10. 'schid',
  11. 'schname',
  12. '!email',
  13. 'openid',
  14. '!age',
  15. '!birthday',
  16. '!entrydate',
  17. '!politics',
  18. '!department',
  19. '!job',
  20. '!protitle',
  21. '!education',
  22. '!degree',
  23. '!major',
  24. '!schlesson',
  25. '!experience',
  26. '!courses',
  27. '!academic',
  28. '!jobyear',
  29. '!subid',
  30. '!islyteacher',
  31. 'zlscore',
  32. 'msscore',
  33. 'xsscore',
  34. 'file',
  35. 'status',
  36. 'jobaddress'
  37. ]
  38. },
  39. destroy: {
  40. params: ['!id'],
  41. service: 'delete'
  42. },
  43. update: {
  44. params: ['!id'],
  45. requestBody: [
  46. 'name',
  47. 'phone',
  48. 'idnumber',
  49. 'gender',
  50. // 'zynumber',
  51. 'zynumberfile',
  52. 'schid',
  53. 'schname',
  54. 'email',
  55. 'openid',
  56. 'age',
  57. 'birthday',
  58. 'entrydate',
  59. 'politics',
  60. 'department',
  61. 'job',
  62. 'protitle',
  63. 'education',
  64. 'degree',
  65. 'major',
  66. 'schlesson',
  67. 'experience',
  68. 'courses',
  69. 'academic',
  70. 'jobyear',
  71. 'subid',
  72. 'islyteacher',
  73. 'zlscore',
  74. 'msscore',
  75. 'xsscore',
  76. 'file',
  77. 'status',
  78. 'jobaddress'
  79. ]
  80. },
  81. show: {
  82. parameters: {
  83. params: ['!id']
  84. },
  85. service: 'fetch'
  86. },
  87. index: {
  88. parameters: {
  89. query: {
  90. name :'name',
  91. phone :'phone',
  92. idnumber :'idnumber',
  93. gender :'gender',
  94. // zynumber :'zynumber',
  95. zynumberfile :'zynumberfile',
  96. schid :'schid',
  97. schname:'schname',
  98. email :'email',
  99. openid :'openid',
  100. age:'age',
  101. birthday:'birthday',
  102. entrydate :'entrydate',
  103. politics:'politics',
  104. department:'department',
  105. job :'job',
  106. protitle:'protitle',
  107. education:'education',
  108. degree :'degree',
  109. major:'major',
  110. schlesson :'schlesson',
  111. experience:'experience',
  112. courses :'courses',
  113. academic :'academic',
  114. jobyear:'jobyear',
  115. subid:'subid',
  116. islyteacher :'islyteacher',
  117. zlscore:'zlscore',
  118. msscore :'msscore',
  119. xsscore:'xsscore',
  120. file :'file',
  121. status :'status'
  122. }
  123. },
  124. service: 'query',
  125. options: {
  126. query: ['skip', 'limit'],
  127. sort: ['meta.createdAt'],
  128. desc: true,
  129. count: true
  130. }
  131. },
  132. };