فهرست منبع

猫舍管理 内容管理接口文件

DESKTOP-O04BTUJ\muzen 3 سال پیش
والد
کامیت
c77e7509eb
1فایلهای تغییر یافته به همراه43 افزوده شده و 0 حذف شده
  1. 43 0
      src/api/ohplay/content.js

+ 43 - 0
src/api/ohplay/content.js

@@ -0,0 +1,43 @@
+import request from '@/utils/request'
+
+// 内容管理列表
+export function list(data){
+  return request ({
+    url: `/house/ArticleResp/search`,
+    method: 'post',
+    data
+  })
+}
+
+// 内容管理详情
+export function detail(id){
+  return request({
+    url: `/house/ArticleResp/detail/${id}`,
+    method: 'get'
+  })
+}
+
+// 内容显示隐藏
+export function showOrHide(id, type){
+  return request({
+    url: `/house/ArticleResp/conceal/${id}/${type}`,
+    method: 'get'
+  })
+}
+
+// 评论显示隐藏
+export function commentShowOrHide(id, type){
+  return request({
+    url: `/house/ArticleResp/commentConceal/${id}/${type}`,
+    method: 'get'
+  })
+}
+
+// 内容推荐
+export function recommend(data){
+  return request({
+    url: `/house/ArticleResp/recommend`,
+    method: 'post',
+    data
+  })
+}