package domain import ( "fmt" "time" ) {{range $gen := .gens}} type {{$gen.table.name}} struct { {{range $column := $gen.tableColumns}} {{$column.goField}} {{$column.goType}} `xorm:"{{$column.columnName}}" json:"{{formatJsonName $column.columnName}}"` //注释:{{$column.columnComment}}{{end}} } func (receiver {{$gen.table.name}}) String() string { return fmt.Sprint("{{$gen.table.name}}{",{{range $column := $gen.tableColumns}}"{{$column.goField}}:",receiver.{{$column.goField}},{{end}}"}") } {{end}}