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,53 @@
|
||||
package model
|
||||
|
||||
type QueryTrafficCutoffCard struct {
|
||||
Msisdn string `json:"msisdn,omitempty" dc:"MSISDN/卡号"`
|
||||
Iccid string `json:"iccid,omitempty" dc:"ICCID"`
|
||||
Imsi string `json:"imsi,omitempty" dc:"IMSI"`
|
||||
}
|
||||
|
||||
type QueryTrafficCutoffConfigParam struct {
|
||||
AppId string `json:"appId" v:"required#appId不能为空" dc:"平台API应用ID"`
|
||||
Cards []QueryTrafficCutoffCard `json:"cards" v:"required#查询卡不能为空" dc:"查询卡列表"`
|
||||
IncludeUsage bool `json:"includeUsage" dc:"是否返回流量使用信息"`
|
||||
}
|
||||
|
||||
type QueryTrafficCutoffConfigItem struct {
|
||||
Matched bool `json:"matched"`
|
||||
Iccid string `json:"iccid,omitempty"`
|
||||
TrafficCutoffStatus int `json:"trafficCutoffStatus"`
|
||||
TrafficCutoffStatusName string `json:"trafficCutoffStatusName,omitempty"`
|
||||
TrafficCutoffThreshold float64 `json:"trafficCutoffThreshold"`
|
||||
TrafficCutoffThresholdUnit string `json:"trafficCutoffThresholdUnit,omitempty"`
|
||||
PackageTotalFlowMb *float64 `json:"packageTotalFlowMb,omitempty"`
|
||||
UsedFlowMb *float64 `json:"usedFlowMb,omitempty"`
|
||||
RemainingFlowMb *float64 `json:"remainingFlowMb,omitempty"`
|
||||
ErrorCode string `json:"errorCode,omitempty"`
|
||||
ErrorMessage string `json:"errorMessage,omitempty"`
|
||||
}
|
||||
|
||||
type QueryTrafficCutoffConfigOutput struct {
|
||||
Total int `json:"total"`
|
||||
MatchedCount int `json:"matchedCount"`
|
||||
NotFoundCount int `json:"notFoundCount"`
|
||||
Items []QueryTrafficCutoffConfigItem `json:"items"`
|
||||
}
|
||||
|
||||
type QueryBatchStatusParam struct {
|
||||
AppId string `json:"appId" v:"required#appId不能为空" dc:"平台API应用ID"`
|
||||
BatchNo string `json:"batchNo" v:"required#batchNo不能为空" dc:"批次号"`
|
||||
}
|
||||
|
||||
type QueryBatchStatusOutput struct {
|
||||
BatchNo string `json:"batchNo" dc:"批次号"`
|
||||
BatchAsyncStatus int `json:"batchAsyncStatus" dc:"异步状态"`
|
||||
SourceChannel string `json:"sourceChannel,omitempty" dc:"发起渠道"`
|
||||
ExecutionMode int `json:"executionMode" dc:"操作规模:0未知1单卡2批量"`
|
||||
SourceType int `json:"sourceType" dc:"输入方式"`
|
||||
TotalCount int `json:"totalCount" dc:"总数量"`
|
||||
ValidCount int `json:"validCount" dc:"有效数量"`
|
||||
SuccessCount int `json:"successCount" dc:"成功数量"`
|
||||
FailCount int `json:"failCount" dc:"失败数量"`
|
||||
RunResult int `json:"runResult" dc:"运行结果"`
|
||||
FailReason string `json:"failReason,omitempty" dc:"失败原因"`
|
||||
}
|
||||
Reference in New Issue
Block a user