.business.js 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. module.exports = {
  2. create: {
  3. requestBody: [
  4. "!company",
  5. "!engCompany",
  6. "!brief",
  7. "!image",
  8. "!mobile",
  9. "address",
  10. "weixin",
  11. "gzh",
  12. "weibo",
  13. "beian",
  14. ],
  15. },
  16. destroy: {
  17. params: ["!id"],
  18. service: "delete",
  19. },
  20. update: {
  21. params: ["!id"],
  22. requestBody: [
  23. "!company",
  24. "!engCompany",
  25. "!brief",
  26. "!image",
  27. "!mobile",
  28. "address",
  29. "weixin",
  30. "gzh",
  31. "weibo",
  32. "beian",
  33. ],
  34. },
  35. show: {
  36. parameters: {
  37. params: ["!id"],
  38. },
  39. service: "fetch",
  40. },
  41. index: {
  42. parameters: {
  43. query: {
  44. company: "company",
  45. engCompany: "engCompany",
  46. brief: "brief",
  47. image: "image",
  48. mobile: "mobile",
  49. address: "address",
  50. weixin: "weixin",
  51. gzh: "gzh",
  52. weibo: "weibo",
  53. beian: "beian",
  54. },
  55. },
  56. service: "query",
  57. options: {
  58. query: ["skip", "limit"],
  59. sort: ["meta.createdAt"],
  60. desc: true,
  61. count: true,
  62. },
  63. },
  64. };