添加前端页面以及相关打包脚本和内置 web 的逻辑
This commit is contained in:
@@ -48,6 +48,8 @@ definitions:
|
||||
type: object
|
||||
admin.UpdateBatchRequest:
|
||||
properties:
|
||||
download_count:
|
||||
type: integer
|
||||
expire_at:
|
||||
type: string
|
||||
expire_type:
|
||||
@@ -106,6 +108,9 @@ definitions:
|
||||
type: object
|
||||
config.SecurityConfig:
|
||||
properties:
|
||||
admin_password:
|
||||
description: 管理员密码明文 (仅用于更新请求,不保存到文件)
|
||||
type: string
|
||||
admin_password_hash:
|
||||
description: 管理员密码哈希 (bcrypt)
|
||||
type: string
|
||||
@@ -251,6 +256,8 @@ definitions:
|
||||
type: string
|
||||
created_at:
|
||||
type: string
|
||||
download_url:
|
||||
type: string
|
||||
id:
|
||||
type: string
|
||||
mime_type:
|
||||
@@ -854,9 +861,42 @@ paths:
|
||||
summary: 获取公共配置
|
||||
tags:
|
||||
- Public
|
||||
/api/files/{file_id}/{filename}:
|
||||
get:
|
||||
description: 根据文件 ID 下载单个文件。支持直观的文件名结尾以方便下载工具识别。可选提供带 pickup scope 的 API Token。
|
||||
parameters:
|
||||
- description: 文件 ID (UUID)
|
||||
in: path
|
||||
name: file_id
|
||||
required: true
|
||||
type: string
|
||||
- description: 文件名
|
||||
in: path
|
||||
name: filename
|
||||
type: string
|
||||
produces:
|
||||
- application/octet-stream
|
||||
responses:
|
||||
"200":
|
||||
description: OK
|
||||
schema:
|
||||
type: file
|
||||
"404":
|
||||
description: Not Found
|
||||
schema:
|
||||
$ref: '#/definitions/model.Response'
|
||||
"410":
|
||||
description: Gone
|
||||
schema:
|
||||
$ref: '#/definitions/model.Response'
|
||||
security:
|
||||
- APITokenAuth: []
|
||||
summary: 下载单个文件
|
||||
tags:
|
||||
- Public
|
||||
/api/files/{file_id}/download:
|
||||
get:
|
||||
description: 根据文件 ID 下载单个文件。可选提供带 pickup scope 的 API Token。
|
||||
description: 根据文件 ID 下载单个文件。支持直观的文件名结尾以方便下载工具识别。可选提供带 pickup scope 的 API Token。
|
||||
parameters:
|
||||
- description: 文件 ID (UUID)
|
||||
in: path
|
||||
|
||||
Reference in New Issue
Block a user