重构获取公共参数

This commit is contained in:
ryan
2026-06-09 15:54:16 +08:00
parent bff09241d3
commit 40e8a7cfa3
18 changed files with 313 additions and 315 deletions
+18 -1
View File
@@ -2191,7 +2191,7 @@ const docTemplate = `{
},
"/api/v1/config/public": {
"get": {
"description": "返回对前端公开的系统配置信息,如允许上传的文件类型、站点名称、是否开放注册等",
"description": "返回系统配置表中 visibility 为 1 的配置键值集合",
"consumes": [
"application/json"
],
@@ -4008,6 +4008,9 @@ const docTemplate = `{
},
"value": {
"type": "string"
},
"visibility": {
"type": "integer"
}
}
},
@@ -4465,6 +4468,13 @@ const docTemplate = `{
"value": {
"type": "string",
"maxLength": 255
},
"visibility": {
"type": "integer",
"enum": [
0,
1
]
}
}
},
@@ -4525,6 +4535,13 @@ const docTemplate = `{
"value": {
"type": "string",
"maxLength": 255
},
"visibility": {
"type": "integer",
"enum": [
0,
1
]
}
}
},
+18 -1
View File
@@ -2184,7 +2184,7 @@
},
"/api/v1/config/public": {
"get": {
"description": "返回对前端公开的系统配置信息,如允许上传的文件类型、站点名称、是否开放注册等",
"description": "返回系统配置表中 visibility 为 1 的配置键值集合",
"consumes": [
"application/json"
],
@@ -4001,6 +4001,9 @@
},
"value": {
"type": "string"
},
"visibility": {
"type": "integer"
}
}
},
@@ -4458,6 +4461,13 @@
"value": {
"type": "string",
"maxLength": 255
},
"visibility": {
"type": "integer",
"enum": [
0,
1
]
}
}
},
@@ -4518,6 +4528,13 @@
"value": {
"type": "string",
"maxLength": 255
},
"visibility": {
"type": "integer",
"enum": [
0,
1
]
}
}
},
+13 -1
View File
@@ -250,6 +250,8 @@ definitions:
type: string
value:
type: string
visibility:
type: integer
type: object
model.TaskExecution:
properties:
@@ -558,6 +560,11 @@ definitions:
value:
maxLength: 255
type: string
visibility:
enum:
- 0
- 1
type: integer
required:
- key
- type
@@ -602,6 +609,11 @@ definitions:
value:
maxLength: 255
type: string
visibility:
enum:
- 0
- 1
type: integer
required:
- value
type: object
@@ -2206,7 +2218,7 @@ paths:
get:
consumes:
- application/json
description: 返回对前端公开的系统配置信息,如允许上传的文件类型、站点名称、是否开放注册等
description: 返回系统配置表中 visibility 为 1 的配置键值集合
produces:
- application/json
responses: