activity_poster.go 526 B

12345678910111213141516171819202122
  1. package cygx
  2. import (
  3. "github.com/beego/beego/v2/client/orm"
  4. "time"
  5. )
  6. // 活动详情
  7. type CygxActivityPoster struct {
  8. Id int `orm:"column(id);pk"`
  9. ActivityId int `description:"活动ID"`
  10. CreateTime time.Time `description:"创建时间"`
  11. ImgXcx string `description:"小程序太阳码"`
  12. ImgPoster string `description:"签到场所码"`
  13. }
  14. // 添加
  15. func AddCygxActivityPoster(item *CygxActivityPoster) (err error) {
  16. o := orm.NewOrmUsingDB("hz_cygx")
  17. _, err = o.Insert(item)
  18. return
  19. }