From 7d2a8ce2702e8598209ef58cacd9660e2b5bf1eb Mon Sep 17 00:00:00 2001
From: jiangshuai <291802688@qq.com>
Date: 星期四, 14 十二月 2023 14:03:37 +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 88f1ecc..baad417 100644
--- a/model/purchase/request/purchase.go
+++ b/model/purchase/request/purchase.go
@@ -28,7 +28,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
+	PurchaseTypeId      int                          `json:"purchaseTypeId,string" form:"purchaseType" gorm:"type:int(11);not null;default 0;comment:閲囪喘绫诲瀷id"`            // 閲囪喘绫诲瀷id
 	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:閲囪喘缂栧彿"`                      // 閲囪喘缂栧彿

--
Gitblit v1.8.0