.xzqh.js 777 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. module.exports = {
  2. create: {
  3. requestBody: ["name", "code", "pcode", "disabled", "remark"],
  4. },
  5. destroy: {
  6. params: ["!id"],
  7. service: "delete",
  8. },
  9. update: {
  10. params: ["!id"],
  11. requestBody: ["name", "code", "pcode", "disabled", "remark"],
  12. },
  13. show: {
  14. parameters: {
  15. params: ["!id"],
  16. },
  17. service: "fetch",
  18. },
  19. index: {
  20. parameters: {
  21. query: {
  22. name: "%name%",
  23. code: "code",
  24. pcode: "pcode",
  25. disabled: "disabled",
  26. remark: "remark",
  27. "create_time@start": "create_time@start",
  28. "create_time@end": "create_time@end",
  29. },
  30. },
  31. service: "query",
  32. options: {
  33. query: ["skip", "limit"],
  34. sort: ['code'],
  35. asc: true,
  36. count: true,
  37. },
  38. },
  39. };