fix
wangpengfei
2023-08-30 d7373b2a485e77c54c253932f98ef487cc4edfc7
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{},
      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))