67 lines
1.3 KiB
JavaScript
67 lines
1.3 KiB
JavaScript
import request from '@/utils/request'
|
|
|
|
/**
|
|
* 获取商户客服列表
|
|
* @param {Object} query - 查询参数
|
|
* @returns {Promise} 返回商户客服列表
|
|
*/
|
|
export function mchListMchCustom(query) {
|
|
return request({
|
|
url: '/mch/mchCustom/listByMchId',
|
|
method: 'get',
|
|
params: query
|
|
})
|
|
}
|
|
|
|
/**
|
|
* 新增商户客服
|
|
* @param {Object} data - 商户客服信息
|
|
* @returns {Promise} 返回操作结果
|
|
*/
|
|
export function mchAddMchCustom(data) {
|
|
return request({
|
|
url: '/mch/mchCustom/add',
|
|
method: 'post',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
/**
|
|
* 修改商户客服
|
|
* @param {Object} data - 商户客服信息
|
|
* @returns {Promise} 返回操作结果
|
|
*/
|
|
export function mchUpdateMchCustom(data) {
|
|
return request({
|
|
url: '/mch/mchCustom/update',
|
|
method: 'put',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
/**
|
|
* 删除商户客服
|
|
* @param {Number} id - 商户客服ID
|
|
* @returns {Promise} 返回操作结果
|
|
*/
|
|
export function mchDeleteMchCustom(id) {
|
|
return request({
|
|
url: '/mch/mchCustom/delete',
|
|
method: 'delete',
|
|
data: id
|
|
})
|
|
}
|
|
|
|
/**
|
|
* 获取商户客服详情
|
|
* @param {Number} id - 商户客服ID
|
|
* @returns {Promise} 返回商户客服详情
|
|
*/
|
|
export function mchGetMchCustomDetail(id) {
|
|
return request({
|
|
url: '/mch/mchCustom/detail',
|
|
method: 'get',
|
|
params: { id }
|
|
})
|
|
}
|