From f6c091c725792d51b3f411f8a11e0dfa876e5cf2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=80=97=E5=AD=90?= Date: Tue, 18 Jun 2024 01:35:05 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=9B=B4=E6=96=B0=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/http/controllers/cert_controller.go | 44 +++++++-------- app/http/controllers/file_controller.go | 30 +++++----- docs/docs.go | 74 ++++++++++++------------- docs/swagger.json | 74 ++++++++++++------------- docs/swagger.yaml | 74 ++++++++++++------------- 5 files changed, 148 insertions(+), 148 deletions(-) diff --git a/app/http/controllers/cert_controller.go b/app/http/controllers/cert_controller.go index 7da7749e..e684d413 100644 --- a/app/http/controllers/cert_controller.go +++ b/app/http/controllers/cert_controller.go @@ -28,7 +28,7 @@ func NewCertController() *CertController { // // @Summary 获取 CA 提供商 // @Description 获取面板证书管理支持的 CA 提供商 -// @Tags 证书管理 +// @Tags TLS证书 // @Produce json // @Security BearerToken // @Success 200 {object} SuccessResponse @@ -62,7 +62,7 @@ func (r *CertController) CAProviders(ctx http.Context) http.Response { // // @Summary 获取 DNS 提供商 // @Description 获取面板证书管理支持的 DNS 提供商 -// @Tags 证书管理 +// @Tags TLS证书 // @Produce json // @Security BearerToken // @Success 200 {object} SuccessResponse @@ -88,7 +88,7 @@ func (r *CertController) DNSProviders(ctx http.Context) http.Response { // // @Summary 获取算法列表 // @Description 获取面板证书管理支持的算法列表 -// @Tags 证书管理 +// @Tags TLS证书 // @Produce json // @Security BearerToken // @Success 200 {object} SuccessResponse @@ -118,7 +118,7 @@ func (r *CertController) Algorithms(ctx http.Context) http.Response { // // @Summary 获取用户列表 // @Description 获取面板证书管理的 ACME 用户列表 -// @Tags 证书管理 +// @Tags TLS证书 // @Produce json // @Security BearerToken // @Param data query commonrequests.Paginate true "request" @@ -151,7 +151,7 @@ func (r *CertController) UserList(ctx http.Context) http.Response { // // @Summary 添加 ACME 用户 // @Description 添加 ACME 用户到面板证书管理 -// @Tags 证书管理 +// @Tags TLS证书 // @Accept json // @Produce json // @Security BearerToken @@ -180,7 +180,7 @@ func (r *CertController) UserStore(ctx http.Context) http.Response { // // @Summary 更新 ACME 用户 // @Description 更新面板证书管理的 ACME 用户 -// @Tags 证书管理 +// @Tags TLS证书 // @Accept json // @Produce json // @Security BearerToken @@ -211,7 +211,7 @@ func (r *CertController) UserUpdate(ctx http.Context) http.Response { // // @Summary 获取 ACME 用户 // @Description 获取面板证书管理的 ACME 用户 -// @Tags 证书管理 +// @Tags TLS证书 // @Produce json // @Security BearerToken // @Param id path int true "用户 ID" @@ -240,7 +240,7 @@ func (r *CertController) UserShow(ctx http.Context) http.Response { // // @Summary 删除 ACME 用户 // @Description 删除面板证书管理的 ACME 用户 -// @Tags 证书管理 +// @Tags TLS证书 // @Accept json // @Produce json // @Security BearerToken @@ -270,7 +270,7 @@ func (r *CertController) UserDestroy(ctx http.Context) http.Response { // // @Summary 获取 DNS 接口列表 // @Description 获取面板证书管理的 DNS 接口列表 -// @Tags 证书管理 +// @Tags TLS证书 // @Produce json // @Security BearerToken // @Param data query commonrequests.Paginate true "request" @@ -303,7 +303,7 @@ func (r *CertController) DNSList(ctx http.Context) http.Response { // // @Summary 添加 DNS 接口 // @Description 添加 DNS 接口到面板证书管理 -// @Tags 证书管理 +// @Tags TLS证书 // @Accept json // @Produce json // @Security BearerToken @@ -332,7 +332,7 @@ func (r *CertController) DNSStore(ctx http.Context) http.Response { // // @Summary 获取 DNS 接口 // @Description 获取面板证书管理的 DNS 接口 -// @Tags 证书管理 +// @Tags TLS证书 // @Produce json // @Security BearerToken // @Param id path int true "DNS 接口 ID" @@ -361,7 +361,7 @@ func (r *CertController) DNSShow(ctx http.Context) http.Response { // // @Summary 更新 DNS 接口 // @Description 更新面板证书管理的 DNS 接口 -// @Tags 证书管理 +// @Tags TLS证书 // @Accept json // @Produce json // @Security BearerToken @@ -392,7 +392,7 @@ func (r *CertController) DNSUpdate(ctx http.Context) http.Response { // // @Summary 删除 DNS 接口 // @Description 删除面板证书管理的 DNS 接口 -// @Tags 证书管理 +// @Tags TLS证书 // @Accept json // @Produce json // @Security BearerToken @@ -422,7 +422,7 @@ func (r *CertController) DNSDestroy(ctx http.Context) http.Response { // // @Summary 获取证书列表 // @Description 获取面板证书管理的证书列表 -// @Tags 证书管理 +// @Tags TLS证书 // @Produce json // @Security BearerToken // @Param data query commonrequests.Paginate true "request" @@ -455,7 +455,7 @@ func (r *CertController) CertList(ctx http.Context) http.Response { // // @Summary 添加证书 // @Description 添加证书到面板证书管理 -// @Tags 证书管理 +// @Tags TLS证书 // @Accept json // @Produce json // @Security BearerToken @@ -484,7 +484,7 @@ func (r *CertController) CertStore(ctx http.Context) http.Response { // // @Summary 更新证书 // @Description 更新面板证书管理的证书 -// @Tags 证书管理 +// @Tags TLS证书 // @Accept json // @Produce json // @Security BearerToken @@ -515,7 +515,7 @@ func (r *CertController) CertUpdate(ctx http.Context) http.Response { // // @Summary 获取证书 // @Description 获取面板证书管理的证书 -// @Tags 证书管理 +// @Tags TLS证书 // @Produce json // @Security BearerToken // @Param id path int true "证书 ID" @@ -544,7 +544,7 @@ func (r *CertController) CertShow(ctx http.Context) http.Response { // // @Summary 删除证书 // @Description 删除面板证书管理的证书 -// @Tags 证书管理 +// @Tags TLS证书 // @Accept json // @Produce json // @Security BearerToken @@ -574,7 +574,7 @@ func (r *CertController) CertDestroy(ctx http.Context) http.Response { // // @Summary 签发证书 // @Description 签发面板证书管理的证书 -// @Tags 证书管理 +// @Tags TLS证书 // @Accept json // @Produce json // @Security BearerToken @@ -616,7 +616,7 @@ func (r *CertController) Obtain(ctx http.Context) http.Response { // // @Summary 续签证书 // @Description 续签面板证书管理的证书 -// @Tags 证书管理 +// @Tags TLS证书 // @Accept json // @Produce json // @Security BearerToken @@ -645,7 +645,7 @@ func (r *CertController) Renew(ctx http.Context) http.Response { // // @Summary 获取手动 DNS 记录 // @Description 获取签发证书所需的 DNS 记录 -// @Tags 证书管理 +// @Tags TLS证书 // @Accept json // @Produce json // @Security BearerToken @@ -674,7 +674,7 @@ func (r *CertController) ManualDNS(ctx http.Context) http.Response { // // @Summary 部署证书 // @Description 部署面板证书管理的证书 -// @Tags 证书管理 +// @Tags TLS证书 // @Accept json // @Produce json // @Security BearerToken diff --git a/app/http/controllers/file_controller.go b/app/http/controllers/file_controller.go index fbc7e42d..269be5fc 100644 --- a/app/http/controllers/file_controller.go +++ b/app/http/controllers/file_controller.go @@ -27,7 +27,7 @@ func NewFileController() *FileController { // // @Summary 创建文件/目录 // @Description 创建文件/目录到给定路径 -// @Tags 文件管理 +// @Tags 文件 // @Accept json // @Produce json // @Security BearerToken @@ -60,7 +60,7 @@ func (r *FileController) Create(ctx http.Context) http.Response { // // @Summary 获取文件内容 // @Description 获取给定路径的文件内容 -// @Tags 文件管理 +// @Tags 文件 // @Accept json // @Produce json // @Security BearerToken @@ -97,7 +97,7 @@ func (r *FileController) Content(ctx http.Context) http.Response { // // @Summary 保存文件内容 // @Description 保存给定路径的文件内容 -// @Tags 文件管理 +// @Tags 文件 // @Accept json // @Produce json // @Security BearerToken @@ -127,7 +127,7 @@ func (r *FileController) Save(ctx http.Context) http.Response { // // @Summary 删除文件/目录 // @Description 删除给定路径的文件/目录 -// @Tags 文件管理 +// @Tags 文件 // @Accept json // @Produce json // @Security BearerToken @@ -152,7 +152,7 @@ func (r *FileController) Delete(ctx http.Context) http.Response { // // @Summary 上传文件 // @Description 上传文件到给定路径 -// @Tags 文件管理 +// @Tags 文件 // @Accept json // @Produce json // @Security BearerToken @@ -194,7 +194,7 @@ func (r *FileController) Upload(ctx http.Context) http.Response { // // @Summary 移动文件/目录 // @Description 移动文件/目录到给定路径,等效于重命名 -// @Tags 文件管理 +// @Tags 文件 // @Accept json // @Produce json // @Security BearerToken @@ -224,7 +224,7 @@ func (r *FileController) Move(ctx http.Context) http.Response { // // @Summary 复制文件/目录 // @Description 复制文件/目录到给定路径 -// @Tags 文件管理 +// @Tags 文件 // @Accept json // @Produce json // @Security BearerToken @@ -254,7 +254,7 @@ func (r *FileController) Copy(ctx http.Context) http.Response { // // @Summary 下载文件 // @Description 下载给定路径的文件 -// @Tags 文件管理 +// @Tags 文件 // @Accept json // @Produce json // @Security BearerToken @@ -283,7 +283,7 @@ func (r *FileController) Download(ctx http.Context) http.Response { // // @Summary 下载远程文件 // @Description 下载远程文件到给定路径 -// @Tags 文件管理 +// @Tags 文件 // @Accept json // @Produce json // @Security BearerToken @@ -305,7 +305,7 @@ func (r *FileController) RemoteDownload(ctx http.Context) http.Response { // // @Summary 获取文件/目录信息 // @Description 获取给定路径的文件/目录信息 -// @Tags 文件管理 +// @Tags 文件 // @Accept json // @Produce json // @Security BearerToken @@ -338,7 +338,7 @@ func (r *FileController) Info(ctx http.Context) http.Response { // // @Summary 修改文件/目录权限 // @Description 修改给定路径的文件/目录权限 -// @Tags 文件管理 +// @Tags 文件 // @Accept json // @Produce json // @Security BearerToken @@ -366,7 +366,7 @@ func (r *FileController) Permission(ctx http.Context) http.Response { // // @Summary 压缩文件/目录 // @Description 压缩文件/目录到给定路径 -// @Tags 文件管理 +// @Tags 文件 // @Accept json // @Produce json // @Security BearerToken @@ -392,7 +392,7 @@ func (r *FileController) Archive(ctx http.Context) http.Response { // // @Summary 解压文件/目录 // @Description 解压文件/目录到给定路径 -// @Tags 文件管理 +// @Tags 文件 // @Accept json // @Produce json // @Security BearerToken @@ -418,7 +418,7 @@ func (r *FileController) UnArchive(ctx http.Context) http.Response { // // @Summary 搜索文件/目录 // @Description 通过关键词搜索给定路径的文件/目录 -// @Tags 文件管理 +// @Tags 文件 // @Accept json // @Produce json // @Param data body requests.Search true "request" @@ -452,7 +452,7 @@ func (r *FileController) Search(ctx http.Context) http.Response { // // @Summary 获取文件/目录列表 // @Description 获取给定路径的文件/目录列表 -// @Tags 文件管理 +// @Tags 文件 // @Accept json // @Produce json // @Param data query requests.Exist true "request" diff --git a/docs/docs.go b/docs/docs.go index 0cae9fd5..e671490e 100644 --- a/docs/docs.go +++ b/docs/docs.go @@ -33,7 +33,7 @@ const docTemplate = `{ "application/json" ], "tags": [ - "证书管理" + "TLS证书" ], "summary": "获取算法列表", "responses": { @@ -58,7 +58,7 @@ const docTemplate = `{ "application/json" ], "tags": [ - "证书管理" + "TLS证书" ], "summary": "获取 CA 提供商", "responses": { @@ -83,7 +83,7 @@ const docTemplate = `{ "application/json" ], "tags": [ - "证书管理" + "TLS证书" ], "summary": "获取证书列表", "parameters": [ @@ -121,7 +121,7 @@ const docTemplate = `{ "application/json" ], "tags": [ - "证书管理" + "TLS证书" ], "summary": "添加证书", "parameters": [ @@ -157,7 +157,7 @@ const docTemplate = `{ "application/json" ], "tags": [ - "证书管理" + "TLS证书" ], "summary": "获取证书", "parameters": [ @@ -204,7 +204,7 @@ const docTemplate = `{ "application/json" ], "tags": [ - "证书管理" + "TLS证书" ], "summary": "更新证书", "parameters": [ @@ -248,7 +248,7 @@ const docTemplate = `{ "application/json" ], "tags": [ - "证书管理" + "TLS证书" ], "summary": "删除证书", "parameters": [ @@ -285,7 +285,7 @@ const docTemplate = `{ "application/json" ], "tags": [ - "证书管理" + "TLS证书" ], "summary": "部署证书", "parameters": [ @@ -321,7 +321,7 @@ const docTemplate = `{ "application/json" ], "tags": [ - "证书管理" + "TLS证书" ], "summary": "获取 DNS 接口列表", "parameters": [ @@ -359,7 +359,7 @@ const docTemplate = `{ "application/json" ], "tags": [ - "证书管理" + "TLS证书" ], "summary": "添加 DNS 接口", "parameters": [ @@ -395,7 +395,7 @@ const docTemplate = `{ "application/json" ], "tags": [ - "证书管理" + "TLS证书" ], "summary": "获取 DNS 接口", "parameters": [ @@ -442,7 +442,7 @@ const docTemplate = `{ "application/json" ], "tags": [ - "证书管理" + "TLS证书" ], "summary": "更新 DNS 接口", "parameters": [ @@ -486,7 +486,7 @@ const docTemplate = `{ "application/json" ], "tags": [ - "证书管理" + "TLS证书" ], "summary": "删除 DNS 接口", "parameters": [ @@ -520,7 +520,7 @@ const docTemplate = `{ "application/json" ], "tags": [ - "证书管理" + "TLS证书" ], "summary": "获取 DNS 提供商", "responses": { @@ -548,7 +548,7 @@ const docTemplate = `{ "application/json" ], "tags": [ - "证书管理" + "TLS证书" ], "summary": "获取手动 DNS 记录", "parameters": [ @@ -602,7 +602,7 @@ const docTemplate = `{ "application/json" ], "tags": [ - "证书管理" + "TLS证书" ], "summary": "签发证书", "parameters": [ @@ -641,7 +641,7 @@ const docTemplate = `{ "application/json" ], "tags": [ - "证书管理" + "TLS证书" ], "summary": "续签证书", "parameters": [ @@ -677,7 +677,7 @@ const docTemplate = `{ "application/json" ], "tags": [ - "证书管理" + "TLS证书" ], "summary": "获取用户列表", "parameters": [ @@ -715,7 +715,7 @@ const docTemplate = `{ "application/json" ], "tags": [ - "证书管理" + "TLS证书" ], "summary": "添加 ACME 用户", "parameters": [ @@ -751,7 +751,7 @@ const docTemplate = `{ "application/json" ], "tags": [ - "证书管理" + "TLS证书" ], "summary": "获取 ACME 用户", "parameters": [ @@ -798,7 +798,7 @@ const docTemplate = `{ "application/json" ], "tags": [ - "证书管理" + "TLS证书" ], "summary": "更新 ACME 用户", "parameters": [ @@ -842,7 +842,7 @@ const docTemplate = `{ "application/json" ], "tags": [ - "证书管理" + "TLS证书" ], "summary": "删除 ACME 用户", "parameters": [ @@ -2075,7 +2075,7 @@ const docTemplate = `{ "application/json" ], "tags": [ - "文件管理" + "文件" ], "summary": "压缩文件/目录", "parameters": [ @@ -2114,7 +2114,7 @@ const docTemplate = `{ "application/json" ], "tags": [ - "文件管理" + "文件" ], "summary": "获取文件内容", "parameters": [ @@ -2149,7 +2149,7 @@ const docTemplate = `{ "application/json" ], "tags": [ - "文件管理" + "文件" ], "summary": "复制文件/目录", "parameters": [ @@ -2188,7 +2188,7 @@ const docTemplate = `{ "application/json" ], "tags": [ - "文件管理" + "文件" ], "summary": "创建文件/目录", "parameters": [ @@ -2227,7 +2227,7 @@ const docTemplate = `{ "application/json" ], "tags": [ - "文件管理" + "文件" ], "summary": "删除文件/目录", "parameters": [ @@ -2266,7 +2266,7 @@ const docTemplate = `{ "application/json" ], "tags": [ - "文件管理" + "文件" ], "summary": "下载文件", "parameters": [ @@ -2301,7 +2301,7 @@ const docTemplate = `{ "application/json" ], "tags": [ - "文件管理" + "文件" ], "summary": "获取文件/目录信息", "parameters": [ @@ -2331,7 +2331,7 @@ const docTemplate = `{ "application/json" ], "tags": [ - "文件管理" + "文件" ], "summary": "获取文件/目录列表", "parameters": [ @@ -2376,7 +2376,7 @@ const docTemplate = `{ "application/json" ], "tags": [ - "文件管理" + "文件" ], "summary": "移动文件/目录", "parameters": [ @@ -2415,7 +2415,7 @@ const docTemplate = `{ "application/json" ], "tags": [ - "文件管理" + "文件" ], "summary": "修改文件/目录权限", "parameters": [ @@ -2454,7 +2454,7 @@ const docTemplate = `{ "application/json" ], "tags": [ - "文件管理" + "文件" ], "summary": "下载远程文件", "parameters": [ @@ -2493,7 +2493,7 @@ const docTemplate = `{ "application/json" ], "tags": [ - "文件管理" + "文件" ], "summary": "保存文件内容", "parameters": [ @@ -2527,7 +2527,7 @@ const docTemplate = `{ "application/json" ], "tags": [ - "文件管理" + "文件" ], "summary": "搜索文件/目录", "parameters": [ @@ -2566,7 +2566,7 @@ const docTemplate = `{ "application/json" ], "tags": [ - "文件管理" + "文件" ], "summary": "解压文件/目录", "parameters": [ @@ -2605,7 +2605,7 @@ const docTemplate = `{ "application/json" ], "tags": [ - "文件管理" + "文件" ], "summary": "上传文件", "parameters": [ diff --git a/docs/swagger.json b/docs/swagger.json index 9e4c6f63..65f6db35 100644 --- a/docs/swagger.json +++ b/docs/swagger.json @@ -26,7 +26,7 @@ "application/json" ], "tags": [ - "证书管理" + "TLS证书" ], "summary": "获取算法列表", "responses": { @@ -51,7 +51,7 @@ "application/json" ], "tags": [ - "证书管理" + "TLS证书" ], "summary": "获取 CA 提供商", "responses": { @@ -76,7 +76,7 @@ "application/json" ], "tags": [ - "证书管理" + "TLS证书" ], "summary": "获取证书列表", "parameters": [ @@ -114,7 +114,7 @@ "application/json" ], "tags": [ - "证书管理" + "TLS证书" ], "summary": "添加证书", "parameters": [ @@ -150,7 +150,7 @@ "application/json" ], "tags": [ - "证书管理" + "TLS证书" ], "summary": "获取证书", "parameters": [ @@ -197,7 +197,7 @@ "application/json" ], "tags": [ - "证书管理" + "TLS证书" ], "summary": "更新证书", "parameters": [ @@ -241,7 +241,7 @@ "application/json" ], "tags": [ - "证书管理" + "TLS证书" ], "summary": "删除证书", "parameters": [ @@ -278,7 +278,7 @@ "application/json" ], "tags": [ - "证书管理" + "TLS证书" ], "summary": "部署证书", "parameters": [ @@ -314,7 +314,7 @@ "application/json" ], "tags": [ - "证书管理" + "TLS证书" ], "summary": "获取 DNS 接口列表", "parameters": [ @@ -352,7 +352,7 @@ "application/json" ], "tags": [ - "证书管理" + "TLS证书" ], "summary": "添加 DNS 接口", "parameters": [ @@ -388,7 +388,7 @@ "application/json" ], "tags": [ - "证书管理" + "TLS证书" ], "summary": "获取 DNS 接口", "parameters": [ @@ -435,7 +435,7 @@ "application/json" ], "tags": [ - "证书管理" + "TLS证书" ], "summary": "更新 DNS 接口", "parameters": [ @@ -479,7 +479,7 @@ "application/json" ], "tags": [ - "证书管理" + "TLS证书" ], "summary": "删除 DNS 接口", "parameters": [ @@ -513,7 +513,7 @@ "application/json" ], "tags": [ - "证书管理" + "TLS证书" ], "summary": "获取 DNS 提供商", "responses": { @@ -541,7 +541,7 @@ "application/json" ], "tags": [ - "证书管理" + "TLS证书" ], "summary": "获取手动 DNS 记录", "parameters": [ @@ -595,7 +595,7 @@ "application/json" ], "tags": [ - "证书管理" + "TLS证书" ], "summary": "签发证书", "parameters": [ @@ -634,7 +634,7 @@ "application/json" ], "tags": [ - "证书管理" + "TLS证书" ], "summary": "续签证书", "parameters": [ @@ -670,7 +670,7 @@ "application/json" ], "tags": [ - "证书管理" + "TLS证书" ], "summary": "获取用户列表", "parameters": [ @@ -708,7 +708,7 @@ "application/json" ], "tags": [ - "证书管理" + "TLS证书" ], "summary": "添加 ACME 用户", "parameters": [ @@ -744,7 +744,7 @@ "application/json" ], "tags": [ - "证书管理" + "TLS证书" ], "summary": "获取 ACME 用户", "parameters": [ @@ -791,7 +791,7 @@ "application/json" ], "tags": [ - "证书管理" + "TLS证书" ], "summary": "更新 ACME 用户", "parameters": [ @@ -835,7 +835,7 @@ "application/json" ], "tags": [ - "证书管理" + "TLS证书" ], "summary": "删除 ACME 用户", "parameters": [ @@ -2068,7 +2068,7 @@ "application/json" ], "tags": [ - "文件管理" + "文件" ], "summary": "压缩文件/目录", "parameters": [ @@ -2107,7 +2107,7 @@ "application/json" ], "tags": [ - "文件管理" + "文件" ], "summary": "获取文件内容", "parameters": [ @@ -2142,7 +2142,7 @@ "application/json" ], "tags": [ - "文件管理" + "文件" ], "summary": "复制文件/目录", "parameters": [ @@ -2181,7 +2181,7 @@ "application/json" ], "tags": [ - "文件管理" + "文件" ], "summary": "创建文件/目录", "parameters": [ @@ -2220,7 +2220,7 @@ "application/json" ], "tags": [ - "文件管理" + "文件" ], "summary": "删除文件/目录", "parameters": [ @@ -2259,7 +2259,7 @@ "application/json" ], "tags": [ - "文件管理" + "文件" ], "summary": "下载文件", "parameters": [ @@ -2294,7 +2294,7 @@ "application/json" ], "tags": [ - "文件管理" + "文件" ], "summary": "获取文件/目录信息", "parameters": [ @@ -2324,7 +2324,7 @@ "application/json" ], "tags": [ - "文件管理" + "文件" ], "summary": "获取文件/目录列表", "parameters": [ @@ -2369,7 +2369,7 @@ "application/json" ], "tags": [ - "文件管理" + "文件" ], "summary": "移动文件/目录", "parameters": [ @@ -2408,7 +2408,7 @@ "application/json" ], "tags": [ - "文件管理" + "文件" ], "summary": "修改文件/目录权限", "parameters": [ @@ -2447,7 +2447,7 @@ "application/json" ], "tags": [ - "文件管理" + "文件" ], "summary": "下载远程文件", "parameters": [ @@ -2486,7 +2486,7 @@ "application/json" ], "tags": [ - "文件管理" + "文件" ], "summary": "保存文件内容", "parameters": [ @@ -2520,7 +2520,7 @@ "application/json" ], "tags": [ - "文件管理" + "文件" ], "summary": "搜索文件/目录", "parameters": [ @@ -2559,7 +2559,7 @@ "application/json" ], "tags": [ - "文件管理" + "文件" ], "summary": "解压文件/目录", "parameters": [ @@ -2598,7 +2598,7 @@ "application/json" ], "tags": [ - "文件管理" + "文件" ], "summary": "上传文件", "parameters": [ diff --git a/docs/swagger.yaml b/docs/swagger.yaml index 90d730ee..5a0c99c5 100644 --- a/docs/swagger.yaml +++ b/docs/swagger.yaml @@ -691,7 +691,7 @@ paths: - BearerToken: [] summary: 获取算法列表 tags: - - 证书管理 + - TLS证书 /panel/cert/caProviders: get: description: 获取面板证书管理支持的 CA 提供商 @@ -706,7 +706,7 @@ paths: - BearerToken: [] summary: 获取 CA 提供商 tags: - - 证书管理 + - TLS证书 /panel/cert/certs: get: description: 获取面板证书管理的证书列表 @@ -728,7 +728,7 @@ paths: - BearerToken: [] summary: 获取证书列表 tags: - - 证书管理 + - TLS证书 post: consumes: - application/json @@ -751,7 +751,7 @@ paths: - BearerToken: [] summary: 添加证书 tags: - - 证书管理 + - TLS证书 /panel/cert/certs/{id}: delete: consumes: @@ -774,7 +774,7 @@ paths: - BearerToken: [] summary: 删除证书 tags: - - 证书管理 + - TLS证书 get: description: 获取面板证书管理的证书 parameters: @@ -799,7 +799,7 @@ paths: - BearerToken: [] summary: 获取证书 tags: - - 证书管理 + - TLS证书 put: consumes: - application/json @@ -827,7 +827,7 @@ paths: - BearerToken: [] summary: 更新证书 tags: - - 证书管理 + - TLS证书 /panel/cert/deploy: post: consumes: @@ -851,7 +851,7 @@ paths: - BearerToken: [] summary: 部署证书 tags: - - 证书管理 + - TLS证书 /panel/cert/dns: get: description: 获取面板证书管理的 DNS 接口列表 @@ -873,7 +873,7 @@ paths: - BearerToken: [] summary: 获取 DNS 接口列表 tags: - - 证书管理 + - TLS证书 post: consumes: - application/json @@ -896,7 +896,7 @@ paths: - BearerToken: [] summary: 添加 DNS 接口 tags: - - 证书管理 + - TLS证书 /panel/cert/dns/{id}: delete: consumes: @@ -919,7 +919,7 @@ paths: - BearerToken: [] summary: 删除 DNS 接口 tags: - - 证书管理 + - TLS证书 get: description: 获取面板证书管理的 DNS 接口 parameters: @@ -944,7 +944,7 @@ paths: - BearerToken: [] summary: 获取 DNS 接口 tags: - - 证书管理 + - TLS证书 put: consumes: - application/json @@ -972,7 +972,7 @@ paths: - BearerToken: [] summary: 更新 DNS 接口 tags: - - 证书管理 + - TLS证书 /panel/cert/dnsProviders: get: description: 获取面板证书管理支持的 DNS 提供商 @@ -987,7 +987,7 @@ paths: - BearerToken: [] summary: 获取 DNS 提供商 tags: - - 证书管理 + - TLS证书 /panel/cert/manualDNS: post: consumes: @@ -1018,7 +1018,7 @@ paths: - BearerToken: [] summary: 获取手动 DNS 记录 tags: - - 证书管理 + - TLS证书 /panel/cert/obtain: post: consumes: @@ -1042,7 +1042,7 @@ paths: - BearerToken: [] summary: 签发证书 tags: - - 证书管理 + - TLS证书 /panel/cert/renew: post: consumes: @@ -1066,7 +1066,7 @@ paths: - BearerToken: [] summary: 续签证书 tags: - - 证书管理 + - TLS证书 /panel/cert/users: get: description: 获取面板证书管理的 ACME 用户列表 @@ -1088,7 +1088,7 @@ paths: - BearerToken: [] summary: 获取用户列表 tags: - - 证书管理 + - TLS证书 post: consumes: - application/json @@ -1111,7 +1111,7 @@ paths: - BearerToken: [] summary: 添加 ACME 用户 tags: - - 证书管理 + - TLS证书 /panel/cert/users/{id}: delete: consumes: @@ -1134,7 +1134,7 @@ paths: - BearerToken: [] summary: 删除 ACME 用户 tags: - - 证书管理 + - TLS证书 get: description: 获取面板证书管理的 ACME 用户 parameters: @@ -1159,7 +1159,7 @@ paths: - BearerToken: [] summary: 获取 ACME 用户 tags: - - 证书管理 + - TLS证书 put: consumes: - application/json @@ -1187,7 +1187,7 @@ paths: - BearerToken: [] summary: 更新 ACME 用户 tags: - - 证书管理 + - TLS证书 /panel/container/create: post: consumes: @@ -1934,7 +1934,7 @@ paths: - BearerToken: [] summary: 压缩文件/目录 tags: - - 文件管理 + - 文件 /panel/file/content: get: consumes: @@ -1955,7 +1955,7 @@ paths: - BearerToken: [] summary: 获取文件内容 tags: - - 文件管理 + - 文件 /panel/file/copy: post: consumes: @@ -1979,7 +1979,7 @@ paths: - BearerToken: [] summary: 复制文件/目录 tags: - - 文件管理 + - 文件 /panel/file/create: post: consumes: @@ -2003,7 +2003,7 @@ paths: - BearerToken: [] summary: 创建文件/目录 tags: - - 文件管理 + - 文件 /panel/file/delete: post: consumes: @@ -2027,7 +2027,7 @@ paths: - BearerToken: [] summary: 删除文件/目录 tags: - - 文件管理 + - 文件 /panel/file/download: get: consumes: @@ -2048,7 +2048,7 @@ paths: - BearerToken: [] summary: 下载文件 tags: - - 文件管理 + - 文件 /panel/file/info: get: consumes: @@ -2069,7 +2069,7 @@ paths: - BearerToken: [] summary: 获取文件/目录信息 tags: - - 文件管理 + - 文件 /panel/file/list: get: consumes: @@ -2094,7 +2094,7 @@ paths: $ref: '#/definitions/controllers.SuccessResponse' summary: 获取文件/目录列表 tags: - - 文件管理 + - 文件 /panel/file/move: post: consumes: @@ -2118,7 +2118,7 @@ paths: - BearerToken: [] summary: 移动文件/目录 tags: - - 文件管理 + - 文件 /panel/file/permission: post: consumes: @@ -2142,7 +2142,7 @@ paths: - BearerToken: [] summary: 修改文件/目录权限 tags: - - 文件管理 + - 文件 /panel/file/remoteDownload: post: consumes: @@ -2166,7 +2166,7 @@ paths: - BearerToken: [] summary: 下载远程文件 tags: - - 文件管理 + - 文件 /panel/file/save: post: consumes: @@ -2190,7 +2190,7 @@ paths: - BearerToken: [] summary: 保存文件内容 tags: - - 文件管理 + - 文件 /panel/file/search: post: consumes: @@ -2212,7 +2212,7 @@ paths: $ref: '#/definitions/controllers.SuccessResponse' summary: 搜索文件/目录 tags: - - 文件管理 + - 文件 /panel/file/unArchive: post: consumes: @@ -2236,7 +2236,7 @@ paths: - BearerToken: [] summary: 解压文件/目录 tags: - - 文件管理 + - 文件 /panel/file/upload: post: consumes: @@ -2264,7 +2264,7 @@ paths: - BearerToken: [] summary: 上传文件 tags: - - 文件管理 + - 文件 /panel/plugin/install: post: parameters: