From a583fb5fdd2ccdc20e22cebf9428237915645c57 Mon Sep 17 00:00:00 2001
From: zhangqian <zhangqian@123.com>
Date: 星期二, 08 八月 2023 20:47:02 +0800
Subject: [PATCH] 增加产品列表产品详情接口(代前端请求aps grpc接口)

---
 docs/docs.go |  134 ++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 134 insertions(+), 0 deletions(-)

diff --git a/docs/docs.go b/docs/docs.go
index 7b8fec7..9f28f1c 100644
--- a/docs/docs.go
+++ b/docs/docs.go
@@ -4756,6 +4756,102 @@
                 }
             }
         },
+        "/api/product/info": {
+            "get": {
+                "produces": [
+                    "application/json"
+                ],
+                "tags": [
+                    "浜у搧"
+                ],
+                "summary": "鑾峰彇浜у搧璇︽儏",
+                "parameters": [
+                    {
+                        "type": "string",
+                        "description": "鍙傛暟",
+                        "name": "productNumber",
+                        "in": "query",
+                        "required": true
+                    }
+                ],
+                "responses": {
+                    "200": {
+                        "description": "鎴愬姛",
+                        "schema": {
+                            "allOf": [
+                                {
+                                    "$ref": "#/definitions/contextx.Response"
+                                },
+                                {
+                                    "type": "object",
+                                    "properties": {
+                                        "data": {
+                                            "$ref": "#/definitions/product.Product"
+                                        }
+                                    }
+                                }
+                            ]
+                        }
+                    }
+                }
+            }
+        },
+        "/api/product/list": {
+            "get": {
+                "produces": [
+                    "application/json"
+                ],
+                "tags": [
+                    "浜у搧"
+                ],
+                "summary": "鑾峰彇浜у搧鍒楄〃",
+                "parameters": [
+                    {
+                        "type": "string",
+                        "name": "ProductName",
+                        "in": "query"
+                    },
+                    {
+                        "type": "string",
+                        "name": "ProductNumber",
+                        "in": "query"
+                    },
+                    {
+                        "type": "integer",
+                        "name": "page",
+                        "in": "query"
+                    },
+                    {
+                        "type": "integer",
+                        "name": "pageSize",
+                        "in": "query"
+                    }
+                ],
+                "responses": {
+                    "200": {
+                        "description": "OK",
+                        "schema": {
+                            "allOf": [
+                                {
+                                    "$ref": "#/definitions/response.ListResponse"
+                                },
+                                {
+                                    "type": "object",
+                                    "properties": {
+                                        "data": {
+                                            "type": "array",
+                                            "items": {
+                                                "$ref": "#/definitions/product.Product"
+                                            }
+                                        }
+                                    }
+                                }
+                            ]
+                        }
+                    }
+                }
+            }
+        },
         "/api/province/add": {
             "post": {
                 "produces": [
@@ -11690,6 +11786,44 @@
                 }
             }
         },
+        "product.Product": {
+            "type": "object",
+            "properties": {
+                "Amount": {
+                    "description": "搴撳瓨鍓╀綑閲�",
+                    "type": "number"
+                },
+                "IsSale": {
+                    "description": "鏄惁閿�鍞�",
+                    "type": "boolean"
+                },
+                "MaterialMode": {
+                    "description": "鐗╂枡绫诲瀷",
+                    "type": "string"
+                },
+                "MinInventory": {
+                    "description": "瀹夊叏搴撳瓨",
+                    "type": "integer"
+                },
+                "Name": {
+                    "type": "string"
+                },
+                "Number": {
+                    "type": "string"
+                },
+                "PurchaseType": {
+                    "description": "閲囪喘绫诲瀷",
+                    "type": "string"
+                },
+                "SalePrice": {
+                    "description": "閿�鍞环鏍�",
+                    "type": "number"
+                },
+                "Unit": {
+                    "type": "string"
+                }
+            }
+        },
         "request.AddAccountId": {
             "type": "object",
             "required": [

--
Gitblit v1.8.0