From cbd99e9824b6582296c28e8d86877084c71d8764 Mon Sep 17 00:00:00 2001
From: zhangqian <zhangqian@123.com>
Date: 星期三, 09 八月 2023 13:37:49 +0800
Subject: [PATCH] fix

---
 api/v1/product.go |    6 +--
 docs/swagger.yaml |   20 ++++++----
 docs/docs.go      |   24 +++++++-----
 docs/swagger.json |   24 +++++++-----
 4 files changed, 42 insertions(+), 32 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)
 }
diff --git a/docs/docs.go b/docs/docs.go
index 9f28f1c..1fd64a7 100644
--- a/docs/docs.go
+++ b/docs/docs.go
@@ -4807,24 +4807,28 @@
                 "summary": "鑾峰彇浜у搧鍒楄〃",
                 "parameters": [
                     {
-                        "type": "string",
-                        "name": "ProductName",
-                        "in": "query"
-                    },
-                    {
-                        "type": "string",
-                        "name": "ProductNumber",
-                        "in": "query"
-                    },
-                    {
                         "type": "integer",
+                        "description": "椤电爜",
                         "name": "page",
                         "in": "query"
                     },
                     {
                         "type": "integer",
+                        "description": "姣忛〉澶у皬",
                         "name": "pageSize",
                         "in": "query"
+                    },
+                    {
+                        "type": "string",
+                        "description": "浜у搧鍚嶇О",
+                        "name": "productName",
+                        "in": "query"
+                    },
+                    {
+                        "type": "string",
+                        "description": "浜у搧缂栫爜",
+                        "name": "productNumber",
+                        "in": "query"
                     }
                 ],
                 "responses": {
diff --git a/docs/swagger.json b/docs/swagger.json
index c15b63d..dd4bf40 100644
--- a/docs/swagger.json
+++ b/docs/swagger.json
@@ -4795,24 +4795,28 @@
                 "summary": "鑾峰彇浜у搧鍒楄〃",
                 "parameters": [
                     {
-                        "type": "string",
-                        "name": "ProductName",
-                        "in": "query"
-                    },
-                    {
-                        "type": "string",
-                        "name": "ProductNumber",
-                        "in": "query"
-                    },
-                    {
                         "type": "integer",
+                        "description": "椤电爜",
                         "name": "page",
                         "in": "query"
                     },
                     {
                         "type": "integer",
+                        "description": "姣忛〉澶у皬",
                         "name": "pageSize",
                         "in": "query"
+                    },
+                    {
+                        "type": "string",
+                        "description": "浜у搧鍚嶇О",
+                        "name": "productName",
+                        "in": "query"
+                    },
+                    {
+                        "type": "string",
+                        "description": "浜у搧缂栫爜",
+                        "name": "productNumber",
+                        "in": "query"
                     }
                 ],
                 "responses": {
diff --git a/docs/swagger.yaml b/docs/swagger.yaml
index 96e4ee4..1add1e9 100644
--- a/docs/swagger.yaml
+++ b/docs/swagger.yaml
@@ -8213,18 +8213,22 @@
   /api/product/list:
     get:
       parameters:
-      - in: query
-        name: ProductName
-        type: string
-      - in: query
-        name: ProductNumber
-        type: string
-      - in: query
+      - description: 椤电爜
+        in: query
         name: page
         type: integer
-      - in: query
+      - description: 姣忛〉澶у皬
+        in: query
         name: pageSize
         type: integer
+      - description: 浜у搧鍚嶇О
+        in: query
+        name: productName
+        type: string
+      - description: 浜у搧缂栫爜
+        in: query
+        name: productNumber
+        type: string
       produces:
       - application/json
       responses:

--
Gitblit v1.8.0