修复bug
All checks were successful
构建并部署前端到测试环境 / build-and-deploy (push) Successful in 4m59s

This commit is contained in:
sexygoat
2026-04-09 17:47:32 +08:00
parent 472099bf96
commit c2c1644799
13 changed files with 166 additions and 172 deletions

View File

@@ -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 // 操作人
}

View File

@@ -151,6 +151,7 @@ export interface CommissionRecordQueryParams extends PaginationParams {
* 我的佣金概览
*/
export interface MyCommissionSummary {
main_balance: number // 预充值余额(分)
total_commission: number // 总佣金(分)
available_commission: number // 可提现佣金(分)
frozen_commission: number // 冻结中佣金(分)

View File

@@ -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 必填)
}