f
This commit is contained in:
@@ -24,6 +24,14 @@ export namespace AgentApi {
|
||||
items: AgentListItem[];
|
||||
}
|
||||
|
||||
export interface UpdateAgentRequest {
|
||||
id: number;
|
||||
mobile: string;
|
||||
level_name: string;
|
||||
region: string;
|
||||
membership_expiry_time: string;
|
||||
}
|
||||
|
||||
export interface GetAgentListParams {
|
||||
page: number;
|
||||
pageSize: number;
|
||||
@@ -135,6 +143,7 @@ export namespace AgentApi {
|
||||
agent_id?: number;
|
||||
status?: number;
|
||||
withdraw_no?: string;
|
||||
withdraw_type?: number;
|
||||
}
|
||||
|
||||
// 提现统计数据
|
||||
@@ -272,7 +281,7 @@ export interface GetAgentLinkProductStatisticsParams {}
|
||||
payment_method: 'alipay' | 'appleiap' | 'other' | 'wechat';
|
||||
order_no: string;
|
||||
platform_order_id: string;
|
||||
status: 'cancelled' | 'failed' | 'pending' | 'success';
|
||||
status: 'closed' | 'failed' | 'paid' | 'pending' | 'refunded';
|
||||
create_time: string;
|
||||
}
|
||||
|
||||
@@ -409,6 +418,13 @@ async function getAgentList(params: AgentApi.GetAgentListParams) {
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 编辑代理
|
||||
*/
|
||||
async function updateAgent(params: AgentApi.UpdateAgentRequest) {
|
||||
return requestClient.post<{ success: boolean }>('/agent/update', params);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取代理推广链接列表
|
||||
*/
|
||||
@@ -694,6 +710,7 @@ export {
|
||||
getAgentLinkList,
|
||||
getAgentLinkProductStatistics,
|
||||
getAgentList,
|
||||
updateAgent,
|
||||
getAgentMembershipConfigList,
|
||||
getAgentOrderStatistics,
|
||||
getAgentPlatformDeductionList,
|
||||
|
||||
Reference in New Issue
Block a user