This commit is contained in:
@@ -93,82 +93,6 @@ export class CommissionService extends BaseService {
|
||||
)
|
||||
}
|
||||
|
||||
// ==================== 我的佣金(已废弃,仅保留用于向后兼容) ====================
|
||||
|
||||
/**
|
||||
* @deprecated 使用 getShopCommissionRecords 代替
|
||||
* 获取我的佣金明细
|
||||
* GET /api/admin/my/commission-records
|
||||
*/
|
||||
static getMyCommissionRecords(
|
||||
params?: CommissionRecordQueryParams
|
||||
): Promise<BaseResponse<MyCommissionRecordPageResult>> {
|
||||
return this.get<BaseResponse<MyCommissionRecordPageResult>>(
|
||||
'/api/admin/my/commission-records',
|
||||
params
|
||||
)
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated 使用 getShopFundSummary 代替
|
||||
* 获取我的佣金概览
|
||||
* GET /api/admin/my/commission-summary
|
||||
*/
|
||||
static getMyCommissionSummary(): Promise<BaseResponse<MyCommissionSummary>> {
|
||||
return this.get<BaseResponse<MyCommissionSummary>>('/api/admin/my/commission-summary')
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated 使用 getShopWithdrawalRequests 代替
|
||||
* 获取我的提现记录
|
||||
* GET /api/admin/my/withdrawal-requests
|
||||
*/
|
||||
static getMyWithdrawalRequests(
|
||||
params?: WithdrawalRequestQueryParams
|
||||
): Promise<BaseResponse<WithdrawalRequestPageResult>> {
|
||||
return this.get<BaseResponse<WithdrawalRequestPageResult>>(
|
||||
'/api/admin/my/withdrawal-requests',
|
||||
params
|
||||
)
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated 使用 submitShopWithdrawalRequest 代替
|
||||
* 发起提现申请
|
||||
* POST /api/admin/my/withdrawal-requests
|
||||
*/
|
||||
static submitWithdrawalRequest(params: SubmitWithdrawalParams): Promise<BaseResponse> {
|
||||
return this.post<BaseResponse>('/api/admin/my/withdrawal-requests', params)
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated 使用 getShopCommissionStats 代替
|
||||
* 获取我的佣金统计
|
||||
* GET /api/admin/my/commission-stats
|
||||
*/
|
||||
static getMyCommissionStats(
|
||||
params?: ShopCommissionStatsQueryParams
|
||||
): Promise<BaseResponse<CommissionStatsResponse>> {
|
||||
return this.get<BaseResponse<CommissionStatsResponse>>(
|
||||
'/api/admin/my/commission-stats',
|
||||
params
|
||||
)
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated 使用 getShopDailyCommissionStats 代替
|
||||
* 获取我的每日佣金统计
|
||||
* GET /api/admin/my/commission-daily-stats
|
||||
*/
|
||||
static getMyDailyCommissionStats(
|
||||
params?: DailyCommissionStatsQueryParams
|
||||
): Promise<BaseResponse<DailyCommissionStatsItem[]>> {
|
||||
return this.get<BaseResponse<DailyCommissionStatsItem[]>>(
|
||||
'/api/admin/my/commission-daily-stats',
|
||||
params
|
||||
)
|
||||
}
|
||||
|
||||
// ==================== 代理商佣金管理 ====================
|
||||
|
||||
/**
|
||||
@@ -212,17 +136,6 @@ export class CommissionService extends BaseService {
|
||||
)
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated 使用 getShopFundSummary 代替
|
||||
* 获取代理商佣金汇总列表
|
||||
* GET /api/admin/shops/commission-summary
|
||||
*/
|
||||
static getShopCommissionSummary(
|
||||
params?: ShopFundSummaryQueryParams
|
||||
): Promise<BaseResponse<ShopFundSummaryPageResult>> {
|
||||
return this.getShopFundSummary(params)
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取代理商佣金统计
|
||||
* GET /api/admin/shops/{shop_id}/commission-stats
|
||||
|
||||
Reference in New Issue
Block a user