From c9cedfb740614a995576171df73f19ebd613aff0 Mon Sep 17 00:00:00 2001
From: jiangshuai <291802688@qq.com>
Date: 星期四, 23 十一月 2023 19:12:44 +0800
Subject: [PATCH] 获取供应商列表grpc客户端

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

diff --git a/main.go b/main.go
index acfe495..d4a15c9 100644
--- a/main.go
+++ b/main.go
@@ -16,6 +16,7 @@
 	"wms/pkg/logx"
 	"wms/proto/product_inventory"
 	"wms/proto/purchase_wms"
+	"wms/proto/supplier"
 	"wms/router"
 	"wms/service"
 )
@@ -49,6 +50,7 @@
 	go controllers.InitInventoryOrderServiceConn()
 	go controllers.InitProductInventoryServiceConn()
 	go controllers.InitCodeServiceConn()
+	go supplier.InitConn()
 	//鍚姩grpc鏈嶅姟
 	go func() {
 		ln, err := net.Listen("tcp", ":"+conf.WebConf.GrpcPort)
@@ -87,6 +89,7 @@
 	controllers.CloseInventoryOrderServiceConn()
 	controllers.CloseProductInventoryServiceConn()
 	controllers.CloseCodeServiceConn()
+	supplier.CloseConn()
 	// 鍏抽棴HTTP鏈嶅姟鍣�
 	if err := server.Shutdown(ctx); err != nil {
 		logx.Infof("鏈嶅姟浼橀泤閫�鍑哄け璐�: %v", err)

--
Gitblit v1.8.0