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

---
 docs/docs.go |  324 ++++++++++++++++++++++++++++++++++-------------------
 1 files changed, 206 insertions(+), 118 deletions(-)

diff --git a/docs/docs.go b/docs/docs.go
index 1f6e1d3..9be43ac 100644
--- a/docs/docs.go
+++ b/docs/docs.go
@@ -2727,76 +2727,61 @@
                 }
             }
         },
-        "/api/file/list": {
-            "get": {
+        "/api/file/download": {
+            "post": {
                 "produces": [
                     "application/json"
                 ],
                 "tags": [
                     "闄勪欢绠$悊"
                 ],
-                "summary": "鑾峰彇闄勪欢鍒楄〃",
+                "summary": "闄勪欢涓嬭浇",
                 "parameters": [
                     {
-                        "type": "string",
-                        "name": "keyword",
-                        "in": "query"
-                    },
-                    {
-                        "enum": [
-                            ""
-                        ],
-                        "type": "string",
-                        "x-enum-varnames": [
-                            "FileKeywordCustomerName"
-                        ],
-                        "name": "keywordType",
-                        "in": "query"
-                    },
-                    {
-                        "type": "integer",
-                        "description": "椤电爜",
-                        "name": "page",
-                        "in": "query"
-                    },
-                    {
-                        "type": "integer",
-                        "description": "姣忛〉澶у皬",
-                        "name": "pageSize",
-                        "in": "query"
-                    },
-                    {
-                        "enum": [
-                            ""
-                        ],
-                        "type": "string",
-                        "x-enum-varnames": [
-                            "FileQueryClassExpireLessThen60Days"
-                        ],
-                        "name": "queryClass",
-                        "in": "query"
+                        "description": "鍙傛暟",
+                        "name": "object",
+                        "in": "body",
+                        "required": true,
+                        "schema": {
+                            "$ref": "#/definitions/request.DownloadFile"
+                        }
                     }
                 ],
                 "responses": {
                     "200": {
                         "description": "OK",
                         "schema": {
-                            "allOf": [
-                                {
-                                    "$ref": "#/definitions/response.ListResponse"
-                                },
-                                {
-                                    "type": "object",
-                                    "properties": {
-                                        "data": {
-                                            "type": "array",
-                                            "items": {
-                                                "$ref": "#/definitions/model.File"
-                                            }
-                                        }
-                                    }
-                                }
-                            ]
+                            "$ref": "#/definitions/contextx.Response"
+                        }
+                    }
+                }
+            }
+        },
+        "/api/file/preview": {
+            "post": {
+                "produces": [
+                    "application/json"
+                ],
+                "tags": [
+                    "闄勪欢绠$悊"
+                ],
+                "summary": "闄勪欢棰勮",
+                "parameters": [
+                    {
+                        "description": "鍙傛暟",
+                        "name": "object",
+                        "in": "body",
+                        "required": true,
+                        "schema": {
+                            "$ref": "#/definitions/request.DownloadFile"
+                        }
+                    }
+                ],
+                "responses": {
+                    "200": {
+                        "description": "OK",
+                        "schema": {
+                            "$ref": "#/definitions/contextx.Response"
                         }
                     }
                 }
@@ -4766,6 +4751,106 @@
                         "description": "OK",
                         "schema": {
                             "$ref": "#/definitions/contextx.Response"
+                        }
+                    }
+                }
+            }
+        },
+        "/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": "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": {
+                    "200": {
+                        "description": "OK",
+                        "schema": {
+                            "allOf": [
+                                {
+                                    "$ref": "#/definitions/response.ListResponse"
+                                },
+                                {
+                                    "type": "object",
+                                    "properties": {
+                                        "data": {
+                                            "type": "array",
+                                            "items": {
+                                                "$ref": "#/definitions/product.Product"
+                                            }
+                                        }
+                                    }
+                                }
+                            ]
                         }
                     }
                 }
@@ -9470,24 +9555,6 @@
                 "FaqQueryClassExpireLessThen60Days"
             ]
         },
-        "constvar.FileKeywordType": {
-            "type": "string",
-            "enum": [
-                ""
-            ],
-            "x-enum-varnames": [
-                "FileKeywordCustomerName"
-            ]
-        },
-        "constvar.FileQueryClass": {
-            "type": "string",
-            "enum": [
-                ""
-            ],
-            "x-enum-varnames": [
-                "FileQueryClassExpireLessThen60Days"
-            ]
-        },
         "constvar.InvoiceKeywordType": {
             "type": "string",
             "enum": [
@@ -10269,50 +10336,6 @@
                     "type": "integer"
                 },
                 "name": {
-                    "type": "string"
-                }
-            }
-        },
-        "model.File": {
-            "type": "object",
-            "properties": {
-                "bucket": {
-                    "description": "瀵硅薄瀛樺偍bucket",
-                    "type": "string"
-                },
-                "downloadCount": {
-                    "description": "涓嬫娆℃暟",
-                    "type": "integer"
-                },
-                "filePath": {
-                    "description": "鏂囦欢璺緞",
-                    "type": "string"
-                },
-                "fileType": {
-                    "description": "鏂囦欢绫诲瀷",
-                    "type": "string"
-                },
-                "key": {
-                    "description": "瀵硅薄瀛樺偍key",
-                    "type": "string"
-                },
-                "name": {
-                    "type": "string"
-                },
-                "previewCount": {
-                    "description": "棰勮娆℃暟",
-                    "type": "integer"
-                },
-                "size": {
-                    "description": "鏂囦欢澶у皬",
-                    "type": "integer"
-                },
-                "sourceId": {
-                    "description": "鏉ユ簮id",
-                    "type": "integer"
-                },
-                "sourceType": {
-                    "description": "闄勪欢鏉ユ簮",
                     "type": "string"
                 }
             }
@@ -11799,6 +11822,44 @@
                     "type": "string"
                 },
                 "uuid": {
+                    "type": "string"
+                }
+            }
+        },
+        "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"
                 }
             }
@@ -13516,6 +13577,33 @@
                 }
             }
         },
+        "request.DownloadFile": {
+            "type": "object",
+            "required": [
+                "id",
+                "key",
+                "sourceId",
+                "sourceType"
+            ],
+            "properties": {
+                "id": {
+                    "description": "闄勪欢id",
+                    "type": "integer"
+                },
+                "key": {
+                    "description": "闄勪欢瀛樺偍key",
+                    "type": "string"
+                },
+                "sourceId": {
+                    "description": "鏉ユ簮id",
+                    "type": "integer"
+                },
+                "sourceType": {
+                    "description": "闄勪欢鏉ユ簮",
+                    "type": "string"
+                }
+            }
+        },
         "request.FollowRecord": {
             "type": "object",
             "properties": {

--
Gitblit v1.8.0