index.ts 862 B

1234567891011121314151617181920212223242526272829303132333435
  1. import http from '@/api/http';
  2. /**
  3. * 频道管理-列表
  4. */
  5. export function operationChannelList(params?: object) {
  6. return http.get('/operation/channel/list', params);
  7. }
  8. /**
  9. * 频道管理-开启状态
  10. */
  11. export function operationChannelEnableStatus(
  12. id: number | string,
  13. params?: object
  14. ) {
  15. return http.post(`/operation/channel/enableStatus/${id}`, params);
  16. }
  17. /**
  18. * 频道管理-添加
  19. */
  20. export function operationChannelAdd(params: object) {
  21. return http.post(`/operation/channel/add`, params);
  22. }
  23. /**
  24. * 频道管理-配置
  25. */
  26. export function operationChannelSetConfig(id: number | string, params: object) {
  27. return http.post(`/operation/channel/setting/${id}`, params);
  28. }
  29. /**
  30. * 频道管理-删除
  31. */
  32. export function operationChannelDel(id: number | string, params?: object) {
  33. return http.post(`/operation/channel/del/${id}`, params);
  34. }