修复 model 生成脚本,统一时间字段类型为 common.LocalDateTime

This commit is contained in:
2025-04-28 09:15:49 +08:00
parent 3e837b5fec
commit 129f842153
14 changed files with 38 additions and 44 deletions

View File

@@ -102,8 +102,5 @@ func main() {
}
func genBasic(name string, opts ...gen.ModelOpt) any {
return g.GenerateModel(name,
gen.FieldType("created_at", "common.LocalDateTime"),
gen.FieldType("updated_at", "common.LocalDateTime"),
)
return g.GenerateModel(name, opts...)
}