Skip to content

Commit

Permalink
resource/autocode_template/server/model.go.tpl: swag文档添加中文信息 (#1535)
Browse files Browse the repository at this point in the history
Co-authored-by: mazhenming <[email protected]>
  • Loading branch information
ZhenmingMa and mazhenming authored Sep 9, 2023
1 parent 1475aef commit 3326159
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/resource/autocode_template/server/model.go.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ type {{.StructName}} struct {
{{.FieldName}} *{{.FieldType}} `json:"{{.FieldJson}}" form:"{{.FieldJson}}" gorm:"column:{{.ColumnName}};comment:{{.Comment}};{{- if .DataTypeLong -}}size:{{.DataTypeLong}};{{- end -}}"`
{{- else }}
{{.FieldName}} {{.FieldType}} `json:"{{.FieldJson}}" form:"{{.FieldJson}}" gorm:"column:{{.ColumnName}};comment:{{.Comment}};{{- if .DataTypeLong -}}size:{{.DataTypeLong}};{{- end -}}"`
{{- end }} {{- end }}
{{- end }} {{ if .FieldDesc }}//{{.FieldDesc}} {{ end }} {{- end }}
{{- if .AutoCreateResource }}
CreatedBy uint `gorm:"column:created_by;comment:创建者"`
UpdatedBy uint `gorm:"column:updated_by;comment:更新者"`
Expand Down

0 comments on commit 3326159

Please sign in to comment.