互动
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.

24 lines
948 B

4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
  1. package models
  2. import "github.com/ouxuanserver/osmanthuswine/src/core"
  3. const PadSignerTN = TableNamePrefix + "pad_signer"
  4. type PadSigner struct {
  5. Model `xorm:"extends"`
  6. ActivityId int `json:"activity_id" xorm:"not null default 0 comment('互动id') INT(11)"`
  7. PadSignerName string `json:"pad_signer_name" xorm:"not null default '' comment('签约方名称') VARCHAR(128)"`
  8. PadBgUrl string `json:"pad_bg_url" xorm:"not null default '' comment('平板背景链接') VARCHAR(255)"`
  9. Sid int `json:"sid" xorm:"not null default 0 comment('排序') INT(11)"`
  10. WsId string `json:"ws_id" xorm:"not null default '' comment('websocket连接标识id') VARCHAR(255)"`
  11. }
  12. func (t *PadSigner) TableName() string {
  13. return PadSignerTN
  14. }
  15. func ListPadSignerByActivityId(activityId int) (signers []*PadSigner, err error) {
  16. err = core.GetXormAuto().Where("activity_id=? and is_delete=0", activityId).Find(&signers)
  17. return
  18. }