biz_info.go 559 B

123456789101112
  1. package viewmodels
  2. type BizInfo struct {
  3. BizId int64 `json:"bizId" xorm:"'biz_id' bigint pk comment('Biz ID') "`
  4. BizTitle string `json:"bizTitle" xorm:"'biz_title' varchar(50) comment('Biz Title') "`
  5. BizDesc string `json:"bizDesc" xorm:"'biz_desc' varchar(50) comment('Biz Desc') "`
  6. IsFixed int64 `json:"isFixed" xorm:"'is_fixed' bigint comment('Is Fixed') "`
  7. }
  8. func (t *BizInfo) TableName() string {
  9. return "biz"
  10. }