feat: 文件下载
All checks were successful
构建并部署前端到测试环境 / build-and-deploy (push) Successful in 3m54s

This commit is contained in:
sexygoat
2026-04-30 18:04:01 +08:00
parent 81155fd8e4
commit 950520635d
19 changed files with 438 additions and 44 deletions

View File

@@ -216,6 +216,9 @@ export interface AssetPackageUsageRecord {
enable_virtual_data?: boolean // 是否启用虚流量
paid_amount?: number // 实际支付金额(分)
package_price?: number // 套餐价格(分)
start_time?: string // 开始时间(兼容前端现有映射字段)
expire_time?: string // 到期时间(兼容前端现有映射字段)
duration_days?: number // 套餐时长(兼容前端现有映射字段)
activated_at?: string // 激活时间
expires_at?: string // 到期时间
master_usage_id?: number | null // 主套餐 ID加油包时有值

View File

@@ -119,6 +119,7 @@ export interface ImportIotCardRequest {
file_key: string // 对象存储文件路径
batch_no?: string // 批次号
card_category?: CardCategory // 卡业务类型(新增,可选,默认 normal)
realname_policy?: 'none' | 'before_order' | 'after_order' // 实名认证策略
}
// IoT 卡导入响应
@@ -283,6 +284,8 @@ export interface IotCardImportTask {
carrier_type: string // 运营商类型 (CMCC:中国移动, CUCC:中国联通, CTCC:中国电信)
carrier_name: string // 运营商名称
file_name: string // 文件名
file_key?: string // 原始导入文件存储键
card_category?: CardCategory // 卡业务类型
status: IotCardImportTaskStatus // 任务状态
status_text: string // 任务状态文本
total_count: number // 总数
@@ -369,6 +372,12 @@ export interface StandaloneIotCard {
cost_price: number // 成本价(分)
distribute_price: number // 分销价(分)
data_usage_mb: number // 累计流量使用(MB)
current_month_usage_mb?: number // 自然月累计流量(MB)
current_month_start_date?: string | null // 本月开始日期
last_month_total_mb?: number // 上月流量总量(MB)
last_data_check_at?: string | null // 最后流量检查时间
last_real_name_check_at?: string | null // 最后实名检查时间
enable_polling?: boolean // 是否启用轮询
first_commission_paid: boolean // 是否已支付首次佣金
accumulated_recharge: number // 累计充值金额(分)
activated_at?: string | null // 激活时间 (可选)

View File

@@ -200,6 +200,7 @@ export interface DeviceImportTask {
task_no: string // 任务编号
batch_no: string // 批次号
file_name: string // 文件名
file_key?: string // 原始导入文件存储键
status: DeviceImportTaskStatus // 任务状态
status_text: string // 任务状态文本
total_count: number // 总数