.resume.js 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. module.exports = {
  2. create: {
  3. requestBody: [
  4. '!talents_userId',
  5. '!title',
  6. '!name',
  7. 'imgpath',
  8. 'gender',
  9. 'nation',
  10. 'birth',
  11. 'marital',
  12. 'hukou',
  13. 'cardnumber',
  14. 'addr',
  15. 'education',
  16. 'phone',
  17. 'email',
  18. 'job_nature',
  19. 'profession',
  20. 'workplace',
  21. 'salary',
  22. 'current',
  23. 'introduction',
  24. 'work_exp',
  25. 'project_exp',
  26. 'education_exp',
  27. 'language',
  28. 'skills',
  29. 'hobbies',
  30. 'state'
  31. ]
  32. },
  33. destroy: {
  34. params: ['!id'],
  35. service: 'delete'
  36. },
  37. update: {
  38. params: ['!id'],
  39. requestBody: [
  40. 'talents_userId',
  41. 'title',
  42. 'name',
  43. 'imgpath',
  44. 'gender',
  45. 'nation',
  46. 'birth',
  47. 'marital',
  48. 'hukou',
  49. 'cardnumber',
  50. 'addr',
  51. 'education',
  52. 'phone',
  53. 'email',
  54. 'job_nature',
  55. 'profession',
  56. 'workplace',
  57. 'salary',
  58. 'current',
  59. 'introduction',
  60. 'work_exp',
  61. 'project_exp',
  62. 'education_exp',
  63. 'language',
  64. 'skills',
  65. 'hobbies',
  66. 'state'
  67. ]
  68. },
  69. show: {
  70. parameters: {
  71. params: ['!id']
  72. },
  73. service: 'fetch'
  74. },
  75. index: {
  76. parameters: {
  77. query: {
  78. talents_userId : 'talents_userId',
  79. title : 'title',
  80. name : 'name',
  81. imgpath : 'imgpath',
  82. gender : 'gender',
  83. nation : 'nation',
  84. birth : 'birth',
  85. marital : 'marital',
  86. hukou : 'hukou',
  87. cardnumber : 'cardnumber',
  88. addr : 'addr',
  89. education : 'education',
  90. phone : 'phone',
  91. email : 'email',
  92. job_nature : 'job_nature',
  93. profession : 'profession',
  94. workplace : 'workplace',
  95. salary : 'salary',
  96. current : 'current',
  97. introduction : 'introduction',
  98. work_exp : 'work_exp',
  99. project_exp : 'project_exp',
  100. education_exp : 'education_exp',
  101. language : 'language',
  102. skills : 'skills',
  103. hobbies : 'hobbies',
  104. state : 'state'
  105. }
  106. },
  107. service: 'query',
  108. options: {
  109. query: ['skip', 'limit'],
  110. sort: ['meta.createdAt'],
  111. desc: true,
  112. count: true
  113. }
  114. },
  115. };