import request from '@/utils/request'
|
|
// 获取评价维度配置
|
export function getEvaluationDimensions() {
|
return request({
|
url: '/evaluation/dimensions',
|
method: 'get'
|
})
|
}
|
|
// 提交客户评价
|
export function submitEvaluation(data) {
|
return request({
|
url: '/evaluation/submit',
|
method: 'post',
|
data: data
|
})
|
}
|
|
// 生成微信授权URL
|
export function getWechatAuthUrl(redirectUri, state) {
|
return request({
|
url: '/evaluation/wechat/authurl',
|
method: 'get',
|
params: { redirectUri, state }
|
})
|
}
|
|
// 获取微信用户信息
|
export function getWechatUserInfo(code) {
|
return request({
|
url: '/evaluation/wechat/userinfo',
|
method: 'get',
|
params: { code }
|
})
|
}
|
|
// 查询客户评价列表
|
export function listEvaluation(query) {
|
return request({
|
url: '/evaluation/list',
|
method: 'get',
|
params: query
|
})
|
}
|
|
// 查询客户评价详细
|
export function getEvaluation(evaluationId) {
|
return request({
|
url: '/evaluation/' + evaluationId,
|
method: 'get'
|
})
|
}
|
|
// 新增客户评价
|
export function addEvaluation(data) {
|
return request({
|
url: '/evaluation',
|
method: 'post',
|
data: data
|
})
|
}
|
|
// 修改客户评价
|
export function updateEvaluation(data) {
|
return request({
|
url: '/evaluation',
|
method: 'put',
|
data: data
|
})
|
}
|
|
// 删除客户评价
|
export function delEvaluation(evaluationId) {
|
return request({
|
url: '/evaluation/' + evaluationId,
|
method: 'delete'
|
})
|
}
|
|
// 生成车辆评价二维码
|
export function generateQrcode(data) {
|
return request({
|
url: '/evaluation/qrcode/generate',
|
method: 'post',
|
data: data
|
})
|
}
|
|
// 批量生成车辆评价二维码
|
export function batchGenerateQrcode(data) {
|
return request({
|
url: '/evaluation/qrcode/batch',
|
method: 'post',
|
data: data
|
})
|
}
|
|
// 查询评价维度配置列表
|
export function listDimension(query) {
|
return request({
|
url: '/evaluation/dimension/list',
|
method: 'get',
|
params: query
|
})
|
}
|
|
// 查询评价维度配置详细
|
export function getDimension(dimensionId) {
|
return request({
|
url: '/evaluation/dimension/' + dimensionId,
|
method: 'get'
|
})
|
}
|
|
// 新增评价维度配置
|
export function addDimension(data) {
|
return request({
|
url: '/evaluation/dimension',
|
method: 'post',
|
data: data
|
})
|
}
|
|
// 修改评价维度配置
|
export function updateDimension(data) {
|
return request({
|
url: '/evaluation/dimension',
|
method: 'put',
|
data: data
|
})
|
}
|
|
// 删除评价维度配置
|
export function delDimension(dimensionId) {
|
return request({
|
url: '/evaluation/dimension/' + dimensionId,
|
method: 'delete'
|
})
|
}
|
|
// 查询车辆评价二维码列表
|
export function listQrcode(query) {
|
return request({
|
url: '/evaluation/qrcode/list',
|
method: 'get',
|
params: query
|
})
|
}
|
|
// 查询车辆评价二维码详细
|
export function getQrcode(qrcodeId) {
|
return request({
|
url: '/evaluation/qrcode/' + qrcodeId,
|
method: 'get'
|
})
|
}
|
|
// 删除车辆评价二维码
|
export function delQrcode(qrcodeId) {
|
return request({
|
url: '/evaluation/qrcode/' + qrcodeId,
|
method: 'delete'
|
})
|
}
|
|
// 查询客户评价列表(用于统计页面)
|
export function listCustomerEvaluation(query) {
|
return request({
|
url: '/evaluation/list',
|
method: 'get',
|
params: query
|
})
|
}
|
|
// 查询客户评价详细(用于统计页面)
|
export function getCustomerEvaluation(evaluationId) {
|
return request({
|
url: '/evaluation/' + evaluationId,
|
method: 'get'
|
})
|
}
|
|
// 获取评价统计数据
|
export function getEvaluationStatistics(query) {
|
return request({
|
url: '/evaluation/evaluation/statistics',
|
method: 'get',
|
params: query
|
})
|
}
|