From e581f6e6b410a6406a86c6743d43b8d450cd3d50 Mon Sep 17 00:00:00 2001
From: zhangqian <zhangqian@123.com>
Date: 星期六, 05 八月 2023 18:31:57 +0800
Subject: [PATCH] 文件管理

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

diff --git a/docs/docs.go b/docs/docs.go
index 4b55d3a..a31ad29 100644
--- a/docs/docs.go
+++ b/docs/docs.go
@@ -2492,6 +2492,169 @@
                 }
             }
         },
+        "/api/file/add": {
+            "post": {
+                "produces": [
+                    "application/json"
+                ],
+                "tags": [
+                    "闄勪欢绠$悊"
+                ],
+                "summary": "娣诲姞闄勪欢",
+                "parameters": [
+                    {
+                        "description": "鏌ヨ鍙傛暟",
+                        "name": "object",
+                        "in": "body",
+                        "required": true,
+                        "schema": {
+                            "$ref": "#/definitions/request.AddFile"
+                        }
+                    }
+                ],
+                "responses": {
+                    "200": {
+                        "description": "OK",
+                        "schema": {
+                            "$ref": "#/definitions/contextx.Response"
+                        }
+                    }
+                }
+            }
+        },
+        "/api/file/delete/{id}": {
+            "delete": {
+                "produces": [
+                    "application/json"
+                ],
+                "tags": [
+                    "闄勪欢绠$悊"
+                ],
+                "summary": "鍒犻櫎闄勪欢",
+                "parameters": [
+                    {
+                        "type": "integer",
+                        "description": "鏌ヨ鍙傛暟",
+                        "name": "id",
+                        "in": "path",
+                        "required": true
+                    }
+                ],
+                "responses": {
+                    "200": {
+                        "description": "OK",
+                        "schema": {
+                            "$ref": "#/definitions/contextx.Response"
+                        }
+                    }
+                }
+            }
+        },
+        "/api/file/list": {
+            "get": {
+                "produces": [
+                    "application/json"
+                ],
+                "tags": [
+                    "闄勪欢绠$悊"
+                ],
+                "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"
+                    }
+                ],
+                "responses": {
+                    "200": {
+                        "description": "OK",
+                        "schema": {
+                            "allOf": [
+                                {
+                                    "$ref": "#/definitions/response.ListResponse"
+                                },
+                                {
+                                    "type": "object",
+                                    "properties": {
+                                        "data": {
+                                            "type": "array",
+                                            "items": {
+                                                "$ref": "#/definitions/model.File"
+                                            }
+                                        }
+                                    }
+                                }
+                            ]
+                        }
+                    }
+                }
+            }
+        },
+        "/api/file/update": {
+            "put": {
+                "produces": [
+                    "application/json"
+                ],
+                "tags": [
+                    "闄勪欢绠$悊"
+                ],
+                "summary": "鏇存柊闄勪欢",
+                "parameters": [
+                    {
+                        "description": "鏌ヨ鍙傛暟",
+                        "name": "object",
+                        "in": "body",
+                        "required": true,
+                        "schema": {
+                            "$ref": "#/definitions/request.UpdateFile"
+                        }
+                    }
+                ],
+                "responses": {
+                    "200": {
+                        "description": "OK",
+                        "schema": {
+                            "$ref": "#/definitions/contextx.Response"
+                        }
+                    }
+                }
+            }
+        },
         "/api/followRecord/add": {
             "post": {
                 "produces": [
@@ -8596,6 +8759,24 @@
                 "FaqQueryClassExpireLessThen60Days"
             ]
         },
+        "constvar.FileKeywordType": {
+            "type": "string",
+            "enum": [
+                ""
+            ],
+            "x-enum-varnames": [
+                "FileKeywordCustomerName"
+            ]
+        },
+        "constvar.FileQueryClass": {
+            "type": "string",
+            "enum": [
+                ""
+            ],
+            "x-enum-varnames": [
+                "FileQueryClassExpireLessThen60Days"
+            ]
+        },
         "constvar.PaymentTypeKeywordType": {
             "type": "string",
             "enum": [
@@ -9297,6 +9478,64 @@
                     "type": "integer"
                 },
                 "name": {
+                    "type": "string"
+                }
+            }
+        },
+        "model.File": {
+            "type": "object",
+            "properties": {
+                "bucket": {
+                    "description": "瀵硅薄瀛樺偍bucket",
+                    "type": "string"
+                },
+                "content": {
+                    "description": "鏂囦欢鍐呭",
+                    "type": "string"
+                },
+                "createTime": {
+                    "description": "鍒涘缓鏃堕棿",
+                    "type": "string"
+                },
+                "downloadCount": {
+                    "description": "涓嬫娆℃暟",
+                    "type": "integer"
+                },
+                "filePath": {
+                    "description": "鏂囦欢璺緞",
+                    "type": "string"
+                },
+                "fileType": {
+                    "description": "鏂囦欢绫诲瀷",
+                    "type": "string"
+                },
+                "id": {
+                    "type": "integer"
+                },
+                "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"
+                },
+                "updateTime": {
                     "type": "string"
                 }
             }
@@ -11027,6 +11266,23 @@
                     "type": "integer"
                 },
                 "name": {
+                    "type": "string"
+                }
+            }
+        },
+        "request.AddFile": {
+            "type": "object",
+            "required": [
+                "sourceId",
+                "sourceType"
+            ],
+            "properties": {
+                "sourceId": {
+                    "description": "鏉ユ簮id",
+                    "type": "integer"
+                },
+                "sourceType": {
+                    "description": "闄勪欢鏉ユ簮",
                     "type": "string"
                 }
             }
@@ -13402,6 +13658,64 @@
                 }
             }
         },
+        "request.UpdateFile": {
+            "type": "object",
+            "properties": {
+                "bucket": {
+                    "description": "瀵硅薄瀛樺偍bucket",
+                    "type": "string"
+                },
+                "content": {
+                    "description": "鏂囦欢鍐呭",
+                    "type": "string"
+                },
+                "createTime": {
+                    "description": "鍒涘缓鏃堕棿",
+                    "type": "string"
+                },
+                "downloadCount": {
+                    "description": "涓嬫娆℃暟",
+                    "type": "integer"
+                },
+                "filePath": {
+                    "description": "鏂囦欢璺緞",
+                    "type": "string"
+                },
+                "fileType": {
+                    "description": "鏂囦欢绫诲瀷",
+                    "type": "string"
+                },
+                "id": {
+                    "type": "integer"
+                },
+                "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"
+                },
+                "updateTime": {
+                    "type": "string"
+                }
+            }
+        },
         "request.UpdateFollowRecord": {
             "type": "object",
             "required": [

--
Gitblit v1.8.0