From f0c8133cb0d6d26f4efce83aba3497e0e2aeb767 Mon Sep 17 00:00:00 2001 From: hxuanyu <2252193204@qq.com> Date: Wed, 14 Jan 2026 16:46:13 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E7=AB=99=E7=82=B9=20Logo=20?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E6=94=AF=E6=8C=81=EF=BC=8C=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E7=BB=93=E6=9E=84=E5=8F=8A=20Swagger=20?= =?UTF-8?q?=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/config.yaml | 1 + docs/config_specification.md | 1 + docs/docs.go | 4 ++++ docs/swagger.json | 4 ++++ docs/swagger.yaml | 3 +++ internal/config/config.go | 1 + 6 files changed, 14 insertions(+) diff --git a/config/config.yaml b/config/config.yaml index 4ebbf4b..68fb0e2 100644 --- a/config/config.yaml +++ b/config/config.yaml @@ -1,6 +1,7 @@ site: name: 文件暂存柜 description: 临时文件中转服务 + logo: "" security: admin_password_hash: $2a$10$Bm0TEmU4uj.bVHYiIPFBheUkcdg6XHpsanLvmpoAtgU1UnKbo9.vy pickup_code_length: 6 diff --git a/docs/config_specification.md b/docs/config_specification.md index 526f6c0..182387d 100644 --- a/docs/config_specification.md +++ b/docs/config_specification.md @@ -9,6 +9,7 @@ | :--- | :--- | :--- | :--- | | `name` | string | 站点名称,显示在网页标题和页头 | `文件暂存柜` | | `description` | string | 站点描述,显示在首页或元标签中 | `临时文件中转服务` | +| `logo` | string | 站点 Logo 的 URL 地址 | `/logo.png` | ## 2. 安全设置 (security) 涉及系统鉴权、取件保护相关的核心安全配置。 diff --git a/docs/docs.go b/docs/docs.go index 7b778ca..363231b 100644 --- a/docs/docs.go +++ b/docs/docs.go @@ -1093,6 +1093,10 @@ const docTemplate = `{ "description": "站点描述", "type": "string" }, + "logo": { + "description": "站点 Logo URL", + "type": "string" + }, "name": { "description": "站点名称", "type": "string" diff --git a/docs/swagger.json b/docs/swagger.json index 2f87ab4..fd2ebb5 100644 --- a/docs/swagger.json +++ b/docs/swagger.json @@ -1086,6 +1086,10 @@ "description": "站点描述", "type": "string" }, + "logo": { + "description": "站点 Logo URL", + "type": "string" + }, "name": { "description": "站点名称", "type": "string" diff --git a/docs/swagger.yaml b/docs/swagger.yaml index 1e98cbb..e2739ac 100644 --- a/docs/swagger.yaml +++ b/docs/swagger.yaml @@ -124,6 +124,9 @@ definitions: description: description: 站点描述 type: string + logo: + description: 站点 Logo URL + type: string name: description: 站点名称 type: string diff --git a/internal/config/config.go b/internal/config/config.go index 3956267..ca7a00a 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -19,6 +19,7 @@ type Config struct { type SiteConfig struct { Name string `yaml:"name" json:"name"` // 站点名称 Description string `yaml:"description" json:"description"` // 站点描述 + Logo string `yaml:"logo" json:"logo"` // 站点 Logo URL } type SecurityConfig struct {