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
@@ -0,0 +1,115 @@
// ==========================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// ==========================================================================
package internal
import (
"context"
"github.com/gogf/gf/v2/database/gdb"
"github.com/gogf/gf/v2/frame/g"
)
// TSimAgentPackageDao is the data access object for the table t_sim_agent_package.
type TSimAgentPackageDao struct {
table string // table is the underlying table name of the DAO.
group string // group is the database configuration group name of the current DAO.
columns TSimAgentPackageColumns // columns contains all the column names of Table for convenient usage.
handlers []gdb.ModelHandler // handlers for customized model modification.
}
// TSimAgentPackageColumns defines and stores column names for the table t_sim_agent_package.
type TSimAgentPackageColumns struct {
Id string // ID
PackageKey string // 套餐分类编码
PackageName string // 套餐分类名称
ParentPackageKey string // 上级套餐分类编码
PackageStatus string // 是否启用(0:未启用,1启用)
BillingMethod string // 计费方式(0:月,1:季,2:年)
ChannelPrice string // 渠道价格
MonthlyFee string // 月租费
PackageDataMb string // 套餐流量(MB)
PackageDataGb string // 套餐流量(GB)
ValidityPeriod string // 有效期
Description string // 描述信息
OrderNum string // 排序
TenantId string // 租户ID
CreatedDept string // 创建部门
CreatedBy string // 创建者
CreatedAt string // 创建时间
UpdatedBy string // 更新者
UpdatedAt string // 更新时间
}
// tSimAgentPackageColumns holds the columns for the table t_sim_agent_package.
var tSimAgentPackageColumns = TSimAgentPackageColumns{
Id: "id",
PackageKey: "package_key",
PackageName: "package_name",
ParentPackageKey: "parent_package_key",
PackageStatus: "package_status",
BillingMethod: "billing_method",
ChannelPrice: "channel_price",
MonthlyFee: "monthly_fee",
PackageDataMb: "package_data_mb",
PackageDataGb: "package_data_gb",
ValidityPeriod: "validity_period",
Description: "description",
OrderNum: "order_num",
TenantId: "tenant_id",
CreatedDept: "created_dept",
CreatedBy: "created_by",
CreatedAt: "created_at",
UpdatedBy: "updated_by",
UpdatedAt: "updated_at",
}
// NewTSimAgentPackageDao creates and returns a new DAO object for table data access.
func NewTSimAgentPackageDao(handlers ...gdb.ModelHandler) *TSimAgentPackageDao {
return &TSimAgentPackageDao{
group: "default",
table: "t_sim_agent_package",
columns: tSimAgentPackageColumns,
handlers: handlers,
}
}
// DB retrieves and returns the underlying raw database management object of the current DAO.
func (dao *TSimAgentPackageDao) DB() gdb.DB {
return g.DB(dao.group)
}
// Table returns the table name of the current DAO.
func (dao *TSimAgentPackageDao) Table() string {
return dao.table
}
// Columns returns all column names of the current DAO.
func (dao *TSimAgentPackageDao) Columns() TSimAgentPackageColumns {
return dao.columns
}
// Group returns the database configuration group name of the current DAO.
func (dao *TSimAgentPackageDao) Group() string {
return dao.group
}
// Ctx creates and returns a Model for the current DAO. It automatically sets the context for the current operation.
func (dao *TSimAgentPackageDao) Ctx(ctx context.Context) *gdb.Model {
model := dao.DB().Model(dao.table)
for _, handler := range dao.handlers {
model = handler(model)
}
return model.Safe().Ctx(ctx)
}
// Transaction wraps the transaction logic using function f.
// It rolls back the transaction and returns the error if function f returns a non-nil error.
// It commits the transaction and returns nil if function f returns nil.
//
// Note: Do not commit or roll back the transaction in function f,
// as it is automatically handled by this function.
func (dao *TSimAgentPackageDao) Transaction(ctx context.Context, f func(ctx context.Context, tx gdb.TX) error) (err error) {
return dao.Ctx(ctx).Transaction(ctx, f)
}