1234567 |
- package response
- import "time"
- type {{.ClassNameUpper}}Response struct { {{range $index, $item := .Columns}}
- {{$item.ColumnNameUpper}} {{$item.GoType}} `excel:"name={{$item.ColumnComment}} {{if eq $item.Source "3"}},format={{$item.Input}}{{end}}" xorm:"{{if $item.ColumnKey }}pk {{if $item.Extra }}autoincr{{end}}{{else}}{{$item.ColumnType}}{{end}} {{if eq $item.IsNullable "NO"}} notnull {{end}} {{if $item.ColumnDefault}}default{{if eq $item.GoType "string"}}('{{$item.ColumnDefault}}'){{else}}({{$item.ColumnDefault}}){{end}}{{end}} comment('{{$item.ColumnComment}}')" json:"{{$item.ColumnNameLower}}" {{if eq $item.IsRequired "1" }}binding:"required{{if eq $item.Source "3"}},oneof={{$item.Keys}}{{end}}"{{end}}` //{{$item.ColumnDesc}}{{end}}
- }
|