44 lines
1.3 KiB
TypeScript
44 lines
1.3 KiB
TypeScript
import request from '@/config/axios'
|
|
|
|
// 客服配置 VO
|
|
export interface ConfigurationVO {
|
|
id: number // id
|
|
type: number // 客服类型
|
|
feedback: string // 客服反馈
|
|
phone: string // 客服电话
|
|
link: string // 客服链接
|
|
enterpriseID: string // 企业ID
|
|
}
|
|
|
|
// 客服配置 API
|
|
export const ConfigurationApi = {
|
|
// 查询客服配置分页
|
|
getConfigurationPage: async (params: any) => {
|
|
return await request.get({ url: `/promotion/ke-fu-configuration/page`, params })
|
|
},
|
|
|
|
// 查询客服配置详情
|
|
getConfiguration: async (id: number) => {
|
|
return await request.get({ url: `/promotion/ke-fu-configuration/get?id=` + id })
|
|
},
|
|
|
|
// 新增客服配置
|
|
createConfiguration: async (data: ConfigurationVO) => {
|
|
return await request.post({ url: `/promotion/ke-fu-configuration/create`, data })
|
|
},
|
|
|
|
// 修改客服配置
|
|
updateConfiguration: async (data: ConfigurationVO) => {
|
|
return await request.put({ url: `/promotion/ke-fu-configuration/update`, data })
|
|
},
|
|
|
|
// 删除客服配置
|
|
deleteConfiguration: async (id: number) => {
|
|
return await request.delete({ url: `/promotion/ke-fu-configuration/delete?id=` + id })
|
|
},
|
|
|
|
// 导出客服配置 Excel
|
|
exportConfiguration: async (params) => {
|
|
return await request.download({ url: `/promotion/ke-fu-configuration/export-excel`, params })
|
|
}
|
|
} |