From e517b1a99b6edfa24c8cc4e109a6a10488f23b6a Mon Sep 17 00:00:00 2001 From: zhangqian <zhangqian@123.com> Date: 星期一, 28 八月 2023 11:51:55 +0800 Subject: [PATCH] merge --- initialize/gorm.go | 18 +++++++++++++----- 1 files changed, 13 insertions(+), 5 deletions(-) diff --git a/initialize/gorm.go b/initialize/gorm.go index 57d3be0..4602c13 100644 --- a/initialize/gorm.go +++ b/initialize/gorm.go @@ -2,14 +2,15 @@ import ( "os" + "srm/model/purchase" - "github.com/flipped-aurora/gin-vue-admin/server/global" - "github.com/flipped-aurora/gin-vue-admin/server/model/example" - "github.com/flipped-aurora/gin-vue-admin/server/model/system" + "srm/global" + "srm/model/example" + "srm/model/system" - "github.com/flipped-aurora/gin-vue-admin/server/model/test" "go.uber.org/zap" "gorm.io/gorm" + "srm/model/test" ) func Gorm() *gorm.DB { @@ -51,7 +52,14 @@ example.ExaFile{}, example.ExaCustomer{}, example.ExaFileChunk{}, - example.ExaFileUploadAndDownload{}, test.Industry{}, test.SupplierType{}, test.Supplier{}, + example.ExaFileUploadAndDownload{}, + test.Industry{}, + test.SupplierType{}, + test.Supplier{}, + test.Contract{}, + test.Product{}, + test.Member{}, + purchase.Purchase{}, purchase.PurchaseProducts{}, ) if err != nil { global.GVA_LOG.Error("register table failed", zap.Error(err)) -- Gitblit v1.8.0