From c14c24cad0f8ec362cacc1368c115bb5b4de9744 Mon Sep 17 00:00:00 2001 From: dsmzx <dsmzx@123.com> Date: 星期五, 14 六月 2024 21:13:33 +0800 Subject: [PATCH] 属性信息(增删改查)操作 --- models/material.go | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/models/material.go b/models/material.go index fe9e42a..031fc32 100644 --- a/models/material.go +++ b/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:"-"` @@ -120,7 +121,7 @@ UnitItems struct { Amount decimal.Decimal `json:"amount"` Unit string `json:"unit"` - Floating bool `json:"floating"` + Floating bool `json:"floating"` //鏄惁娴姩鍒╃巼 } ) -- Gitblit v1.8.0