feat: 添加防抖指令和任务管理功能
feat(anchor): 新增主播管理模块 feat(account): 完善客服账号管理功能 feat(knowledge): 添加任务列表查看和重新执行功能 feat(router): 增强路由组件动态导入逻辑 refactor: 优化多个视图的按钮防抖处理 style: 统一代码格式和样式 fix: 修复客服账号状态切换逻辑
This commit is contained in:
69
src/api/trade/operation/setting/anchor/index.ts
Normal file
69
src/api/trade/operation/setting/anchor/index.ts
Normal file
@@ -0,0 +1,69 @@
|
||||
import request from '/@/utils/request';
|
||||
|
||||
// 主播管理API接口
|
||||
|
||||
export interface AnchorListParams {
|
||||
pageNum: number;
|
||||
pageSize: number;
|
||||
name?: string;
|
||||
phone?: string;
|
||||
code?: string;
|
||||
status?: number;
|
||||
}
|
||||
|
||||
export interface AnchorParams {
|
||||
id?: string;
|
||||
name: string;
|
||||
phone: string;
|
||||
code: string;
|
||||
status?: number;
|
||||
remark?: string;
|
||||
}
|
||||
|
||||
export function getAnchorList(data: AnchorListParams) {
|
||||
return request({
|
||||
url: '/erp/anchor/controller/listAnchors',
|
||||
method: 'get',
|
||||
params: data,
|
||||
});
|
||||
}
|
||||
|
||||
export function getAnchorOne(data: { id: string }) {
|
||||
return request({
|
||||
url: '/erp/anchor/controller/getAnchor',
|
||||
method: 'get',
|
||||
params: data,
|
||||
});
|
||||
}
|
||||
|
||||
export function addAnchor(data: AnchorParams) {
|
||||
return request({
|
||||
url: '/erp/anchor/controller/createAnchor',
|
||||
method: 'post',
|
||||
data: data,
|
||||
});
|
||||
}
|
||||
|
||||
export function updateAnchor(data: AnchorParams) {
|
||||
return request({
|
||||
url: '/erp/anchor/controller/updateAnchor',
|
||||
method: 'post',
|
||||
data: data,
|
||||
});
|
||||
}
|
||||
|
||||
export function deleteAnchor(data: { id: string }) {
|
||||
return request({
|
||||
url: '/erp/anchor/controller/deleteAnchor',
|
||||
method: 'post',
|
||||
data: data,
|
||||
});
|
||||
}
|
||||
|
||||
export function updateAnchorStatus(data: { id: string; status: number }) {
|
||||
return request({
|
||||
url: '/erp/anchor/controller/updateAnchorStatus',
|
||||
method: 'post',
|
||||
data: data,
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user