48 lines
1.4 KiB
TypeScript
48 lines
1.4 KiB
TypeScript
|
import request from '@/config/axios'
|
||
|
|
||
|
// 客服人员 VO
|
||
|
export interface SupportStaffVO {
|
||
|
id: number // ID
|
||
|
name: string // 客服名称
|
||
|
pic: string //头像
|
||
|
phone: string // 手机号码
|
||
|
account: string // 登录账号
|
||
|
password: string // 登录密码
|
||
|
status: number // 客服状态
|
||
|
orderManage: number // 手机订单管理
|
||
|
orderInform: number // 订单通知
|
||
|
}
|
||
|
|
||
|
// 客服人员 API
|
||
|
export const SupportStaffApi = {
|
||
|
// 查询客服人员分页
|
||
|
getSupportStaffPage: async (params: any) => {
|
||
|
return await request.get({ url: `/promotion/support-staff/page`, params })
|
||
|
},
|
||
|
|
||
|
// 查询客服人员详情
|
||
|
getSupportStaff: async (id: number) => {
|
||
|
return await request.get({ url: `/promotion/support-staff/get?id=` + id })
|
||
|
},
|
||
|
|
||
|
// 新增客服人员
|
||
|
createSupportStaff: async (data: SupportStaffVO) => {
|
||
|
return await request.post({ url: `/promotion/support-staff/create`, data })
|
||
|
},
|
||
|
|
||
|
// 修改客服人员
|
||
|
updateSupportStaff: async (data: SupportStaffVO) => {
|
||
|
return await request.put({ url: `/promotion/support-staff/update`, data })
|
||
|
},
|
||
|
|
||
|
// 删除客服人员
|
||
|
deleteSupportStaff: async (id: number) => {
|
||
|
return await request.delete({ url: `/promotion/support-staff/delete?id=` + id })
|
||
|
},
|
||
|
|
||
|
// 导出客服人员 Excel
|
||
|
exportSupportStaff: async (params) => {
|
||
|
return await request.download({ url: `/promotion/support-staff/export-excel`, params })
|
||
|
}
|
||
|
}
|