2023-06-19 01:53:35 +00:00
|
|
|
package gmodel
|
2023-06-16 11:04:13 +00:00
|
|
|
|
|
|
|
import (
|
|
|
|
"gorm.io/gorm"
|
|
|
|
)
|
|
|
|
|
|
|
|
// fs_product_template_element 云渲染配置表
|
|
|
|
type FsProductTemplateElement struct {
|
2023-08-22 06:20:30 +00:00
|
|
|
Id int64 `gorm:"primary_key;default:0;auto_increment;" json:"id"` // id
|
|
|
|
Title *string `gorm:"default:'';" json:"title"` //
|
|
|
|
ModelId *int64 `gorm:"index;default:0;" json:"model_id"` // 产品模型id
|
|
|
|
Base *string `gorm:"default:'';" json:"base"` //
|
|
|
|
Shadow *string `gorm:"default:'';" json:"shadow"` //
|
|
|
|
Mode *string `gorm:"default:'';" json:"mode"` //
|
|
|
|
Light *int64 `gorm:"default:0;" json:"light"` // 灯光组
|
|
|
|
Rotation *string `gorm:"default:'';" json:"rotation"` //
|
|
|
|
Scale *string `gorm:"default:'';" json:"scale"` //
|
|
|
|
ModelP *string `gorm:"default:'';" json:"model_p"` //
|
|
|
|
Refletion *string `gorm:"default:'';" json:"refletion"` //
|
2023-06-16 11:04:13 +00:00
|
|
|
}
|
2023-07-20 02:13:18 +00:00
|
|
|
type FsProductTemplateElementModel struct {
|
|
|
|
db *gorm.DB
|
|
|
|
name string
|
|
|
|
}
|
2023-06-16 11:04:13 +00:00
|
|
|
|
|
|
|
func NewFsProductTemplateElementModel(db *gorm.DB) *FsProductTemplateElementModel {
|
2023-07-20 02:13:18 +00:00
|
|
|
return &FsProductTemplateElementModel{db: db, name: "fs_product_template_element"}
|
2023-06-16 11:04:13 +00:00
|
|
|
}
|