From ef37c59e055a990ce247b265b27d3fcef430a243 Mon Sep 17 00:00:00 2001 From: 杨磊 <505174330@qq.com> Date: 星期五, 15 八月 2025 10:19:18 +0800 Subject: [PATCH] first submit --- src/assets/js/middleGround/api/ugc.js | 74 +++++++++++++++++++++++++++++++++++++ 1 files changed, 74 insertions(+), 0 deletions(-) diff --git a/src/assets/js/middleGround/api/ugc.js b/src/assets/js/middleGround/api/ugc.js new file mode 100644 index 0000000..01ffa87 --- /dev/null +++ b/src/assets/js/middleGround/api/ugc.js @@ -0,0 +1,74 @@ +import request from "@/plugin/axios"; +import { tokenKey } from "@/assets/js/config"; +import toolClass from "@/assets/js/toolClass"; +const ugcApi = { + // 鑾峰彇鍟嗗搧鐐硅禐Topic + getProductLikesTopic(data) { + return request({ + url: toolClass.getCookie(tokenKey) + ? "/ugc/api/ApiAppUserGetProductLikesTopic" + : "/ugc/api/ApiGetProductLikesTopic", + method: "post", + data, + }); + }, + + // 鑾峰彇鍟嗗搧璇勮Topic + getProductCommentTopic(data) { + return request({ + url: toolClass.getCookie(tokenKey) + ? "/ugc/api/ApiAppUserGetProductCommentTopic" + : "/ugc/api/ApiGetProductCommentTopic", + method: "post", + data, + }); + }, + + // 鑾峰彇MessageList + getTopicMessageList(data) { + return request({ + url: toolClass.getCookie(tokenKey) + ? "/ugc/api/ApiAppUserGetTopicMessageList" + : "/ugc/api/ApiGetTopicMessageList", + method: "post", + data, + }); + }, + + // 鏂板缓Message + newTopicMessage(data) { + return request({ + url: "/ugc/api/ApiNewTopicMessage", + method: "post", + data, + }); + }, + + // 鍒犻櫎Message + delTopicMessage(data) { + return request({ + url: "/ugc/api/ApiDelTopicMessage", + method: "post", + data, + }); + }, + + // 鑾峰彇cms璇勮 + getCmsItemCommentTopic(data) { + return request({ + url: "/ugc/api/ApiGetCmsItemCommentTopic", + method: "post", + data, + }); + }, + //鏇存柊TOPICMESSAGE + updateTopicMessage(data) { + return request({ + url: "/ugc/api/ApiUpdateTopicMessage", + method: "post", + data, + }); + }, +}; + +export default ugcApi; -- Gitblit v1.9.1