Pārlūkot izejas kodu

频道管理 官方推荐

wuhao 3 gadi atpakaļ
vecāks
revīzija
41a8b86392
1 mainītis faili ar 27 papildinājumiem un 0 dzēšanām
  1. 27 0
      src/api/channel/official.js

+ 27 - 0
src/api/channel/official.js

@@ -0,0 +1,27 @@
+import request from '@/utils/request'
+
+// 查询12个频道
+export function getChannelPage() {
+    return request({
+        url: `/device/channel/page`,
+        method: 'get'
+    })
+}
+
+// 编辑12频道信息
+export function getChannelEdit(data) {
+    return request({
+        url: `/device/channel/edit`,
+        method: 'post',
+        data: data
+    })
+}
+
+// 频道内容列表
+export function getChannelAudioPage(query) {
+    return request({
+        url: `/device/channel/audio/page`,
+        method: 'get',
+        params: query
+    })
+}