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.
This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
package goods
import (
"github.com/golangkit/formatime"
gorm2 "gorm.io/gorm"
)
type MomentsCopy struct {
ID uint ` gorm:"column:id;primary_key" json:"id" `
GoodsID uint ` gorm:"column:goods_id" json:"goodsId" `
Text string ` gorm:"column:text" json:"text" `
UserID uint ` gorm:"column:user_id" json:"userId" `
HeadImgURL string ` gorm:"column:head_img_url" json:"headImgUrl" `
Nickname string ` gorm:"column:nickname" json:"nickname" `
Reviewing uint ` gorm:"column:reviewing" json:"reviewing" ` // 1 审核中, 0 审核通过, 2 拒绝
CreatedAt formatime . Second ` gorm:"column:created_at" json:"createdAt" `
ReasonID uint ` gorm:"column:reason_id" json:"reasonId" `
ReasonNote string ` gorm:"column:reason_note" json:"reasonNote" `
ManagerID int ` gorm:"column:manager_id" json:"managerId" ` // 审核人id( 系统操作员)
Compliance int ` gorm:"column:compliance" json:"compliance" ` //合规
Emg string ` gorm:"column:emg" json:"emg" ` //不合格原因
Deleted gorm2 . DeletedAt ` gorm:"deleted" `
}
// TableName sets the insert table name for this struct type
func ( r * MomentsCopy ) TableName ( ) string {
return "recook_goods_moments_copy"
}
//关联表,图文评论是否合规 根据逻辑,暂时不用
//type IsCompliance struct {
// Id uint `gorm:"column:id;primary_key" json:"id"`
// MomentsCopyId uint `json:"moments_copy_id"`
// Compliance uint `json:"compliance"`
//}
//
//func (i *IsCompliance) TableName() string {
// return "recook_goods_moments_copy_iscompliance"
//}