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:
MiFaZhan
2026-10-23 14:15:47 +08:00
commit 88dfe5c640
482 changed files with 34475 additions and 0 deletions
+42
View File
@@ -0,0 +1,42 @@
package model
type CommonBatchExecuteMessage struct {
BatchNo string `json:"batchNo"`
BatchType int `json:"batchType"`
}
type CommonRenewCard struct {
Iccid string `json:"iccid,omitempty" dc:"ICCID"`
Msisdn string `json:"msisdn,omitempty" dc:"MSISDN/卡号"`
Imsi string `json:"imsi,omitempty" dc:"IMSI"`
PackageId string `json:"packageId,omitempty" dc:"套餐编码"`
}
type CommonRenewParam struct {
AppId string `json:"appId" v:"required#appId不能为空" dc:"平台API应用ID"`
Cards []CommonRenewCard `json:"cards" v:"required#续费卡不能为空" dc:"续费卡列表"`
DurationYears int `json:"durationYears" dc:"续费时长(年)"`
Remark string `json:"remark" dc:"续费备注"`
PackageId string `json:"packageId,omitempty" dc:"套餐编码"`
Validity int `json:"validity,omitempty" dc:"续费时长(年)"`
}
type CommonRenewRes struct {
BatchNo string `json:"batchNo" dc:"系统生成批次号"`
BatchType int `json:"batchType" dc:"批次类型"`
Total int `json:"total" dc:"提交数量"`
}
type CommonSingleRenewRes struct {
OrderId string `json:"orderId" dc:"订单ID"`
OrderSn string `json:"orderSn" dc:"订单号"`
Iccid string `json:"iccid" dc:"ICCID"`
PlanName string `json:"planName" dc:"套餐名称"`
EffectiveType string `json:"effectiveType" dc:"生效类型"`
EffectiveDate string `json:"effectiveDate" dc:"生效日期"`
ExpireDate string `json:"expireDate" dc:"到期日期"`
Amount float64 `json:"amount" dc:"续费金额"`
Status string `json:"status" dc:"续费状态"`
ErrorCode string `json:"errorCode,omitempty" dc:"错误编码"`
ErrorMessage string `json:"errorMessage,omitempty" dc:"错误说明"`
}