2023-06-19 01:53:35 +00:00
|
|
|
|
package gmodel
|
2023-06-16 11:04:13 +00:00
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"gorm.io/gorm"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
// fs_product_render_design
|
|
|
|
|
type FsProductRenderDesign struct {
|
2023-06-19 10:27:31 +00:00
|
|
|
|
Id int64 `gorm:"primary_key;default:0;auto_increment;" json:"id"` //
|
|
|
|
|
Sn *string `gorm:"index;default:'';" json:"sn"` // 唯一标识
|
2023-08-18 03:41:36 +00:00
|
|
|
|
UserId *int64 `gorm:"index;default:0;" json:"user_id"` // 用户ID
|
2023-06-19 10:27:31 +00:00
|
|
|
|
ProductId *int64 `gorm:"index;default:0;" json:"product_id"` // 产品ID
|
|
|
|
|
TemplateId *int64 `gorm:"index;default:0;" json:"template_id"` // 模型ID
|
|
|
|
|
MaterialId *int64 `gorm:"index;default:0;" json:"material_id"` // 材质ID
|
|
|
|
|
SizeId *int64 `gorm:"index;default:0;" json:"size_id"` // 尺寸ID
|
|
|
|
|
OptionalId *int64 `gorm:"index;default:0;" json:"optional_id"` // 选项ID
|
2023-08-18 03:41:36 +00:00
|
|
|
|
Cover *string `gorm:"default:'';" json:"cover"` // 封面图
|
2023-06-19 10:27:31 +00:00
|
|
|
|
Info *string `gorm:"default:'';" json:"info"` // 保留的设计信息
|
2023-08-18 03:41:36 +00:00
|
|
|
|
Utime *int64 `gorm:"default:0;" json:"utime"` // 更新时间
|
2023-06-19 10:27:31 +00:00
|
|
|
|
Status *int64 `gorm:"default:1;" json:"status"` // 状态位(1:显示,0:删除)
|
|
|
|
|
ClientIp *string `gorm:"default:'';" json:"client_ip"` // 客户端ip
|
|
|
|
|
ClientNo *string `gorm:"default:'';" json:"client_no"` // 客户端唯一标识
|
|
|
|
|
LogoColor *string `gorm:"default:'';" json:"logo_color"` // logo图片备选颜色
|
2023-08-18 03:41:36 +00:00
|
|
|
|
InfoNew *string `gorm:"default:'';" json:"info_new"` // 设计信息-改版用
|
2023-06-16 11:04:13 +00:00
|
|
|
|
}
|
2023-07-20 02:13:18 +00:00
|
|
|
|
type FsProductRenderDesignModel struct {
|
|
|
|
|
db *gorm.DB
|
|
|
|
|
name string
|
|
|
|
|
}
|
2023-06-16 11:04:13 +00:00
|
|
|
|
|
|
|
|
|
func NewFsProductRenderDesignModel(db *gorm.DB) *FsProductRenderDesignModel {
|
2023-07-20 02:13:18 +00:00
|
|
|
|
return &FsProductRenderDesignModel{db: db, name: "fs_product_render_design"}
|
2023-06-16 11:04:13 +00:00
|
|
|
|
}
|