添加站点 Logo 配置支持,更新配置结构及 Swagger 文档
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
site:
|
site:
|
||||||
name: 文件暂存柜
|
name: 文件暂存柜
|
||||||
description: 临时文件中转服务
|
description: 临时文件中转服务
|
||||||
|
logo: ""
|
||||||
security:
|
security:
|
||||||
admin_password_hash: $2a$10$Bm0TEmU4uj.bVHYiIPFBheUkcdg6XHpsanLvmpoAtgU1UnKbo9.vy
|
admin_password_hash: $2a$10$Bm0TEmU4uj.bVHYiIPFBheUkcdg6XHpsanLvmpoAtgU1UnKbo9.vy
|
||||||
pickup_code_length: 6
|
pickup_code_length: 6
|
||||||
|
|||||||
@@ -9,6 +9,7 @@
|
|||||||
| :--- | :--- | :--- | :--- |
|
| :--- | :--- | :--- | :--- |
|
||||||
| `name` | string | 站点名称,显示在网页标题和页头 | `文件暂存柜` |
|
| `name` | string | 站点名称,显示在网页标题和页头 | `文件暂存柜` |
|
||||||
| `description` | string | 站点描述,显示在首页或元标签中 | `临时文件中转服务` |
|
| `description` | string | 站点描述,显示在首页或元标签中 | `临时文件中转服务` |
|
||||||
|
| `logo` | string | 站点 Logo 的 URL 地址 | `/logo.png` |
|
||||||
|
|
||||||
## 2. 安全设置 (security)
|
## 2. 安全设置 (security)
|
||||||
涉及系统鉴权、取件保护相关的核心安全配置。
|
涉及系统鉴权、取件保护相关的核心安全配置。
|
||||||
|
|||||||
@@ -1093,6 +1093,10 @@ const docTemplate = `{
|
|||||||
"description": "站点描述",
|
"description": "站点描述",
|
||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
|
"logo": {
|
||||||
|
"description": "站点 Logo URL",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
"name": {
|
"name": {
|
||||||
"description": "站点名称",
|
"description": "站点名称",
|
||||||
"type": "string"
|
"type": "string"
|
||||||
|
|||||||
@@ -1086,6 +1086,10 @@
|
|||||||
"description": "站点描述",
|
"description": "站点描述",
|
||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
|
"logo": {
|
||||||
|
"description": "站点 Logo URL",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
"name": {
|
"name": {
|
||||||
"description": "站点名称",
|
"description": "站点名称",
|
||||||
"type": "string"
|
"type": "string"
|
||||||
|
|||||||
@@ -124,6 +124,9 @@ definitions:
|
|||||||
description:
|
description:
|
||||||
description: 站点描述
|
description: 站点描述
|
||||||
type: string
|
type: string
|
||||||
|
logo:
|
||||||
|
description: 站点 Logo URL
|
||||||
|
type: string
|
||||||
name:
|
name:
|
||||||
description: 站点名称
|
description: 站点名称
|
||||||
type: string
|
type: string
|
||||||
|
|||||||
@@ -19,6 +19,7 @@ type Config struct {
|
|||||||
type SiteConfig struct {
|
type SiteConfig struct {
|
||||||
Name string `yaml:"name" json:"name"` // 站点名称
|
Name string `yaml:"name" json:"name"` // 站点名称
|
||||||
Description string `yaml:"description" json:"description"` // 站点描述
|
Description string `yaml:"description" json:"description"` // 站点描述
|
||||||
|
Logo string `yaml:"logo" json:"logo"` // 站点 Logo URL
|
||||||
}
|
}
|
||||||
|
|
||||||
type SecurityConfig struct {
|
type SecurityConfig struct {
|
||||||
|
|||||||
Reference in New Issue
Block a user