This commit is contained in:
@@ -42,6 +42,12 @@ export enum CardType {
|
||||
FLOW = 'flow' // 流量卡
|
||||
}
|
||||
|
||||
// 卡业务类型
|
||||
export enum CardCategory {
|
||||
NORMAL = 'normal', // 普通卡
|
||||
INDUSTRY = 'industry' // 行业卡
|
||||
}
|
||||
|
||||
// 号卡商品实体
|
||||
export interface SimCardProduct {
|
||||
id: string | number
|
||||
@@ -107,6 +113,21 @@ export interface CardQueryParams extends PaginationParams {
|
||||
importTimeRange?: [string, string]
|
||||
}
|
||||
|
||||
// IoT 卡导入请求
|
||||
export interface ImportIotCardRequest {
|
||||
carrier_id: number // 运营商ID
|
||||
file_key: string // 对象存储文件路径
|
||||
batch_no?: string // 批次号
|
||||
card_category?: CardCategory // 卡业务类型(新增,可选,默认 normal)
|
||||
}
|
||||
|
||||
// IoT 卡导入响应
|
||||
export interface ImportIotCardResponse {
|
||||
task_id: number // 导入任务ID
|
||||
task_no: string // 任务编号
|
||||
message: string // 提示信息
|
||||
}
|
||||
|
||||
// 网卡导入批次信息
|
||||
export interface CardImportBatch extends ImportTask {
|
||||
importBatch: string // 导入批次号
|
||||
@@ -118,6 +139,7 @@ export interface CardImportBatch extends ImportTask {
|
||||
cardCompanyName?: string
|
||||
operator: Operator
|
||||
cardType: CardType
|
||||
cardCategory?: CardCategory // 卡业务类型(新增)
|
||||
operatorUser?: string // 操作人
|
||||
}
|
||||
|
||||
|
||||
@@ -151,6 +151,7 @@ export interface CommissionRecordQueryParams extends PaginationParams {
|
||||
* 我的佣金概览
|
||||
*/
|
||||
export interface MyCommissionSummary {
|
||||
main_balance: number // 预充值余额(分)
|
||||
total_commission: number // 总佣金(分)
|
||||
available_commission: number // 可提现佣金(分)
|
||||
frozen_commission: number // 冻结中佣金(分)
|
||||
|
||||
@@ -92,7 +92,7 @@ export interface CreateOrderRequest {
|
||||
iot_card_id?: number | null // IoT卡ID
|
||||
device_id?: number | null // 设备ID
|
||||
identifier?: string // 资产标识符(ICCID 或 VirtualNo)
|
||||
package_id: number // 套餐ID(单选)
|
||||
package_ids: number[] // 套餐ID列表(前端限制单选,后端支持1-10个)
|
||||
payment_method: OrderPaymentMethod // 支付方式
|
||||
payment_voucher_key?: string // 线下支付凭证(仅 offline 必填)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user