Przeglądaj źródła

标签管理 标签分类 接口文件

DESKTOP-O04BTUJ\muzen 3 lat temu
rodzic
commit
89d2a35c35
1 zmienionych plików z 36 dodań i 3 usunięć
  1. 36 3
      src/api/label/tag.js

+ 36 - 3
src/api/label/tag.js

@@ -18,7 +18,7 @@ export function create(data){
   })
 }
 
-// 已选中的频道内容
+// 全部内容列表
 export function contentList(data){
   return request({
     url: `/tag/searchTagPage`,
@@ -27,8 +27,34 @@ export function contentList(data){
   })
 }
 
-// 可选频道内容
-export function contentAllList(data){
+// 已添加的内容列表
+export function findList(data){
+  return request({
+    url: `/tag/findList`,
+    method: 'post',
+    data
+  })
+}
+
+// 标签详情
+export function detail(id){
+  return request({
+    url: `/tag/findDeatilById/${id}`,
+    method: 'get'
+  })
+}
+
+// 编辑标签
+export function edit(data){
+  return request({
+    url: `/tag/editPage`,
+    method: 'post',
+    data
+  })
+}
+
+// 新增频道内容
+export function createTag(data){
   return request({
     url: `/tag/addtagPage`,
     method: 'post',
@@ -36,3 +62,10 @@ export function contentAllList(data){
   })
 }
 
+// 删除已选的频道内容
+export function remove(id){
+  return request({
+    url: `/tag/delete/${id}`,
+    method: 'delete'
+  })
+}