chore: 初始开源发布

iotlcm-upstream-chan:运营商上游通道适配服务(统一 /sim/* 协议)。

- 内联原私有依赖:yunze-public → internal/pub/(10 包 18 文件),
  yunze-pb/pb → internal/pb/(9 文件);Consul 注册改用官方
  gogf/gf/contrib/registry/consul/v2(API 兼容)
- Go module:yz-svr → git.5iot.com/iotlcm-public/iotlcm-upstream-chan
- 修复 mingqian 包测试:实现重构后 `adapter.operations` 字段已移除,
  测试断言按当前实现语义重写(不改产品行为)
- 凭据与内部标识脱敏:MySQL/Redis/Consul 凭据、私网与生产 IP、
  内网域名、真实手机号、注释里的真实 token/transid
- 移除内部资产:CI 触发器、生产通道种子 SQL、真实凭据测试资源文档
- Dockerfile 改用公共基础镜像,移除写死的 registry 凭据
- 补 Apache-2.0 LICENSE,重写 README,LF 行尾 + .gitattributes
This commit is contained in:
MiFaZhan
2026-10-22 15:42:29 +08:00
commit 96b1edff45
191 changed files with 30805 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package do
import (
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/os/gtime"
)
// TApi is the golang structure of table t_api for DAO operations like Where/Data.
type TApi struct {
g.Meta `orm:"table:t_api, do:true"`
Id any // ID
AppKey any // APPKey
AppSecret any // APPSecret
RateLimitPeriod any // 限流周期(秒,0:不限流)
RateLimitCount any // 限流次数
DeptId any // 所属机构
TenantId any // 租户ID
CreatedDept any // 创建部门
CreatedBy any // 创建者
CreatedAt *gtime.Time // 创建时间
UpdatedBy any // 更新者
UpdatedAt *gtime.Time // 更新时间
}
+35
View File
@@ -0,0 +1,35 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package do
import (
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/os/gtime"
)
// TCustomer is the golang structure of table t_customer for DAO operations like Where/Data.
type TCustomer struct {
g.Meta `orm:"table:t_customer, do:true"`
Id any // ID
CKey any // 客户编号
CType any // 客户类型(0:企业,1:个人)
CName any // 客户名称
CShortName any // 客户简称
ContactUserName any // 联系人
ContactPhone any // 联系电话
LicenseNumber any // 统一社会信用代码
RegionCode any // 行政区域代码
Address any // 地址
DepositAmount any // 预存金额
CreditAmountTotal any // 已授信额度
CreditAmountUsed any // 已使用授信额度
DeptId any // 所属机构
TenantId any // 租户ID
CreatedDept any // 创建部门
CreatedBy any // 创建者
CreatedAt *gtime.Time // 创建时间
UpdatedBy any // 更新者
UpdatedAt *gtime.Time // 更新时间
}
+34
View File
@@ -0,0 +1,34 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package do
import (
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/os/gtime"
)
// TSimAgentPackage is the golang structure of table t_sim_agent_package for DAO operations like Where/Data.
type TSimAgentPackage struct {
g.Meta `orm:"table:t_sim_agent_package, do:true"`
Id any // ID
PackageKey any // 套餐分类编码
PackageName any // 套餐分类名称
ParentPackageKey any // 上级套餐分类编码
PackageStatus any // 是否启用(0:未启用,1启用)
BillingMethod any // 计费方式(0:月,1:季,2:年)
ChannelPrice any // 渠道价格
MonthlyFee any // 月租费
PackageDataMb any // 套餐流量(MB)
PackageDataGb any // 套餐流量(GB)
ValidityPeriod any // 有效期
Description any // 描述信息
OrderNum any // 排序
TenantId any // 租户ID
CreatedDept any // 创建部门
CreatedBy any // 创建者
CreatedAt *gtime.Time // 创建时间
UpdatedBy any // 更新者
UpdatedAt *gtime.Time // 更新时间
}
+29
View File
@@ -0,0 +1,29 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package do
import (
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/os/gtime"
)
// TSimAgentPacket is the golang structure of table t_sim_agent_packet for DAO operations like Where/Data.
type TSimAgentPacket struct {
g.Meta `orm:"table:t_sim_agent_packet, do:true"`
Id any // ID
PackageKey any // 套餐分类编码
PacketKey any // 套餐编码
PacketName any // 套餐名称
ValidityPeriod any // 套餐有效期(月份)
PacketStatus any // 是否启用(0:未启用,1启用)
DiscountPercent any // 折扣率(百分比)
Description any // 描述信息
TenantId any // 租户ID
CreatedDept any // 创建部门
CreatedBy any // 创建者
CreatedAt *gtime.Time // 创建时间
UpdatedBy any // 更新者
UpdatedAt *gtime.Time // 更新时间
}
+73
View File
@@ -0,0 +1,73 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package do
import (
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/os/gtime"
)
// TSimCardInfo is the golang structure of table t_sim_card_info for DAO operations like Where/Data.
type TSimCardInfo struct {
g.Meta `orm:"table:t_sim_card_info, do:true"`
Id any // ID
Msisdn any // SIM号码
Iccid any // SIM卡号
Imsi any // SIM识别码
Imei any // IMEI
OpenDate *gtime.Time // 开卡日期(运营商)
ActivateDate *gtime.Time // 激活时间(运营商)
AllocationBatch any // 划拨批次
AllocationDate *gtime.Time // 划拨日期
ChanKey any // 通道编号
IsPool any // 是否流量池(0:否,1:是)
PoolKey any // 流量池编号
BatchKey any // 入库批次
BatchDate *gtime.Time // 入库日期
PackageKey any // 套餐分类编码
CurrPacketKey any // 当前套餐编码
AllowPacketChange any // 是否允许更改套餐(0:否 1:是)
CardStatus any // 卡状态
ValidityPeriod any // 有效期(月份)
ExpiryDate *gtime.Time // 套餐到期日期
UpstreamExpiryDate *gtime.Time // 上游到期时间(运营商)
IpType any // IP版本(人工录入)
NetModel any // 网络模式(人工录入)
RegionCode any // 行政区域代码(省市)
HasOffNet any // 是否开启达量断网
OffNetQuota any // 达量断网阈值(MB)
OffNetExpiryDate *gtime.Time // 达量断网过期时间
AgentShowField any // 客户展示字段设置
AgentShowValue any // 客户展示字段数据
HasTestPeriod any // 是否有测试期(0:无,1:有)
TestPeriod any // 测试期(天)
TestPeriodExpiryDate *gtime.Time // 测试期过期日期
HasSilentPeriod any // 是否有沉默期(0:无,1:有)
SilentPeriod any // 沉默期(月)
SilentPeriodExpiryDate *gtime.Time // 沉默期过期日期
HasAdditional any // 是否有附加费用(0:无 1:有)
AdditionalMultiplier any // 附加费用倍数
AdditionalAmount any // 附加金额
DataService any // 数据服务(0:关闭 1:开启)
DataTotalAmount any // 套餐流量(MB)
DataUseAmount any // 已用流量(MB)
SmsService any // 短信服务(0:关闭 1:开启)
SmsTotalAmount any // 套餐短信数量
SmsUseAmount any // 已用短信数量
VoiceService any // 语音服务(0:关闭 1:开启)
VoiceTotalAmount any // 套餐通话分钟数
VoiceUseAmount any // 已用通话分钟数
IntlRoamingService any // 国际漫游服务(0:关闭 1:开启)
IntlRoamingTotalAmount any // 套餐国际漫游流量(MB)
IntlRoamingUseAmount any // 已用国际漫游流量(MB)
Description any // 描述信息
DeptId any // 所属机构
TenantId any // 租户ID
CreatedDept any // 创建部门
CreatedBy any // 创建者
CreatedAt *gtime.Time // 创建时间
UpdatedBy any // 更新者
UpdatedAt *gtime.Time // 更新时间
}
@@ -0,0 +1,27 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package do
import (
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/os/gtime"
)
// TSimChannelTemplate is the golang structure of table t_sim_channel_template for DAO operations like Where/Data.
type TSimChannelTemplate struct {
g.Meta `orm:"table:t_sim_channel_template, do:true"`
Id any // ID
TempKey any // 模板标识
TempName any // 模板名称
TempModel any // 模板模型
TempConfig any // 模板配置
TempStatus any // 模板状态(0未启用,1启用)
TenantId any // 租户ID
CreatedDept any // 创建部门
CreatedBy any // 创建者
CreatedAt *gtime.Time // 创建时间
UpdatedBy any // 更新者
UpdatedAt *gtime.Time // 更新时间
}
+35
View File
@@ -0,0 +1,35 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package do
import (
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/os/gtime"
)
// TSimChannels is the golang structure of table t_sim_channels for DAO operations like Where/Data.
type TSimChannels struct {
g.Meta `orm:"table:t_sim_channels, do:true"`
Id any // ID
TempKey any // 模板标识
ChanKey any // 通道编号
ChanName any // 通道名称
ChanConfig any // 通道配置
ChanStatus any // 通道状态(0未启用,1启用)
ChanAlias any // 通道别名
RegionCode any // 通道行政区域代码(省市)
AppKey any // 应用标识
AppSecret any // 应用密钥
AccessToken any // 接口调用凭证
AccessTokenCreated *gtime.Time // 凭证申请时间
AccessTokenExpire *gtime.Time // 凭证过期时间
RefreshToken any // 刷新凭证
TenantId any // 租户ID
CreatedDept any // 创建部门
CreatedBy any // 创建者
CreatedAt *gtime.Time // 创建时间
UpdatedBy any // 更新者
UpdatedAt *gtime.Time // 更新时间
}