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

23 lines
1.3 KiB

5 years ago
5 years ago
5 years ago
  1. package models
  2. import (
  3. "time"
  4. )
  5. //上墙
  6. type UpperWall struct {
  7. Id int64 `json:"id" xorm:"pk autoincr INT(11)"`
  8. ActivityId int64 `json:"activity_id" xorm:"not null comment('主活动id') INT(11)"`
  9. RehearsalId int64 `json:"rehearsal_id" xorm:"not null default(0) comment('彩排、0正式') INT(11)"`
  10. Category string `json:"category" xorm:"not null comment('类型[1文本|2图片|3图片+文本]') INT(11)"`
  11. UserId int64 `json:"user_id" xorm:"not null comment('用户得id') INT(11)"`
  12. User *User `json:"user" xorm:"-" description:"用户信息"`
  13. Content string `json:"content" xorm:"comment('内容') text" `
  14. Img string `json:"img" xorm:"comment('图片') text" description:"图片"`
  15. Imgs []string `json:"imgs" xorm:"-" description:"图片数组"`
  16. Status int `json:"status" xorm:"not null default(0) comment('0未审核,1未通过,2已通过,3已推送') INT(11)"`
  17. ReviewTime int64 `json:"review_time" xorm:"not null default(0) comment('审核的时间,10位') INT(11)"`
  18. IsDelete bool `json:"is_delete" xorm:"default(0)" description:"是否删除"`
  19. CreatedAt time.Time `json:"created_at" xorm:"created" description:"创建时间"`
  20. UpdatedAt time.Time `json:"updated_at" xorm:"updated" description:"更新时间"`
  21. }