34 lines
2.3 KiB
Go
34 lines
2.3 KiB
Go
package mysqlmodel
|
|
|
|
type Clothes struct {
|
|
Model
|
|
ClothesUUID string `gorm:"column:clothes_uuid"` // 衣物UUID
|
|
UserID int64 `gorm:"column:user_id"` // 所属用户ID
|
|
CategoryMain string `gorm:"column:category_main"` // 衣物大类 上装/下装/连衣裙/外套/鞋/配饰
|
|
CategorySub string `gorm:"column:category_sub"` // 衣物小类 T恤/牛仔裤/运动鞋/发带/戒指等
|
|
Style string `gorm:"column:style"` // 风格
|
|
ColorMain string `gorm:"column:color"` // 主颜色
|
|
ColorSub string `gorm:"column:color_sub"` // 副颜色
|
|
Thickness string `gorm:"column:thickness"` // 厚度
|
|
Version string `gorm:"column:version"` // 版型 宽松/修身/阔腿/紧身/常规合身
|
|
Material string `gorm:"column:material"` // 材质 牛仔布/针织/皮质/纯棉/羊毛等
|
|
Pattern string `gorm:"column:pattern"` // 花纹
|
|
SleeveType string `gorm:"column:sleeve_type"` // 袖型
|
|
ClothesType string `gorm:"column:clothes_type"` // 衣长类型 短款/常规/中长/长款
|
|
NecklineType string `gorm:"column:neckline_type"` // 领型
|
|
Formality string `gorm:"column:formality"` // 正式程度 1-5
|
|
Occasions string `gorm:"column:occasions"` // 适用场合
|
|
VisualImpact string `gorm:"column:visual_impact"` // 视觉冲击力 1-5
|
|
Name string `gorm:"column:name"` // 名称
|
|
Remark string `gorm:"column:remark"` // 备注
|
|
ProcessedImage string `gorm:"column:processed_image"` // 处理后图片存储位置 相对路径
|
|
OriginalImagePath string `gorm:"column:original_image_path"` // 待处理原图本地路径(任务恢复用)
|
|
ImageSize int64 `gorm:"column:image_size"` // 图片大小 单位:kb
|
|
ImageProcessStatus int8 `gorm:"column:image_process_status"` // 处理状态 1=抠图中 2=分类中 3=排队中 4=成功 5=失败
|
|
FailReason string `gorm:"column:fail_reason"` // 失败原因
|
|
}
|
|
|
|
func (Clothes) TableName() string {
|
|
return "clothes"
|
|
}
|