From e517b1a99b6edfa24c8cc4e109a6a10488f23b6a Mon Sep 17 00:00:00 2001 From: zhangqian <zhangqian@123.com> Date: 星期一, 28 八月 2023 11:51:55 +0800 Subject: [PATCH] merge --- model/purchase/purchase.go | 27 +++++++++++++++++++++++++++ 1 files changed, 27 insertions(+), 0 deletions(-) diff --git a/model/purchase/purchase.go b/model/purchase/purchase.go new file mode 100644 index 0000000..2c08f7f --- /dev/null +++ b/model/purchase/purchase.go @@ -0,0 +1,27 @@ +package purchase + +import ( + "srm/global" +) + +type Purchase struct { + global.GVA_MODEL + 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 + Name string `json:"name" form:"name" gorm:"type:varchar(255);not null;default '';comment:閲囪喘鍚嶇О"` // 閲囪喘鍚嶇О + Contact string `json:"contact" form:"contact" gorm:"type:varchar(255);not null;default '';comment:鑱旂郴浜�"` // 鑱旂郴浜� + Phone string `json:"phone" form:"phone" gorm:"type:varchar(255);not null;default '';comment:鑱旂郴浜虹數璇�"` // 鑱旂郴浜虹數璇� + SigningDate string `json:"signingDate" form:"signingDate" gorm:"type:varchar(255);not null;default '';comment:绛剧害鏃ユ湡"` // 绛剧害鏃ユ湡 + DeliveryDate string `json:"deliveryDate" form:"deliveryDate" gorm:"type:varchar(255);not null;default '';comment:浜や粯鏃ユ湡"` //浜や粯鏃ユ湡 + Remark string `json:"remark" form:"remark" gorm:"type:varchar(1000);not null;default '';comment:澶囨敞"` //澶囨敞 + Status string `json:"remark" form:"remark" gorm:"type:varchar(1000);not null;default '';comment:澶囨敞"` //澶囨敞 +} + +type OrderStatus int + +const ( +// PurchaseOrderStatusConfirmed OrderStatus = 1 //宸蹭笅鍗� +// PurchaseOrderStatusReceived OrderStatus = 2 //宸插埌璐� +// PurchaseOrderStatus OrderStatus = 3 //宸插叆搴� +// PurchaseOrderStatusReceived OrderStatus = 4 //宸插畬鎴� +) -- Gitblit v1.8.0