From 1572f45e72cc0fa15c029f9ee2a08474104435e6 Mon Sep 17 00:00:00 2001 From: selfcheer <selfcheer@gmail.com> Date: 星期五, 19 七月 2024 00:48:43 +0800 Subject: [PATCH] 采购单产品列表去掉过滤重复产品的逻辑 --- model/purchase/request/purchase_type.go | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/model/purchase/request/purchase_type.go b/model/purchase/request/purchase_type.go index 26956c6..5b2a05f 100644 --- a/model/purchase/request/purchase_type.go +++ b/model/purchase/request/purchase_type.go @@ -5,7 +5,7 @@ } type PurchaseType struct { - ID uint `gorm:"primarykey"` // 涓婚敭ID + ID uint `gorm:"primarykey" json:"id,string"` // 涓婚敭ID Name string `json:"name" form:"name" gorm:"type:varchar(255);not null;default '';comment:閲囪喘绫诲瀷"` // 閲囪喘绫诲瀷 Sort int `json:"sort" form:"sort" gorm:"type:int(11);not null;default 0;comment:鎺掑簭"` // 鎺掑簭 Pin bool `json:"pin" form:"pin" gorm:"type:tinyint(1);not null;default 0;comment:閲囪喘鍚嶇О"` // 鏄惁缃《 -- Gitblit v1.8.0