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,45 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package entity
import (
"github.com/gogf/gf/v2/os/gtime"
)
// TOrderItem is the golang structure for table t_order_item.
type TOrderItem struct {
ItemId int64 `json:"itemId" orm:"item_id" description:"订单商品信息自增id"`
OrderId int64 `json:"orderId" orm:"order_id" description:"订单ID"`
OrderSn string `json:"orderSn" orm:"order_sn" description:"订单编号"`
CustomerType int `json:"customerType" orm:"customer_type" description:"客户类型 枚举"`
CustomerAgentId int64 `json:"customerAgentId" orm:"customer_agent_id" description:"渠道编号(购买方)"`
EndUserId int64 `json:"endUserId" orm:"end_user_id" description:"客户编号"`
Price float64 `json:"price" orm:"price" description:"商品最终单价"`
Quantity uint `json:"quantity" orm:"quantity" description:"商品的购买数量"`
ProductId int64 `json:"productId" orm:"product_id" description:"商品ID"`
ProductName string `json:"productName" orm:"product_name" description:"商品的名称"`
ProductSn string `json:"productSn" orm:"product_sn" description:"商品的唯一货号"`
PicThumb string `json:"picThumb" orm:"pic_thumb" description:"商品缩略图"`
SkuId int64 `json:"skuId" orm:"sku_id" description:"规格ID"`
SkuData string `json:"skuData" orm:"sku_data" description:"【JSON】sku信息[{sku_id,sku_value,sku_name}]"`
DeliveryQuantity uint `json:"deliveryQuantity" orm:"delivery_quantity" description:"发货数量"`
ProductType uint `json:"productType" orm:"product_type" description:"商品类型 枚举"`
IsGift uint `json:"isGift" orm:"is_gift" description:"是否为赠品 枚举:yesno_enum"`
AgentId int64 `json:"agentId" orm:"agent_id" description:"渠道编号(销售方)"`
PrepayPrice float64 `json:"prepayPrice" orm:"prepay_price" description:"预售价格"`
Commission string `json:"commission" orm:"commission" description:"佣金数据"`
OriginPrice float64 `json:"originPrice" orm:"origin_price" description:"商品初始价格"`
PromotionData string `json:"promotionData" orm:"promotion_data" description:"优惠信息"`
ExtraSkuData string `json:"extraSkuData" orm:"extra_sku_data" description:"附加属性"`
PayMode int `json:"payMode" orm:"pay_mode" description:"付费方式 枚举"`
ServiceBeginTime *gtime.Time `json:"serviceBeginTime" orm:"service_begin_time" description:"服务开始时间"`
ServiceEndTime *gtime.Time `json:"serviceEndTime" orm:"service_end_time" description:"服务结束时间"`
TenantId string `json:"tenantId" orm:"tenant_id" description:"租户ID"`
CreatedDept int64 `json:"createdDept" orm:"created_dept" description:"创建部门"`
CreatedBy int64 `json:"createdBy" orm:"created_by" description:"创建者"`
CreatedAt *gtime.Time `json:"createdAt" orm:"created_at" description:"创建时间"`
UpdatedBy int64 `json:"updatedBy" orm:"updated_by" description:"更新者"`
UpdatedAt *gtime.Time `json:"updatedAt" orm:"updated_at" description:"更新时间"`
}