.expert.js 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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. "major",
  22. "card",
  23. ],
  24. },
  25. destroy: {
  26. params: ["!id"],
  27. service: "delete",
  28. },
  29. update: {
  30. params: ["!id"],
  31. requestBody: [
  32. "education",
  33. "school",
  34. "birthDate",
  35. "qqwx",
  36. "email",
  37. "company",
  38. "zwzc",
  39. "expertise",
  40. "img_path",
  41. "workexperience",
  42. "scientific",
  43. "undertakingproject",
  44. "scienceaward",
  45. "social",
  46. "status",
  47. "remark",
  48. "major",
  49. "card",
  50. ],
  51. },
  52. show: {
  53. parameters: {
  54. params: ["!user_id"],
  55. },
  56. service: "fetch",
  57. },
  58. index: {
  59. parameters: {
  60. query: {
  61. name: "%name%",
  62. phone: "phone",
  63. code: "code",
  64. company: "company",
  65. status: "status",
  66. "create_time@start": "create_time@start",
  67. "create_time@end": "create_time@end",
  68. },
  69. options: {
  70. isdel: "0", // 默认条件
  71. },
  72. },
  73. service: "query",
  74. options: {
  75. query: ["skip", "limit"],
  76. sort: ["meta.createdAt"],
  77. desc: true,
  78. count: true,
  79. },
  80. },
  81. };