fix: 修复空提交问题
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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"`
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user