mirror of
https://gitee.com/XM-GO/PandaX.git
synced 2026-04-23 10:58:35 +08:00
【修改】template模板
This commit is contained in:
@@ -4,9 +4,14 @@
|
||||
// 生成人:{{.FunctionAuthor}}
|
||||
// ==========================================================================
|
||||
package entity
|
||||
{{$hasGTime:=true}}
|
||||
|
||||
{{if $hasGTime}}import "time"{{end}}
|
||||
{{$hasGTime:=false}}
|
||||
{{- range $index, $column := .Columns -}}
|
||||
{{- if eq $column.GoType "Time" -}}
|
||||
{{$hasGTime = true}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
{{if $hasGTime -}}import "time"{{- end }}
|
||||
|
||||
|
||||
type {{.ClassName}} struct {
|
||||
|
||||
Reference in New Issue
Block a user