.dock_imgtxt.js 793 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. module.exports = {
  2. create: {
  3. requestBody: [
  4. "dock_id",
  5. "content",
  6. "img_url",
  7. "file_url",
  8. "user_id",
  9. "remark",
  10. ],
  11. },
  12. destroy: {
  13. params: ["!id"],
  14. service: "delete",
  15. },
  16. update: {
  17. params: ["!id"],
  18. requestBody: [
  19. "dock_id",
  20. "content",
  21. "img_url",
  22. "file_url",
  23. "user_id",
  24. "remark",
  25. ],
  26. },
  27. show: {
  28. parameters: {
  29. params: ["!id"],
  30. },
  31. service: "fetch",
  32. },
  33. index: {
  34. parameters: {
  35. query: {
  36. dock_id: "dock_id",
  37. },
  38. // options: {
  39. // "meta.state": 0 // 默认条件
  40. // },
  41. },
  42. service: "query",
  43. options: {
  44. query: ["skip", "limit"],
  45. sort: ["meta.createdAt"],
  46. desc: true,
  47. count: true,
  48. },
  49. },
  50. };