feat:新增投诉列表与投诉详情

This commit is contained in:
2025-11-28 10:38:22 +08:00
parent 2a249d04da
commit 64c9d933b1
7 changed files with 1245 additions and 11 deletions
+35
View File
@@ -10,3 +10,38 @@ export const addUserFeedback = (data) => {
})
}
// 获取投诉记录列表
export const getFeedbackList = (params) => {
// GET请求需要将参数拼接到URL上
let url = '/app/feedback/list';
if (params) {
const queryString = Object.keys(params)
.map(key => `${encodeURIComponent(key)}=${encodeURIComponent(params[key])}`)
.join('&');
if (queryString) {
url += `?${queryString}`;
}
}
return request({
url: url,
method: 'get',
})
}
// 获取投诉详情
export const getFeedbackDetail = (id) => {
return request({
url: `/app/feedback/${id}`,
method: 'get',
})
}
// 提交投诉回复
export const submitFeedbackReply = (data) => {
return request({
url: '/app/feedback/reply',
method: 'post',
data,
})
}