chore: 初始开源发布
iotlcm-openapi:对外 OpenAPI 网关(V3 接口 + 旧版兼容接口)。
- Go module:iotlcm-openapi → git.5iot.com/iotlcm-public/iotlcm-openapi(178 文件)
- 凭据与地址脱敏:JWT signingKey、MySQL DSN、Redis 口令、
RabbitMQ DSN 全部改为 ${*} 占位;私网 IP → 文档地址段
- 7 处真实手机号 → 合法 11 位编造号
- 启动 banner 统一 IOTLCM 方块字 + 社区惯例署名
- 移除内部资产:CI 触发器
- Dockerfile 改用公共基础镜像,移除 GOPRIVATE 内网设置
- README 重写(原为 GoFrame 模板占位文案),补 Apache-2.0 LICENSE,
LF 行尾 + .gitattributes
This commit is contained in:
@@ -0,0 +1,58 @@
|
||||
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:"预计到期时间"`
|
||||
}
|
||||
Reference in New Issue
Block a user