models/material.go
@@ -86,6 +86,7 @@ NetWeight decimal.Decimal `json:"netWeight" gorm:"type:decimal(20,3);comment:净重"` GrossUnit string `json:"grossUnit" gorm:"type:varchar(255);comment:毛重单位"` NetUnit string `json:"netUnit" gorm:"type:varchar(255);comment:净重单位"` Attributes []Attribute `json:"attributes" gorm:"-"` //动态属性 //以下为不存库的字段 AttachmentIDs []uint `json:"attachmentIDs" gorm:"-"`