调整界面
This commit is contained in:
33
stdiet-ui/src/api/custom/message.js
Normal file
33
stdiet-ui/src/api/custom/message.js
Normal file
@ -0,0 +1,33 @@
|
||||
import request from "@/utils/request";
|
||||
|
||||
export function fetchTopicList(query) {
|
||||
return request({
|
||||
url: "/services/topic/list",
|
||||
method: "get",
|
||||
params: query
|
||||
});
|
||||
}
|
||||
|
||||
export function fetchTopicDetail(query) {
|
||||
return request({
|
||||
url: "/services/topic/detail",
|
||||
method: "get",
|
||||
params: query
|
||||
});
|
||||
}
|
||||
|
||||
export function postTopicReply(data) {
|
||||
return request({
|
||||
url: "/services/topic/reply",
|
||||
method: "post",
|
||||
body: data
|
||||
});
|
||||
}
|
||||
|
||||
export function postTopicComment(data) {
|
||||
return request({
|
||||
url: "/services/topic/comment",
|
||||
method: "post",
|
||||
body: data
|
||||
});
|
||||
}
|
Reference in New Issue
Block a user