chore: 初始开源发布

iotlcm-admin-svr:管理后台服务。

- Go module:iotlcm → git.5iot.com/iotlcm-public/iotlcm-admin-svr(729 文件)
- 凭据与地址脱敏:JWT signingKey(含代码里的 MustGet 默认值)、
  MySQL DSN、Redis 口令、告警邮件发件人邮箱全部改为占位;
  私网 IP → 文档地址段;库名 xiujie_admin → iotlcm
- 真实手机号/邮箱 → 合法 11 位编造号 / example.com
- 移除内部资产:CI 触发器、过时 DDL(sql/db_iotlcm.sql)、
  私有依赖 go get 行、明文 registry 登录口令
- 启动 banner 统一 IOTLCM 方块字 + 社区惯例署名
- Dockerfile 改用公共基础镜像
- 拼错的 RADEME.md → README.md,README 重写
- 需要真实数据库的用例改为可用 IOTLCM_TEST_WITH_DB=1 显式启用
- 补 Apache-2.0 LICENSE,LF 行尾 + .gitattributes

数据库 schema 不随本仓发布(生产 DDL 已过时),README 已说明。
This commit is contained in:
MiFaZhan
2026-10-23 14:46:05 +08:00
commit 59eb34976a
1132 changed files with 138197 additions and 0 deletions
@@ -0,0 +1,89 @@
package model
import (
"github.com/gogf/gf/v2/os/gtime"
)
type TSimCardInboundCommonFields struct {
ChanKey string `json:"chanKey" dc:"通道编号"`
ValidateUpstreamBasicInfo int `json:"validateUpstreamBasicInfo" dc:"是否开启上游三码校验(global_yes_or_no)"`
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 {
RangeType string `json:"rangeType" dc:"连号类型:iccid、msisdn、imsi"`
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
}