From ce3d99ca62fc7f60dafd98ac29d14cea478d96b3 Mon Sep 17 00:00:00 2001 From: zhangqian <zhangqian@123.com> Date: 星期五, 18 八月 2023 10:25:26 +0800 Subject: [PATCH] fix --- api/v1/product.go | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/api/v1/product.go b/api/v1/product.go index f77d0a6..0b51826 100644 --- a/api/v1/product.go +++ b/api/v1/product.go @@ -31,6 +31,12 @@ } } +func CloseProductServiceConn() { + if productServiceConn != nil { + productServiceConn.Close() + } +} + // List // // @Tags 浜у搧 @@ -52,7 +58,6 @@ } cli := product.NewProductServiceClient(productServiceConn) - getProductListResponse, err := cli.GetProductList(ctx.GetCtx(), &product.GetProductListRequest{ Page: cast.ToInt32(params.Page), PageSize: cast.ToInt32(params.PageSize), -- Gitblit v1.8.0