recommend.js 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. import request from '@/utils/request'
  2. // 标签页分类
  3. export function tabList() {
  4. return request({
  5. url: `/recommend/type/module/listAll`,
  6. method: 'get'
  7. })
  8. }
  9. // 模板列表
  10. export function typeList() {
  11. return request({
  12. url: `/recommend/type/getList`,
  13. method: 'get'
  14. })
  15. }
  16. // 二级列表
  17. export function list(id) {
  18. return request({
  19. url: `/recommend/type/getSecondRecommend/${id}`,
  20. method: 'get'
  21. })
  22. }
  23. // 新增 编辑 二级列表
  24. export function submit(data) {
  25. return request({
  26. url: `/recommend/type/module/second/saveOrUpdate`,
  27. method: 'post',
  28. data
  29. })
  30. }
  31. // 二级详情
  32. export function listDetail(id) {
  33. return request({
  34. url: `/recommend/type/getSecondRecommend/get/${id}`,
  35. method: 'get'
  36. })
  37. }
  38. // 历史记录
  39. export function history(data) {
  40. return request({
  41. url: `/recommend/type/history/list`,
  42. method: 'post',
  43. data
  44. })
  45. }
  46. // 删除
  47. export function remove(lv, id) {
  48. return request({
  49. url: `/recommend/type/recmmend/delete/${lv}/${id}`,
  50. method: 'get'
  51. })
  52. }
  53. // 三级详情
  54. export function detail(id) {
  55. return request({
  56. url: `/recommend/type/getThreeRecommend/get/${id}`,
  57. method: 'get'
  58. })
  59. }
  60. // 查询模块
  61. export function moduleList(id) {
  62. return request({
  63. url: `/recommend/type/get/${id}`,
  64. method: 'get'
  65. })
  66. }
  67. // 音频内容列表
  68. export function radioList(data) {
  69. return request({
  70. url: `/commonRadio/page`,
  71. method: 'post',
  72. data
  73. })
  74. }
  75. // 新增 编辑 三级
  76. export function submitThree(data) {
  77. return request({
  78. url: `/recommend/type/three/saveOrUpdate`,
  79. method: 'post',
  80. data
  81. })
  82. }
  83. // 有效时间
  84. export function timeChange(data) {
  85. return request({
  86. url: `/recommend/type/time/saveOrUpdate`,
  87. method: 'post',
  88. data
  89. })
  90. }