content.go 905 B

1234567891011121314151617181920212223
  1. // 自动生成模板Content
  2. package autocode
  3. import (
  4. "github.com/flipped-aurora/gin-vue-admin/server/global"
  5. )
  6. // Content 结构体
  7. // 如果含有time.Time 请自行import time包
  8. type Content struct {
  9. global.GVA_MODEL
  10. Oper string `json:"oper" form:"oper" gorm:"column:oper;comment:操作人;type:varchar(255);"`
  11. Title string `json:"title" form:"title" gorm:"column:title;comment:标题;type:varchar(255);"`
  12. Subtitle string `json:"subtitle" form:"subtitle" gorm:"column:subtitle;comment:副标题;type:varchar(255);"`
  13. Text string `json:"text" form:"text" gorm:"column:text;comment:内容;type:text;"`
  14. Imgs string `json:"imgs" form:"imgs" gorm:"column:imgs;comment:图片;type:varchar(2000);"`
  15. Type string `json:"type" form:"type" gorm:"column:type;comment:类型;type:varchar(255);"`
  16. }
  17. // TableName Content 表名
  18. func (Content) TableName() string {
  19. return "content"
  20. }