59 lines
3.0 KiB
Go
59 lines
3.0 KiB
Go
package model
|
|
|
|
// TSimDiagnoseInfoReq 查询SIM卡诊断信息
|
|
type TSimDiagnoseInfoReq struct {
|
|
QueryCode string `json:"queryCode" v:"required#查询码不能为空" dc:"查询码:ICCID / MSISDN / IMSI"`
|
|
}
|
|
|
|
// TSimDiagnoseInfoOutput 查询SIM卡诊断信息响应
|
|
type TSimDiagnoseInfoOutput struct {
|
|
Info *TSimDiagnoseInfoItem `json:"info" dc:"SIM卡基本信息"`
|
|
Session *TSimDiagnoseSessionItem `json:"session" dc:"SIM卡会话信息"`
|
|
Package *TSimDiagnosePackageItem `json:"package" dc:"SIM卡套餐信息"`
|
|
}
|
|
|
|
// TSimDiagnoseFlowReq 查询SIM卡使用流量
|
|
type TSimDiagnoseFlowReq struct {
|
|
QueryCode string `json:"queryCode" v:"required#查询码不能为空" dc:"查询码:ICCID / MSISDN / IMSI"`
|
|
QueryType string `json:"queryType" v:"required|in:7d,30d,6M#查询类型不能为空|查询类型只能为7d近7天、30d近30天、6M近6个月" dc:"查询类型:7d近7天 30d近30天 6M近6个月"`
|
|
}
|
|
|
|
// TSimDiagnoseFlowOutput 查询SIM卡使用流量响应
|
|
type TSimDiagnoseFlowOutput struct {
|
|
Times []string `json:"times" dc:"时间列表"`
|
|
Flow []float64 `json:"flow" dc:"流量列表"`
|
|
Unit string `json:"unit" dc:"流量单位:MB / GB"`
|
|
}
|
|
|
|
// TSimDiagnoseInfoItem SIM卡基本信息
|
|
type TSimDiagnoseInfoItem struct {
|
|
Iccid *string `json:"iccid" dc:"ICCID"`
|
|
Imsi *string `json:"imsi" dc:"IMSI"`
|
|
Msisdn *string `json:"msisdn" dc:"MSISDN/卡号"`
|
|
Status *string `json:"status" dc:"卡状态:0未知 1待激活 2已激活 4已停机 6可测试 7库存 8预销户 9已销户"`
|
|
DataStatus *string `json:"dataStatus" dc:"数据状态:0关闭/停用 1开启/启用"`
|
|
OnlineStatus *string `json:"onlineStatus" dc:"在线状态:0离线 1在线 2未知"`
|
|
DeviceStatus *string `json:"deviceStatus" dc:"设备状态:0异常/不可用 1正常"`
|
|
ImeiStatus *string `json:"imeiStatus" dc:"机卡状态:0异常/机卡分离 1正常"`
|
|
RegionLimitStatus *string `json:"regionLimitStatus" dc:"地域限制状态:0受限/已触发 1正常/未触发"`
|
|
}
|
|
|
|
// TSimDiagnoseSessionItem SIM卡会话信息
|
|
type TSimDiagnoseSessionItem struct {
|
|
ApnId *string `json:"apnId" dc:"APN"`
|
|
Rat *string `json:"rat" dc:"接入方式"`
|
|
Ipv4 *string `json:"ipv4" dc:"IPV4"`
|
|
Ipv6 *string `json:"ipv6" dc:"IPV6"`
|
|
Ipv6Prefix *string `json:"ipv6Prefix" dc:"IPV6前缀"`
|
|
}
|
|
|
|
// TSimDiagnosePackageItem SIM卡套餐信息
|
|
type TSimDiagnosePackageItem struct {
|
|
PackageName *string `json:"packageName" dc:"套餐名称"`
|
|
PackageType *string `json:"packageType" dc:"套餐类型:1基础套餐 101卡套餐 102池套餐 103单卡加油包 104池卡加油包"`
|
|
EffectiveStatus *string `json:"effectiveStatus" dc:"生效状态:0待生效 1生效中 2已过期 3已终止 4已作废"`
|
|
PackageTotalFlowMb *float64 `json:"packageTotalFlowMb" dc:"套餐总流量MB"`
|
|
DurationMonths *int `json:"durationMonths" dc:"套餐时长(月)"`
|
|
ExpectedExpireTime *string `json:"expectedExpireTime" dc:"预计到期时间"`
|
|
}
|