From f2c7c7aa3218cd5ef688975ea9b5a0f3a6e5e74f Mon Sep 17 00:00:00 2001 From: wangpengfei <274878379@qq.com> Date: 星期四, 10 八月 2023 16:38:41 +0800 Subject: [PATCH] temp --- api/v1/product.go | 6 ++---- 1 files changed, 2 insertions(+), 4 deletions(-) diff --git a/api/v1/product.go b/api/v1/product.go index 8782b69..f77d0a6 100644 --- a/api/v1/product.go +++ b/api/v1/product.go @@ -92,7 +92,7 @@ productId := c.Query("productNumber") cli := product.NewProductServiceClient(productServiceConn) - getProductInfoResponse, err := cli.GetProductInfo(ctx.GetCtx(), &product.GetProductInfoRequest{ProductId: productId}, nil) + getProductInfoResponse, err := cli.GetProductInfo(ctx.GetCtx(), &product.GetProductInfoRequest{ProductId: productId}) if err != nil { logx.Errorf("GetProductInfo err: %v", err.Error()) ctx.FailWithMsg(ecode.UnknownErr, "鍐呴儴閿欒") @@ -103,7 +103,5 @@ ctx.FailWithMsg(ecode.UnknownErr, "鍐呴儴閿欒") return } - ctx.OkWithDetailed(contextx.Response{ - Data: getProductInfoResponse.Data, - }) + ctx.OkWithDetailed(getProductInfoResponse.Data) } -- Gitblit v1.8.0