超管后台 - 对接客户管理详情
This commit is contained in:
@@ -12,11 +12,25 @@ export interface Customer {
|
||||
region: string;
|
||||
tags: string[];
|
||||
source: string;
|
||||
companyName: string;
|
||||
createTime: string;
|
||||
projectName: string;
|
||||
addTime: string | null;
|
||||
mobile: number;
|
||||
}
|
||||
|
||||
/**
|
||||
* 客户详情接口
|
||||
*/
|
||||
export interface CustomerDetail {
|
||||
source: string;
|
||||
addTime: string | null;
|
||||
projectName: string;
|
||||
avatar: string;
|
||||
nickname: string;
|
||||
region: string;
|
||||
gender: string;
|
||||
tags: string[];
|
||||
}
|
||||
|
||||
/**
|
||||
* 分页响应数据类型
|
||||
*/
|
||||
@@ -48,4 +62,11 @@ export async function getTrafficPoolList(
|
||||
}
|
||||
|
||||
return apiRequest(`/trafficPool/list?${params.toString()}`);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取客户详情
|
||||
*/
|
||||
export async function getCustomerDetail(id: string): Promise<ApiResponse<CustomerDetail>> {
|
||||
return apiRequest(`/trafficPool/detail?id=${id}`);
|
||||
}
|
||||
Reference in New Issue
Block a user