mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-10-01 22:46:38 +08:00
图片压缩
This commit is contained in:
+25
-1
@@ -2360,7 +2360,7 @@ const docTemplate = `{
|
||||
"SessionCookie": []
|
||||
}
|
||||
],
|
||||
"description": "返回系统中所有已上传文件所拥有的业务类型,并合并默认内置类型(avatar, attachment, doc, generic)",
|
||||
"description": "返回数据库中所有已上传文件实际拥有的业务类型列表",
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
@@ -3454,6 +3454,18 @@ const docTemplate = `{
|
||||
"name": "id",
|
||||
"in": "path",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"description": "是否启用压缩 (传任意非空值代表启用,非图片文件将被忽略)",
|
||||
"name": "compress",
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"description": "压缩质量等级 (low, medium, high),默认为 high",
|
||||
"name": "level",
|
||||
"in": "query"
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
@@ -4228,6 +4240,18 @@ const docTemplate = `{
|
||||
"name": "id",
|
||||
"in": "path",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"description": "是否启用压缩 (传任意非空值代表启用,非图片文件将被忽略)",
|
||||
"name": "compress",
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"description": "压缩质量等级 (low, medium, high),默认为 high",
|
||||
"name": "level",
|
||||
"in": "query"
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
|
||||
+25
-1
@@ -2353,7 +2353,7 @@
|
||||
"SessionCookie": []
|
||||
}
|
||||
],
|
||||
"description": "返回系统中所有已上传文件所拥有的业务类型,并合并默认内置类型(avatar, attachment, doc, generic)",
|
||||
"description": "返回数据库中所有已上传文件实际拥有的业务类型列表",
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
@@ -3447,6 +3447,18 @@
|
||||
"name": "id",
|
||||
"in": "path",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"description": "是否启用压缩 (传任意非空值代表启用,非图片文件将被忽略)",
|
||||
"name": "compress",
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"description": "压缩质量等级 (low, medium, high),默认为 high",
|
||||
"name": "level",
|
||||
"in": "query"
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
@@ -4221,6 +4233,18 @@
|
||||
"name": "id",
|
||||
"in": "path",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"description": "是否启用压缩 (传任意非空值代表启用,非图片文件将被忽略)",
|
||||
"name": "compress",
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"description": "压缩质量等级 (low, medium, high),默认为 high",
|
||||
"name": "level",
|
||||
"in": "query"
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
|
||||
+17
-1
@@ -2418,7 +2418,7 @@ paths:
|
||||
- admin
|
||||
/api/v1/admin/uploads/types:
|
||||
get:
|
||||
description: 返回系统中所有已上传文件所拥有的业务类型,并合并默认内置类型(avatar, attachment, doc, generic)
|
||||
description: 返回数据库中所有已上传文件实际拥有的业务类型列表
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
@@ -3067,6 +3067,14 @@ paths:
|
||||
name: id
|
||||
required: true
|
||||
type: string
|
||||
- description: 是否启用压缩 (传任意非空值代表启用,非图片文件将被忽略)
|
||||
in: query
|
||||
name: compress
|
||||
type: string
|
||||
- description: 压缩质量等级 (low, medium, high),默认为 high
|
||||
in: query
|
||||
name: level
|
||||
type: string
|
||||
produces:
|
||||
- application/octet-stream
|
||||
responses:
|
||||
@@ -3533,6 +3541,14 @@ paths:
|
||||
name: id
|
||||
required: true
|
||||
type: string
|
||||
- description: 是否启用压缩 (传任意非空值代表启用,非图片文件将被忽略)
|
||||
in: query
|
||||
name: compress
|
||||
type: string
|
||||
- description: 压缩质量等级 (low, medium, high),默认为 high
|
||||
in: query
|
||||
name: level
|
||||
type: string
|
||||
produces:
|
||||
- application/octet-stream
|
||||
responses:
|
||||
|
||||
Reference in New Issue
Block a user