互动
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
1.1 KiB

5 years ago
  1. package models
  2. //拔河比赛活动
  3. //type BaheActivity struct {
  4. // Id int64 `json:"id"`
  5. // ActivityId int64 `json:"activity_id" description:"活动的id"`
  6. // BaheActivityName string `json:"bahe_activity_name" description:"拔河名称"`
  7. // RandomTeam string `json:"random_team" description:"[开启,关闭]随机组队模式"`
  8. // MaxMoreCode string `json:"max_more_code" description:"[开启,关闭]大屏多二维码模式"`
  9. // H5Choose string `json:"h_5_choose" description:"[开启,关闭]h5挑选队伍"`
  10. // BaheActivityStatus string `json:"bahe_activity_status" description:"拔河活动状态[未开始,进行中,结束]"`
  11. // IsDelete bool `json:"is_delete" xorm:"default(0)" description:"是否删除"`
  12. // CreatedAt time.Time `json:"-" xorm:"created" description:"创建时间"`
  13. // UpdatedAt time.Time `json:"-" xorm:"updated" description:"更新时间"`
  14. //}
  15. //func (b *BaheActivity) GetBaheActivityById(id int64) (bool, error) {
  16. // return core.GetXormAuto().Where("id=? and is_delete=?", id, false).Get(b)
  17. //}