From 5ed3159c97388431bab7d4e6e78e30d886d9cfac Mon Sep 17 00:00:00 2001 From: jiangshuai <291802688@qq.com> Date: 星期四, 14 十二月 2023 11:42:04 +0800 Subject: [PATCH] string转int的问题 --- model/purchase/request/purchase.go | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/model/purchase/request/purchase.go b/model/purchase/request/purchase.go index 32a2b4f..88f1ecc 100644 --- a/model/purchase/request/purchase.go +++ b/model/purchase/request/purchase.go @@ -29,7 +29,7 @@ type Purchase struct { ID uint `json:"id,string" gorm:"primarykey"` // 涓婚敭ID PurchaseTypeId int `json:"purchaseTypeId" form:"purchaseType" gorm:"type:int(11);not null;default 0;comment:閲囪喘绫诲瀷id"` // 閲囪喘绫诲瀷id - SupplierId int `json:"supplierId" form:"supplierId" gorm:"type:int(11);not null;default 0;comment:渚涘簲鍟唅d"` // 渚涘簲鍟唅d + SupplierId int `json:"supplierId,string" form:"supplierId" gorm:"type:int(11);not null;default 0;comment:渚涘簲鍟唅d"` // 渚涘簲鍟唅d OrderSource string `json:"orderSource" gorm:"type:varchar(255);not null;default '';comment:鍗曟嵁鏉ユ簮"` // 鍗曟嵁鏉ユ簮 Number string `json:"number" form:"number" gorm:"unique;type:varchar(255);not null;default '';comment:閲囪喘缂栧彿"` // 閲囪喘缂栧彿 Name string `json:"name" form:"name" gorm:"type:varchar(255);not null;default '';comment:閲囪喘鍚嶇О"` // 閲囪喘鍚嶇О -- Gitblit v1.8.0