This commit is contained in:
@@ -19,7 +19,9 @@ import type {
|
||||
BaseResponse,
|
||||
PaginationResponse,
|
||||
ListResponse,
|
||||
GatewayRealnameLinkResponse
|
||||
GatewayRealnameLinkResponse,
|
||||
ImportIotCardRequest,
|
||||
ImportIotCardResponse
|
||||
} from '@/types/api'
|
||||
|
||||
export class CardService extends BaseService {
|
||||
@@ -286,15 +288,8 @@ export class CardService extends BaseService {
|
||||
* 批量导入ICCID(新版:使用 JSON 格式)
|
||||
* @param data 导入请求参数
|
||||
*/
|
||||
static importIotCards(data: {
|
||||
carrier_id: number
|
||||
file_key: string
|
||||
batch_no?: string
|
||||
}): Promise<BaseResponse<{ task_id: number; task_no: string; message: string }>> {
|
||||
return this.post<BaseResponse<{ task_id: number; task_no: string; message: string }>>(
|
||||
'/api/admin/iot-cards/import',
|
||||
data
|
||||
)
|
||||
static importIotCards(data: ImportIotCardRequest): Promise<BaseResponse<ImportIotCardResponse>> {
|
||||
return this.post<BaseResponse<ImportIotCardResponse>>('/api/admin/iot-cards/import', data)
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -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