This commit is contained in:
@@ -36,7 +36,10 @@ import type {
|
||||
AssetAllocationRecordDetail,
|
||||
BatchSetCardSeriesBindingRequest,
|
||||
BatchSetCardSeriesBindingResponse,
|
||||
BatchUpdateAssetRealnamePolicyRequest
|
||||
BatchUpdateAssetRealnamePolicyRequest,
|
||||
BatchUpdateAssetRealnamePolicyResponse,
|
||||
SpeedTierCode,
|
||||
SetSpeedTierResponse
|
||||
} from '@/types/api'
|
||||
|
||||
type ApiQueryParams = PaginationParams & Record<string, unknown>
|
||||
@@ -57,6 +60,15 @@ interface CardChangeNotice {
|
||||
}
|
||||
|
||||
export class CardService extends BaseService {
|
||||
static setSpeedTier(
|
||||
iccid: string,
|
||||
code: SpeedTierCode
|
||||
): Promise<BaseResponse<SetSpeedTierResponse>> {
|
||||
return this.put<BaseResponse<SetSpeedTierResponse>>(
|
||||
`/api/admin/iot-cards/${encodeURIComponent(iccid)}/speed-tier`,
|
||||
{ code }
|
||||
)
|
||||
}
|
||||
// ========== 号卡商品管理 ==========
|
||||
|
||||
/**
|
||||
@@ -418,8 +430,8 @@ export class CardService extends BaseService {
|
||||
static batchUpdateRealnamePolicy(
|
||||
data: BatchUpdateAssetRealnamePolicyRequest,
|
||||
config?: Record<string, any>
|
||||
): Promise<BaseResponse<void>> {
|
||||
return this.post<BaseResponse<void>>(
|
||||
): Promise<BaseResponse<BatchUpdateAssetRealnamePolicyResponse>> {
|
||||
return this.post<BaseResponse<BatchUpdateAssetRealnamePolicyResponse>>(
|
||||
'/api/admin/iot-cards/batch-update-realname-policy',
|
||||
data,
|
||||
config
|
||||
|
||||
Reference in New Issue
Block a user