|
|
|
@ -7,17 +7,19 @@ import (
|
|
|
|
|
|
|
|
|
|
type Short struct {
|
|
|
|
|
db.BaseModel
|
|
|
|
|
Id uint `gorm:"column:id" json:"id"`
|
|
|
|
|
UserId uint `gorm:"column:user_id" json:"userId"`
|
|
|
|
|
GoodsId uint `gorm:"column:goods_id" json:"goodsId"`
|
|
|
|
|
TopicId uint `gorm:"column:topic_id" json:"topicId"`
|
|
|
|
|
Content string `gorm:"column:content" json:"content"`
|
|
|
|
|
FileId string `gorm:"column:file_id" json:"fileId"`
|
|
|
|
|
CreatedAt formatime.Second `gorm:"column:created_at" json:"createdAt"`
|
|
|
|
|
UpdatedAt formatime.Second `gorm:"column:updated_at" json:"updatedAt"`
|
|
|
|
|
MediaUrl string `gorm:"column:media_url" json:"mediaUrl"`
|
|
|
|
|
CoverUrl string `gorm:"column:cover_url" json:"coverUrl"`
|
|
|
|
|
IsDel int `gorm:"column:is_del" json:"isDel"`
|
|
|
|
|
Id uint `gorm:"column:id" json:"id"`
|
|
|
|
|
UserId uint `gorm:"column:user_id" json:"userId"`
|
|
|
|
|
GoodsId uint `gorm:"column:goods_id" json:"goodsId"`
|
|
|
|
|
TopicId uint `gorm:"column:topic_id" json:"topicId"`
|
|
|
|
|
Content string `gorm:"column:content" json:"content"`
|
|
|
|
|
FileId string `gorm:"column:file_id" json:"fileId"`
|
|
|
|
|
CreatedAt formatime.Second `gorm:"column:created_at" json:"createdAt"`
|
|
|
|
|
UpdatedAt formatime.Second `gorm:"column:updated_at" json:"updatedAt"`
|
|
|
|
|
MediaUrl string `gorm:"column:media_url" json:"mediaUrl"`
|
|
|
|
|
CoverUrl string `gorm:"column:cover_url" json:"coverUrl"`
|
|
|
|
|
IsDel int `gorm:"column:is_del" json:"isDel"`
|
|
|
|
|
Compliance int `gorm:"column:compliance" json:"compliance"`
|
|
|
|
|
Pass int `gorm:"column:pass" json:"pass"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 插入
|
|
|
|
|