fetch(add): 新增企业设备授权
All checks were successful
构建并部署前端到测试环境 / build-and-deploy (push) Successful in 2m25s
All checks were successful
构建并部署前端到测试环境 / build-and-deploy (push) Successful in 2m25s
This commit is contained in:
@@ -256,8 +256,9 @@ export interface ImportIotCardResponse {
|
||||
export interface IotCardImportTask {
|
||||
id: number // 任务ID
|
||||
task_no: string // 任务编号
|
||||
batch_no: string // 批次号
|
||||
batch_no?: string // 批次号 (可选)
|
||||
carrier_id: number // 运营商ID
|
||||
carrier_type: string // 运营商类型 (CMCC:中国移动, CUCC:中国联通, CTCC:中国电信)
|
||||
carrier_name: string // 运营商名称
|
||||
file_name: string // 文件名
|
||||
status: IotCardImportTaskStatus // 任务状态
|
||||
@@ -266,10 +267,10 @@ export interface IotCardImportTask {
|
||||
success_count: number // 成功数
|
||||
fail_count: number // 失败数
|
||||
skip_count: number // 跳过数
|
||||
error_message: string // 错误信息
|
||||
error_message?: string // 错误信息 (可选)
|
||||
created_at: string // 创建时间
|
||||
started_at: string | null // 开始处理时间
|
||||
completed_at: string | null // 完成时间
|
||||
started_at?: string | null // 开始处理时间 (可选)
|
||||
completed_at?: string | null // 完成时间 (可选)
|
||||
}
|
||||
|
||||
// 导入任务查询参数
|
||||
@@ -323,24 +324,27 @@ export interface StandaloneCardQueryParams extends PaginationParams {
|
||||
export interface StandaloneIotCard {
|
||||
id: number // 卡ID
|
||||
iccid: string // ICCID
|
||||
imsi: string // IMSI
|
||||
msisdn: string // 卡接入号
|
||||
imsi?: string // IMSI (可选)
|
||||
msisdn?: string // 卡接入号 (可选)
|
||||
carrier_id: number // 运营商ID
|
||||
carrier_type: string // 运营商类型 (CMCC:中国移动, CUCC:中国联通, CTCC:中国电信, CBN:中国广电)
|
||||
carrier_name: string // 运营商名称
|
||||
card_type: string // 卡类型
|
||||
card_type: string // 卡类型 (physical:物理卡, data_card:流量卡, voice_card:语音卡等)
|
||||
card_category: string // 卡业务类型 (normal:普通卡, industry:行业卡)
|
||||
status: StandaloneCardStatus // 状态
|
||||
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 // 店铺名称
|
||||
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 // 激活时间
|
||||
first_commission_paid: boolean // 是否已支付首次佣金
|
||||
accumulated_recharge: number // 累计充值金额(分)
|
||||
activated_at?: string | null // 激活时间 (可选)
|
||||
created_at: string // 创建时间
|
||||
updated_at: string // 更新时间
|
||||
}
|
||||
|
||||
@@ -144,58 +144,6 @@ export interface SeriesSelectOption {
|
||||
series_code: string
|
||||
}
|
||||
|
||||
// ==================== 代理可售套餐 ====================
|
||||
|
||||
/**
|
||||
* 我的可售套餐响应
|
||||
*/
|
||||
export interface MyPackageResponse {
|
||||
id: number
|
||||
package_code: string
|
||||
package_name: string
|
||||
series_id: number
|
||||
series_name: string
|
||||
package_type: string
|
||||
data_type: string
|
||||
real_data_mb: number // 真流量额度(MB)
|
||||
virtual_data_mb: number // 虚流量额度(MB)
|
||||
duration_months: number
|
||||
price: number // 套餐原价(分)
|
||||
cost_price: number // 成本价(分)
|
||||
suggested_retail_price: number // 建议售价(分)
|
||||
profit_margin: number // 利润空间(分)
|
||||
price_source: string // 价格来源:'series_pricing':系列加价, 'package_override':单套餐覆盖
|
||||
shelf_status: number
|
||||
status: number
|
||||
description?: string
|
||||
created_at: string
|
||||
updated_at: string
|
||||
}
|
||||
|
||||
/**
|
||||
* 我的可售套餐查询参数
|
||||
*/
|
||||
export interface MyPackageQueryParams extends PaginationParams {
|
||||
series_id?: number // 系列ID筛选
|
||||
package_type?: string // 套餐类型筛选
|
||||
}
|
||||
|
||||
/**
|
||||
* 我的被分配系列响应
|
||||
*/
|
||||
export interface MySeriesAllocationResponse {
|
||||
id: number // 分配ID
|
||||
series_id: number
|
||||
series_code: string
|
||||
series_name: string
|
||||
pricing_mode: string // 定价模式:'fixed':固定金额, 'percent':百分比
|
||||
pricing_value: number // 定价值
|
||||
allocator_shop_name: string // 分配者店铺名称
|
||||
package_count: number // 可售套餐数量
|
||||
status: number
|
||||
created_at: string
|
||||
}
|
||||
|
||||
// ==================== 单套餐分配 ====================
|
||||
|
||||
/**
|
||||
@@ -276,6 +224,28 @@ export interface TierCommissionConfig {
|
||||
tiers: TierEntry[] // 梯度档位数组
|
||||
}
|
||||
|
||||
/**
|
||||
* 一次性佣金梯度档位配置
|
||||
*/
|
||||
export interface OneTimeCommissionTierEntry {
|
||||
tier_type: 'sales_count' | 'sales_amount' // 梯度类型:销量或销售额
|
||||
threshold: number // 阈值
|
||||
mode: 'fixed' | 'percent' // 返佣模式
|
||||
value: number // 返佣值
|
||||
}
|
||||
|
||||
/**
|
||||
* 一次性佣金配置
|
||||
*/
|
||||
export interface OneTimeCommissionConfig {
|
||||
type: 'fixed' | 'tiered' // 佣金类型:'fixed':固定佣金, 'tiered':梯度佣金
|
||||
trigger: 'single_recharge' | 'accumulated_recharge' // 触发方式:'single_recharge':单笔充值, 'accumulated_recharge':累计充值
|
||||
threshold: number // 最低阈值(分)
|
||||
mode?: 'fixed' | 'percent' // 返佣模式(固定佣金时必填)
|
||||
value?: number // 返佣值(固定佣金时必填)
|
||||
tiers?: OneTimeCommissionTierEntry[] | null // 梯度档位数组(梯度佣金时必填)
|
||||
}
|
||||
|
||||
/**
|
||||
* 套餐系列分配响应
|
||||
*/
|
||||
@@ -288,8 +258,8 @@ export interface ShopSeriesAllocationResponse {
|
||||
allocator_shop_id: number // 分配者店铺ID
|
||||
allocator_shop_name: string // 分配者店铺名称
|
||||
base_commission: BaseCommissionConfig // 基础返佣配置
|
||||
enable_tier_commission: boolean // 是否启用梯度返佣
|
||||
tier_config?: TierCommissionConfig // 梯度返佣配置(可选)
|
||||
enable_one_time_commission: boolean // 是否启用一次性佣金
|
||||
one_time_commission_config?: OneTimeCommissionConfig // 一次性佣金配置(可选)
|
||||
status: number // 1:启用, 2:禁用
|
||||
created_at: string
|
||||
updated_at: string
|
||||
@@ -311,8 +281,8 @@ export interface CreateShopSeriesAllocationRequest {
|
||||
series_id: number // 套餐系列ID,必填
|
||||
shop_id: number // 店铺ID,必填
|
||||
base_commission: BaseCommissionConfig // 基础返佣配置,必填
|
||||
enable_tier_commission?: boolean // 是否启用梯度返佣,可选(默认false)
|
||||
tier_config?: TierCommissionConfig // 梯度返佣配置,当enable_tier_commission为true时必填
|
||||
enable_one_time_commission?: boolean // 是否启用一次性佣金,可选(默认false)
|
||||
one_time_commission_config?: OneTimeCommissionConfig // 一次性佣金配置,当enable_one_time_commission为true时必填
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -320,8 +290,8 @@ export interface CreateShopSeriesAllocationRequest {
|
||||
*/
|
||||
export interface UpdateShopSeriesAllocationRequest {
|
||||
base_commission?: BaseCommissionConfig // 基础返佣配置
|
||||
enable_tier_commission?: boolean // 是否启用梯度返佣
|
||||
tier_config?: TierCommissionConfig // 梯度返佣配置
|
||||
enable_one_time_commission?: boolean // 是否启用一次性佣金
|
||||
one_time_commission_config?: OneTimeCommissionConfig // 一次性佣金配置
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user