diff --git a/src/api/ApiService.js b/src/api/ApiService.js index 767998ac47f58b0f06c650f95a4d4f403043994e..751637635281e5ff8de002860695ddae791744ce 100644 --- a/src/api/ApiService.js +++ b/src/api/ApiService.js @@ -1,4 +1,5 @@ import axios from 'axios' + const BASE_URL = 'http://localhost:80' // 创建一个名为 ApiService 的对象,包含您的异步方法 const ApiService = { @@ -107,19 +108,26 @@ const ApiService = { return await axios.get(BASE_URL + '/csdn/followFans/deleteFollow') }, //我的图片 - async queryPic(currentPage, pageSize, picType) { - return await axios.get(BASE_URL + '/picInfo/page', { - params: { - page: currentPage, - pageSize: pageSize, - picType: picType, - }, + async queryPic(currentPage, pageSize, formInline) { + return await axios.post(BASE_URL + '/picInfo/page', { + page: currentPage, + pageSize: pageSize, + type: formInline.type == '全部' ? '' : formInline.type, + picName: formInline.picName, }) }, - async editPicConfirm(currentRowId, type) { + async editPicConfirm(currentRowId, type, picName) { return await axios.post(BASE_URL + '/picInfo/update', { id: currentRowId, type: type, + picName: picName, + }) + }, + + async batchUpdatePic(ids, type) { + return await axios.post(BASE_URL + '/picInfo/batchUpdatePic', { + ids: ids, + type: type, }) }, //余额管理 @@ -149,5 +157,38 @@ const ApiService = { endDate: formInline.accountDate != null ? formInline.accountDate[1] : '', }) }, + //用户管理 + async multiTriplet(userNames) { + return await axios.post(BASE_URL + '/csdn/multiTriplet', userNames) + }, + async autoReply() { + return await axios.get(BASE_URL + '/csdn/autoReply') + }, + async singleTriplet(userName) { + return await axios.get(BASE_URL + '/csdn/singleTriplet?username=' + userName) + }, + + //私信管理 + async dealMessageOne(userName) { + return await axios.get(BASE_URL + '/csdn/message/dealMessageOne?userName=' + userName) + }, + async dealMessage() { + return await axios.get(BASE_URL + '/csdn/message/dealMessage') + }, + async dealLikeCollect() { + return await axios.get(BASE_URL + '/csdn/likeCollect/dealLikeCollect') + }, + async acquireMessage() { + return await axios.get(BASE_URL + '/csdn/message/acquireMessage') + }, + async messagePage(currentPage, pageSize, formInline) { + return await axios.post('http://localhost:80/csdn/message/page', { + page: currentPage, + pageSize: pageSize, + userName: formInline.userName, + nickName: formInline.nickName, + hasReplied: formInline.hasRepliedInfo == -1 ? null : formInline.hasRepliedInfo, + }) + }, } export default ApiService diff --git a/src/components/MyLogin.vue b/src/components/MyLogin.vue index 3cd1fe75a022d15607fec6ffcc75b0409d276fe0..210a7d559bb1689cf1724074fe6cbfca78e64352 100644 --- a/src/components/MyLogin.vue +++ b/src/components/MyLogin.vue @@ -1,109 +1,113 @@ \ No newline at end of file diff --git a/src/components/menus/MyAlgorithmic.vue b/src/components/menus/MyAlgorithmic.vue index f24c96dadb69e3368f70db179f1fd8a178b2b96c..5b68f56af8c7413df0d485f52065c55f8542dafd 100644 --- a/src/components/menus/MyAlgorithmic.vue +++ b/src/components/menus/MyAlgorithmic.vue @@ -2,73 +2,14 @@
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
批量新增算法问题(多个问题换行填写)
- - - - - - -
- - - - - {{ randomAlgorithmic.questionName }} - - - - {{ randomAlgorithmic.leetcodeNumber }} - - - - {{ randomAlgorithmic.leetcodeLink }} - - - - - + + + + @@ -76,12 +17,79 @@ 随机一题 + + + + + {{ randomAlgorithmic.questionName }} + + + + {{ randomAlgorithmic.leetcodeNumber }} + + + + {{ randomAlgorithmic.leetcodeLink }} + + + + 新增 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 批量新增 + +
批量新增算法问题(多个问题换行填写)
+ + + + + + +
@@ -92,11 +100,23 @@ - + + + + + + + @@ -108,17 +128,25 @@