banner.go 1007 B

1234567891011121314151617181920212223242526
  1. package banner
  2. import "time"
  3. type Banner struct {
  4. Id int `gorm:"primaryKey;column:id;"`
  5. ClassifyId int `description:"分类id"`
  6. ImageUrl string `description:"图片路径"`
  7. BannerType int `description:"类型 1:轮播图,2:头部海报"`
  8. CreateTime time.Time `description:"创建时间"`
  9. ModifyTime time.Time `description:"修改时间"`
  10. ClassifyName string `description:"分类名称"`
  11. JumpUrl string `description:"跳转地址"`
  12. Abstract string `description:"栏目简介"`
  13. Descript string `description:"分享描述"`
  14. ReportAuthor string `description:"栏目作者"`
  15. AuthorDescript string `description:"作者简介"`
  16. ColumnImgUrl string `description:"栏目配图"`
  17. HeadImgUrl string `description:"头部banner"`
  18. AvatarImgUrl string `description:"头像"`
  19. ReportImgUrl string `description:"报告配图"`
  20. }
  21. func (c *Banner) TableName() string {
  22. return "banner"
  23. }