修复 model 生成脚本,统一时间字段类型为 common.LocalDateTime
This commit is contained in:
@@ -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...)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user