From c7e82fd1d76b9fb25497d5aba4372bbfe13a8468 Mon Sep 17 00:00:00 2001
From: zhangqian <zhangqian@123.com>
Date: 星期四, 28 三月 2024 20:00:21 +0800
Subject: [PATCH] 采购入库增加来源

---
 main.go |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/main.go b/main.go
index af4d670..2b4c8d8 100644
--- a/main.go
+++ b/main.go
@@ -8,6 +8,7 @@
 	"srm/api/v1/test"
 	"srm/proto/purchase_wms"
 	"srm/proto/qualityinspect"
+	"srm/proto/supplier"
 
 	"srm/core"
 	"srm/global"
@@ -48,6 +49,7 @@
 		s := grpc.NewServer()
 		//todo 娣诲姞鍏蜂綋鏈嶅姟
 		purchase_wms.RegisterPurchaseServiceServer(s, &purchase_wms.Server{})
+		supplier.RegisterSupplierServiceServer(s, &supplier.Server{})
 		err = s.Serve(ln)
 		if err != nil {
 			global.GVA_LOG.Error("grpc server init error: %v", zap.Error(err))
@@ -65,10 +67,12 @@
 	test.InitProductServiceConn()
 	qualityinspect.InitConn()
 	purchase_wms.InitPurchaseConn()
+	test.InitProductServiceConn()
 }
 
 func closeGrpcClient() {
 	test.CloseProductServiceConn()
 	qualityinspect.CloseConn()
 	purchase_wms.ClosePurchaseConn()
+	test.CloseProductServiceConn()
 }

--
Gitblit v1.8.0