models/attribute.go
@@ -10,9 +10,9 @@ // Attribute 动态属性表 Attribute struct { gorm.Model Name string `json:"name"` DataType DataType `json:"data_type"` Value string `json:"value" gorm:"-"` Name string `gorm:"type:varchar(100);not null;default:''" json:"name"` //属性名称 DataType DataType `gorm:"type:tinyint;not null;default:0" json:"dataType"` //给谁用的 1 物料(产品) Value string `json:"value" gorm:"-"` //从AttributeValue取到的value } AttributeSearch struct {