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

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