.joinapply.js 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. module.exports = {
  2. create: {
  3. requestBody: [
  4. "team_id",
  5. "team_name",
  6. "apply_user",
  7. "apply_id",
  8. "apply_time",
  9. "status",
  10. "remark",
  11. ],
  12. },
  13. destroy: {
  14. params: ["!id"],
  15. service: "delete",
  16. },
  17. update: {
  18. params: ["!id"],
  19. requestBody: [
  20. "team_id",
  21. "team_name",
  22. "apply_user",
  23. "apply_id",
  24. "apply_time",
  25. "status",
  26. "remark",
  27. ],
  28. },
  29. show: {
  30. parameters: {
  31. params: ["!id"],
  32. },
  33. service: "fetch",
  34. },
  35. index: {
  36. parameters: {
  37. query: {
  38. team_id: "team_id",
  39. team_name: "team_name",
  40. apply_time: "apply_time",
  41. apply_user: "apply_user",
  42. apply_id: "apply_id",
  43. status: "status",
  44. "meta.createdAt@start": "meta.createdAt@start",
  45. "meta.createdAt@end": "meta.createdAt@end",
  46. },
  47. // options: {
  48. // "meta.state": 0 // 默认条件
  49. // },
  50. },
  51. service: "query",
  52. options: {
  53. query: ["skip", "limit"],
  54. sort: ["meta.createdAt"],
  55. desc: true,
  56. count: true,
  57. },
  58. },
  59. };