From e5c9327d1b659cd6bf9c3adc3ae81146630511a0 Mon Sep 17 00:00:00 2001
From: zhangqian <zhangqian@123.com>
Date: 星期二, 29 八月 2023 14:51:21 +0800
Subject: [PATCH] Merge branch 'purchase'

---
 model/purchase/request/purchase_type.go |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/model/purchase/request/purchase_type.go b/model/purchase/request/purchase_type.go
new file mode 100644
index 0000000..26956c6
--- /dev/null
+++ b/model/purchase/request/purchase_type.go
@@ -0,0 +1,12 @@
+package purchaserequest
+
+type SavePurchaseType struct {
+	List []*PurchaseType `json:"purchase"`
+}
+
+type PurchaseType struct {
+	ID   uint   `gorm:"primarykey"`                                                                 // 涓婚敭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