fix: 修复数据库钩子及分片配置逻辑问题

This commit is contained in:
2026-03-18 09:18:35 +08:00
parent 9c967eed4c
commit 7714326db7
2 changed files with 30 additions and 18 deletions

View File

@@ -40,7 +40,7 @@ type MongoBaseDO struct {
// SQLBaseDO SQL数据库基础实体
type SQLBaseDO struct {
Id uint64 `orm:"id" json:"id"` // 主键ID
Id *uint64 `orm:"id" json:"id"` // 主键ID
Bid string `orm:"bid" json:"bid"` // 业务ID
Creator string `orm:"creator" json:"creator"` // 创建人
CreatedAt *gtime.Time `orm:"created_at" json:"createdAt"` // 创建时间