This commit is contained in:
@@ -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 // 通道流量阈值数值
|
||||
}
|
||||
|
||||
// 更新运营商状态参数
|
||||
|
||||
35
src/types/api/carrierTrafficThresholdHit.ts
Normal file
35
src/types/api/carrierTrafficThresholdHit.ts
Normal 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
|
||||
}
|
||||
@@ -66,6 +66,7 @@ export * from './enterpriseDevice'
|
||||
|
||||
// 运营商相关
|
||||
export * from './carrier'
|
||||
export * from './carrierTrafficThresholdHit'
|
||||
|
||||
// 订单相关
|
||||
export * from './order'
|
||||
|
||||
1
src/types/components.d.ts
vendored
1
src/types/components.d.ts
vendored
@@ -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']
|
||||
|
||||
Reference in New Issue
Block a user