fetch(add): 运营商管理
All checks were successful
构建并部署前端到测试环境 / build-and-deploy (push) Successful in 2m23s
All checks were successful
构建并部署前端到测试环境 / build-and-deploy (push) Successful in 2m23s
This commit is contained in:
@@ -449,3 +449,32 @@ export interface AssetAllocationRecord {
|
||||
export interface AssetAllocationRecordDetail extends AssetAllocationRecord {
|
||||
related_card_ids: number[] // 关联卡ID列表
|
||||
}
|
||||
|
||||
// ========== 单卡详情查询相关 ==========
|
||||
|
||||
// IoT卡详情响应(对应 /api/admin/iot-cards/by-iccid/{iccid} 接口)
|
||||
export interface IotCardDetailResponse {
|
||||
id: number // 卡ID
|
||||
iccid: string // ICCID
|
||||
imsi: string // IMSI
|
||||
msisdn: string // 卡接入号
|
||||
carrier_id: number // 运营商ID
|
||||
carrier_name: string // 运营商名称
|
||||
carrier_type: string // 运营商类型 (CMCC:中国移动, CUCC:中国联通, CTCC:中国电信, CBN:中国广电)
|
||||
card_type: string // 卡类型
|
||||
card_category: string // 卡业务类型 (normal:普通卡, industry:行业卡)
|
||||
status: number // 状态 (1:在库, 2:已分销, 3:已激活, 4:已停用)
|
||||
activation_status: number // 激活状态 (0:未激活, 1:已激活)
|
||||
network_status: number // 网络状态 (0:停机, 1:开机)
|
||||
real_name_status: number // 实名状态 (0:未实名, 1:已实名)
|
||||
batch_no: string // 批次号
|
||||
supplier: string // 供应商
|
||||
shop_id: number | null // 店铺ID
|
||||
shop_name: string // 店铺名称
|
||||
cost_price: number // 成本价(分)
|
||||
distribute_price: number // 分销价(分)
|
||||
data_usage_mb: number // 累计流量使用(MB)
|
||||
activated_at: string | null // 激活时间
|
||||
created_at: string // 创建时间
|
||||
updated_at: string // 更新时间
|
||||
}
|
||||
|
||||
51
src/types/api/carrier.ts
Normal file
51
src/types/api/carrier.ts
Normal file
@@ -0,0 +1,51 @@
|
||||
/**
|
||||
* 运营商管理相关类型定义
|
||||
*/
|
||||
|
||||
import type { PaginationParams } from './common'
|
||||
|
||||
// 运营商类型枚举
|
||||
export enum CarrierType {
|
||||
CMCC = 'CMCC', // 中国移动
|
||||
CUCC = 'CUCC', // 中国联通
|
||||
CTCC = 'CTCC', // 中国电信
|
||||
CBN = 'CBN' // 中国广电
|
||||
}
|
||||
|
||||
// 运营商响应数据
|
||||
export interface Carrier {
|
||||
id: number
|
||||
carrier_code: string
|
||||
carrier_name: string
|
||||
carrier_type: CarrierType
|
||||
description?: string
|
||||
status: number
|
||||
created_at: string
|
||||
updated_at: string
|
||||
}
|
||||
|
||||
// 运营商列表查询参数
|
||||
export interface CarrierQueryParams extends PaginationParams {
|
||||
carrier_name?: string
|
||||
carrier_type?: CarrierType
|
||||
status?: number
|
||||
}
|
||||
|
||||
// 创建运营商请求参数
|
||||
export interface CreateCarrierParams {
|
||||
carrier_code: string
|
||||
carrier_name: string
|
||||
carrier_type: CarrierType
|
||||
description?: string
|
||||
}
|
||||
|
||||
// 更新运营商请求参数
|
||||
export interface UpdateCarrierParams {
|
||||
carrier_name?: string
|
||||
description?: string
|
||||
}
|
||||
|
||||
// 更新运营商状态参数
|
||||
export interface UpdateCarrierStatusParams {
|
||||
status: number
|
||||
}
|
||||
@@ -52,3 +52,6 @@ export * from './authorization'
|
||||
|
||||
// 企业卡授权相关
|
||||
export * from './enterpriseCard'
|
||||
|
||||
// 运营商相关
|
||||
export * from './carrier'
|
||||
|
||||
Reference in New Issue
Block a user