From 0beea067bea14aeaa8ed0d8ee3cf4d2117f3cd2e Mon Sep 17 00:00:00 2001
From: lin <sbla5888@163.com>
Date: Tue, 14 May 2024 16:14:06 +0800
Subject: [PATCH] 跳转优化

---
 api/article/article.js |   48 ++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 48 insertions(+), 0 deletions(-)

diff --git a/api/article/article.js b/api/article/article.js
index 6b612c7..c70a529 100644
--- a/api/article/article.js
+++ b/api/article/article.js
@@ -9,3 +9,51 @@
 		}
 	})
 }
+
+export const getDetail = (params) => {
+	return http.request({
+		url: '/blade-article/article/detail',
+		method: 'GET',
+		params: {
+			...params
+		}
+	})
+}
+export const getCategory = (params) => {
+	return http.request({
+		url: '/blade-system/dict-biz/child-list',
+		method: 'GET',
+		params: {
+			...params
+		}
+	})
+}
+
+//获取文章评论
+export const getCommentList = (params) => {
+	return http.request({
+		url: '/blade-articleComment/articleComment/page',
+		method: 'GET',
+		params: {
+			...params
+		}
+	})
+}
+
+//添加评论
+export const addComment = (params) => {
+	return http.request({
+		url: '/blade-articleComment/articleComment/save',
+		method: 'POST',
+		data: params
+	})
+}
+
+//  添加积分数量
+export const addPointsNumber = (params) => {
+	return http.request({
+		url: '/blade-article/article/addNumber',
+		method: 'POST',
+		data: params
+	})
+}
\ No newline at end of file

--
Gitblit v1.9.3