.expert.js 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. module.exports = {
  2. create: {
  3. requestBody: [
  4. "code",
  5. "education",
  6. "school",
  7. "birthDate",
  8. "qqwx",
  9. "email",
  10. "company",
  11. "zwzc",
  12. "expertise",
  13. "img_path",
  14. "workexperience",
  15. "scientific",
  16. "undertakingproject",
  17. "scienceaward",
  18. "social",
  19. "status",
  20. "remark",
  21. ],
  22. },
  23. destroy: {
  24. params: ["!id"],
  25. service: "delete",
  26. },
  27. update: {
  28. params: ["!id"],
  29. requestBody: [
  30. "education",
  31. "school",
  32. "birthDate",
  33. "qqwx",
  34. "email",
  35. "company",
  36. "zwzc",
  37. "expertise",
  38. "img_path",
  39. "workexperience",
  40. "scientific",
  41. "undertakingproject",
  42. "scienceaward",
  43. "social",
  44. "status",
  45. "remark",
  46. ],
  47. },
  48. show: {
  49. parameters: {
  50. params: ["!user_id"],
  51. },
  52. service: "fetch",
  53. },
  54. index: {
  55. parameters: {
  56. query: {
  57. name: "%name%",
  58. phone: "phone",
  59. code: "code",
  60. company: "company",
  61. status: "status",
  62. "create_time@start": "create_time@start",
  63. "create_time@end": "create_time@end",
  64. },
  65. options: {
  66. isdel: "0", // 默认条件
  67. },
  68. },
  69. service: "query",
  70. options: {
  71. query: ["skip", "limit"],
  72. sort: ["meta.createdAt"],
  73. desc: true,
  74. count: true,
  75. },
  76. },
  77. };