接口对接
This commit is contained in:
76
common/api/feedback.js
Normal file
76
common/api/feedback.js
Normal file
@@ -0,0 +1,76 @@
|
||||
import request from '../js/request';
|
||||
import config from '../js/config';
|
||||
/**
|
||||
* 添加反馈
|
||||
* @param {*} params {description: '', files: '', title: 1,type: 1,user_id:12}
|
||||
* @returns
|
||||
*/
|
||||
export function addFeedBack(params) {
|
||||
return request({
|
||||
url: '/feedback/addFeedBack',
|
||||
method: 'post',
|
||||
data: params,
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 问题详情
|
||||
* @param {*} id
|
||||
* @returns
|
||||
*/
|
||||
export function queryFeedBackDetail(id) {
|
||||
return request({
|
||||
url: '/feedback/queryFeedBackDetail',
|
||||
method: 'post',
|
||||
data: {
|
||||
id,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
// 问题列表
|
||||
export function queryFeedBackPage(params) {
|
||||
return request({
|
||||
url: '/feedback/queryFeedBackPage',
|
||||
method: 'post',
|
||||
data: {
|
||||
currentPage: 1,
|
||||
pageSize: 20,
|
||||
status: '',
|
||||
type: '',
|
||||
userId: uni.getStorageSync('userInfo').id,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加反馈聊天
|
||||
*
|
||||
* @param {*} params {chatContent: '', id: 12, user_id: 1}
|
||||
* @returns
|
||||
*/
|
||||
export function AddFeedbackChat(params) {
|
||||
return request({
|
||||
url: '/feedbackChat/AddFeedbackChat',
|
||||
method: 'post',
|
||||
data: params,
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 更新反馈聊天状态
|
||||
* @param {*} params {
|
||||
"id": "2e47078c0f59a4a612655bb3bbaed617",
|
||||
"userId": "12"
|
||||
}
|
||||
* @returns
|
||||
*/
|
||||
export function updateChatStatus(params) {
|
||||
return request({
|
||||
url: '/feedbackChat/updateChatStatus',
|
||||
method: 'post',
|
||||
data: params,
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user