fix: 修复空提交问题

This commit is contained in:
1
2025-11-17 21:45:45 +00:00
parent c6d3b4788d
commit 4ab6b726a7
5 changed files with 16 additions and 5 deletions

View File

@@ -33,7 +33,7 @@ func init() {
ctx = gctx.GetInitCtx()
redisConfig = &gredis.Config{}
)
Loger.Debug(ctx, "module cool init start ...")
Loger.Debug(ctx, "module cool init start ...", gtime.Now())
buildData := gbuild.Data()
if _, ok := buildData["mode"]; ok {
RunMode = buildData["mode"].(string)

View File

@@ -18,7 +18,7 @@ type UserModel interface {
type Model struct {
ID uint `gorm:"primaryKey" json:"id"`
CreateTime *gtime.Time ` gorm:"column:createTime;not null;index,priority:1;autoCreateTime:nano;comment:创建时间" json:"createTime"` // 创建时间
UpdateTime *gtime.Time ` gorm:"column:updateTime;not null;index,priority:1;autoUpdateTime:nano;comment:更新时间" json:"updateTime"` // 更新时间
UpdateTime *gtime.Time ` orm:"autoUpdateTime=true"  gorm:"column:updateTime;not null;index,priority:1;autoUpdateTime:nano;comment:更新时间" json:"updateTime"` // 更新时间
DeletedAt *gtime.Time `gorm:"index" json:"deletedAt"`
}