entity.go 536 B

12345678910111213
  1. package yb_research_banner
  2. type YbResearchBanner struct {
  3. YbResearchBannerID uint64 `gorm:"primaryKey;autoIncrement;comment:调研bannerid" json:"yb_research_banner_id"`
  4. BannerID int `gorm:"comment:调研bannerid" json:"banner_id"`
  5. UserID int `gorm:"comment:用户id" json:"user_id"`
  6. ImgURL string `gorm:"comment:图片地址" json:"img_url"`
  7. }
  8. // TableName get sql table name.获取数据库表名
  9. func (m *YbResearchBanner) TableName() string {
  10. return "yb_research_banner"
  11. }