node_banner.go 583 B

12345678910111213141516171819202122232425
  1. package entity
  2. const NodeModelPrefix = "node_"
  3. // 节点banners
  4. type NodeBanner struct {
  5. MysqlBaseModel
  6. Name string `json:"name" gorm:"type:varchar(256);comment: banner名称;"`
  7. Url string `json:"url" gorm:"type:text;comment:bannerURL;"`
  8. Sort int `json:"sort" gorm:"comment:排序;"`
  9. Remark string `json:"remark" gorm:"type:VARCHAR(200);comment:备注信息"`
  10. }
  11. func (*NodeBanner) TableName() string {
  12. return NodeModelPrefix + "banner"
  13. }
  14. func (*NodeBanner) Comment() string {
  15. return "节点Banners"
  16. }
  17. func NewNodeBanner() *NodeBanner {
  18. return &NodeBanner{}
  19. }