You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
458 B

6 months ago
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"
}