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
+87
View File
@@ -0,0 +1,87 @@
package model
import (
"github.com/gogf/gf/v2/os/gtime"
)
type TSimCardInboundCommonFields struct {
ChanKey string `json:"chanKey" dc:"通道编号"`
CardType string `json:"cardType" dc:"卡类型"`
UpPkgCode string `json:"upPkgCode" dc:"上游套餐编码"`
SuppliersCode string `json:"suppliersCode" dc:"供应商编码"`
UpstreamActivationTime *gtime.Time `json:"upstreamActivationTime" dc:"上游给出激活时间"`
InsertToPlugEnabled int `json:"insertToPlugEnabled" dc:"是否贴片转插拔(global_yes_or_no)"`
CarrierTrafficCutoffEnabled int `json:"carrierTrafficCutoffEnabled" dc:"是否运营商达量断网(global_yes_or_no)"`
AgreementExpiryDate *gtime.Time `json:"agreementExpiryDate" dc:"协议期到期时间"`
HasTestPeriod int `json:"hasTestPeriod" dc:"是否有测试期(global_yes_or_no)"`
TestPeriodDays int `json:"testPeriodDays" dc:"测试期天数"`
TestPeriodLatestExpiryDate *gtime.Time `json:"testPeriodLatestExpiryDate" dc:"测试期最晚过期日期"`
HasSilentPeriod int `json:"hasSilentPeriod" dc:"是否有沉默期(global_yes_or_no)"`
SilentPeriodDays int `json:"silentPeriodDays" dc:"沉默期天数"`
SilentPeriodLatestExpiryDate *gtime.Time `json:"silentPeriodLatestExpiryDate" dc:"沉默期最晚过期日期"`
}
type SimCardInboundCommonProvider interface {
InboundCommon() TSimCardInboundCommonFields
}
type TSimCardInboundExcelSubmitParam struct {
TSimCardInboundCommonFields
SysOssUploadParam
CreatedDept int64 `json:"createdDept" dc:"创建部门"`
CreatedBy int64 `json:"createdBy" dc:"创建者"`
CreatedAt *gtime.Time `json:"createdAt" dc:"创建时间"`
UpdatedBy int64 `json:"updatedBy" dc:"更新者"`
UpdatedAt *gtime.Time `json:"updatedAt" dc:"更新时间"`
}
type TSimCardInboundExcelSubmitRes struct {
BatchNo string `json:"batchNo" dc:"批次号"`
BatchType int `json:"batchType" dc:"批次类型"`
}
type TSimCardInboundRangeSubmitParam struct {
StartIccid string `json:"startIccid" dc:"起始号段ICCID"`
EndIccid string `json:"endIccid" dc:"结束号段ICCID"`
StartMsisdn string `json:"startMsisdn" dc:"起始号段MSISDN"`
EndMsisdn string `json:"endMsisdn" dc:"结束号段MSISDN"`
StartImsi string `json:"startImsi" dc:"起始号段IMSI"`
EndImsi string `json:"endImsi" dc:"结束号段IMSI"`
TSimCardInboundCommonFields
}
type TSimCardInboundRangeSubmitRes struct {
BatchNo string `json:"batchNo" dc:"批次号"`
BatchType int `json:"batchType" dc:"批次类型"`
}
type TSimCardInboundInputSubmitParam struct {
Input string `json:"input" dc:"批量输入内容"`
TSimCardInboundCommonFields
}
type TSimCardInboundInputSubmitRes struct {
BatchNo string `json:"batchNo" dc:"批次号"`
BatchType int `json:"batchType" dc:"批次类型"`
}
func (p *TSimCardInboundExcelSubmitParam) InboundCommon() TSimCardInboundCommonFields {
if p == nil {
return TSimCardInboundCommonFields{}
}
return p.TSimCardInboundCommonFields
}
func (p *TSimCardInboundRangeSubmitParam) InboundCommon() TSimCardInboundCommonFields {
if p == nil {
return TSimCardInboundCommonFields{}
}
return p.TSimCardInboundCommonFields
}
func (p *TSimCardInboundInputSubmitParam) InboundCommon() TSimCardInboundCommonFields {
if p == nil {
return TSimCardInboundCommonFields{}
}
return p.TSimCardInboundCommonFields
}