.channel_video.js 864 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. module.exports = {
  2. create: {
  3. requestBody: ["channel_id", "title", "start_time", "end_time", "file_path"],
  4. },
  5. destroy: {
  6. params: ["!id"],
  7. service: "delete",
  8. },
  9. update: {
  10. params: ["!id"],
  11. requestBody: ["channel_id", "title", "start_time", "end_time", "file_path"],
  12. },
  13. show: {
  14. parameters: {
  15. params: ["!id"],
  16. },
  17. service: "fetch",
  18. },
  19. index: {
  20. parameters: {
  21. query: {
  22. channel_id: "channel_id",
  23. title: "title",
  24. "create_time@start": "create_time@start",
  25. "create_time@end": "create_time@end",
  26. },
  27. // options: {
  28. // "meta.state": 0 // 默认条件
  29. // },
  30. },
  31. service: "query",
  32. options: {
  33. query: ["skip", "limit"],
  34. sort: ["meta.createdAt"],
  35. desc: true,
  36. count: true,
  37. },
  38. },
  39. };