.headteacher.js 972 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. module.exports = {
  2. create: {
  3. requestBody: [
  4. "!name",
  5. "!phone",
  6. "gender",
  7. "openid",
  8. "age",
  9. "birthday",
  10. "department",
  11. "islyteacher",
  12. ],
  13. },
  14. destroy: {
  15. params: ["!id"],
  16. service: "delete",
  17. },
  18. update: {
  19. params: ["!id"],
  20. requestBody: [
  21. "name",
  22. "phone",
  23. "gender",
  24. "openid",
  25. "age",
  26. "birthday",
  27. "department",
  28. "islyteacher",
  29. ],
  30. },
  31. show: {
  32. parameters: {
  33. params: ["!id"],
  34. },
  35. service: "fetch",
  36. },
  37. index: {
  38. parameters: {
  39. query: {
  40. name: "name",
  41. phone: "phone",
  42. gender: "gender",
  43. openid: "openid",
  44. age: "age",
  45. birthday: "birthday",
  46. department: "department",
  47. islyteacher: "islyteacher",
  48. },
  49. },
  50. service: "query",
  51. options: {
  52. query: ["skip", "limit"],
  53. sort: ["meta.createdAt"],
  54. desc: true,
  55. count: true,
  56. },
  57. },
  58. };