add
wangpengfei
2023-08-17 efdfa2d6754354c021a19b340088c296fff74ca6
api/v1/product.go
@@ -52,7 +52,6 @@
   }
   cli := product.NewProductServiceClient(productServiceConn)
   getProductListResponse, err := cli.GetProductList(ctx.GetCtx(), &product.GetProductListRequest{
      Page:          cast.ToInt32(params.Page),
      PageSize:      cast.ToInt32(params.PageSize),
@@ -92,7 +91,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 +102,5 @@
      ctx.FailWithMsg(ecode.UnknownErr, "内部错误")
      return
   }
   ctx.OkWithDetailed(contextx.Response{
      Data: getProductInfoResponse.Data,
   })
   ctx.OkWithDetailed(getProductInfoResponse.Data)
}