mirror of
https://gitee.com/XM-GO/PandaX.git
synced 2026-04-23 02:48:34 +08:00
24 lines
691 B
Plaintext
24 lines
691 B
Plaintext
// ==========================================================================
|
|
// 生成日期:{{.CreatedAt}}
|
|
// 生成路径: apps/{{.PackageName}}/entity/{{.TableName}}.go
|
|
// 生成人:{{.FunctionAuthor}}
|
|
// ==========================================================================
|
|
package entity
|
|
|
|
import (
|
|
import "pandax/base/model"
|
|
)
|
|
|
|
type {{.FunctionName}} struct {
|
|
model.BaseAutoModel
|
|
{{- range .Columns -}}
|
|
{{- if eq .IsQuery "1" }}
|
|
{{.GoField}} {{.GoType}} `json:"{{.JsonField}}" gorm:"type:{{.ColumnType}};comment:{{.ColumnComment}}" binding:"required"`
|
|
{{- end }}
|
|
{{- end }}
|
|
}
|
|
|
|
func ({{.FunctionName}}) TableName() string {
|
|
return "{{.TableName}}"
|
|
}
|