package model import "bkb-seller/global" type TbAttribute struct { //属性表 Name string `gorm:"type:varchar(255);not null;" json:"name"` //规格名称 global.MG_MODEL } type TbAttributeDetail struct { AttributeId uint `json:"attribute_id"` //规格属性id Value string `json:"value"` // } func (TbAttribute) TableName() string { return "tb_attribute" } func (TbAttributeDetail) TableName() string { return "tb_attribute" }