fix: 运营商管理
All checks were successful
构建并部署前端到测试环境 / deploy (push) Successful in 54s

This commit is contained in:
luo
2026-09-29 09:15:05 +08:00
parent 6655638116
commit 5364916b1d
26 changed files with 1095 additions and 40 deletions

View File

@@ -12,16 +12,22 @@ export enum CarrierType {
CBN = 'CBN' // 中国广电
}
export type CarrierTrafficThresholdEnabled = 0 | 1
export type CarrierTrafficThresholdUnit = 'MB' | 'GB'
// 运营商响应数据
export interface Carrier {
id: number
carrier_code: string
carrier_name: string
carrier_type: CarrierType
description?: string
description?: string | null
data_reset_day?: number | null // 上游流量重置日(1-28)
realname_link_type?: string // 实名链接类型
realname_link_template?: string // 实名链接模板
realname_link_type?: string | null // 实名链接类型
realname_link_template?: string | null // 实名链接模板
traffic_threshold_enabled?: CarrierTrafficThresholdEnabled | null // 通道流量阈值开关
traffic_threshold_unit?: CarrierTrafficThresholdUnit | null // 通道流量阈值单位
traffic_threshold_value?: number | null // 通道流量阈值数值
status: number
created_at: string
updated_at: string
@@ -39,19 +45,25 @@ export interface CreateCarrierParams {
carrier_code: string
carrier_name: string
carrier_type: CarrierType
description?: string
description?: string | null
data_reset_day?: number | null // 上游流量重置日(1-28)
realname_link_type?: string // 实名链接类型
realname_link_template?: string // 实名链接模板
realname_link_type?: string | null // 实名链接类型
realname_link_template?: string | null // 实名链接模板
traffic_threshold_enabled?: CarrierTrafficThresholdEnabled | null // 通道流量阈值开关
traffic_threshold_unit?: CarrierTrafficThresholdUnit | null // 通道流量阈值单位
traffic_threshold_value?: number | null // 通道流量阈值数值
}
// 更新运营商请求参数
export interface UpdateCarrierParams {
carrier_name?: string
description?: string
description?: string | null
data_reset_day?: number | null // 上游流量重置日(1-28)
realname_link_type?: string // 实名链接类型
realname_link_template?: string // 实名链接模板
realname_link_type?: string | null // 实名链接类型
realname_link_template?: string | null // 实名链接模板
traffic_threshold_enabled?: CarrierTrafficThresholdEnabled | null // 通道流量阈值开关
traffic_threshold_unit?: CarrierTrafficThresholdUnit | null // 通道流量阈值单位
traffic_threshold_value?: number | null // 通道流量阈值数值
}
// 更新运营商状态参数

View File

@@ -0,0 +1,35 @@
/** 运营商通道阈值命中记录 */
export interface CarrierTrafficThresholdHitQueryParams {
page?: number
page_size?: number
carrier_id?: number
card_id?: number
period_start?: string
start_time?: string
end_time?: string
}
export interface CarrierTrafficThresholdHitItem {
id: number
card_id: number
carrier_id: number
hit_traffic_mb: number | null
hit_threshold_value: number | null
hit_threshold_unit: string
period_start: string
judged_at: string
trigger_source: string
status: string
unlocked_at: string | null
resume_result: string
failure_reason: string
created_at: string
}
export interface CarrierTrafficThresholdHitPageResult {
items: CarrierTrafficThresholdHitItem[] | null
page: number
size: number
total: number
}

View File

@@ -66,6 +66,7 @@ export * from './enterpriseDevice'
// 运营商相关
export * from './carrier'
export * from './carrierTrafficThresholdHit'
// 订单相关
export * from './order'

View File

@@ -133,6 +133,7 @@ declare module 'vue' {
ElRow: typeof import('element-plus/es')['ElRow']
ElScrollbar: typeof import('element-plus/es')['ElScrollbar']
ElSelect: typeof import('element-plus/es')['ElSelect']
ElSkeleton: typeof import('element-plus/es')['ElSkeleton']
ElSubMenu: typeof import('element-plus/es')['ElSubMenu']
ElSwitch: typeof import('element-plus/es')['ElSwitch']
ElTable: typeof import('element-plus/es')['ElTable']