代理批量关联租户接口、关于页运行时与资源指标
CI / test (push) Successful in 31s
Release / release (push) Successful in 57s

This commit is contained in:
2026-07-13 12:23:18 +08:00
parent c7cc5616ed
commit 81d4650f3d
13 changed files with 434 additions and 8 deletions
+41 -1
View File
@@ -154,7 +154,7 @@ const docTemplate = `{
"tags": [
"设置"
],
"summary": "返回构建运行环境信息,「设置 · 关于」页展示",
"summary": "返回构建运行时长与资源占用信息,「设置 · 关于」页展示",
"responses": {
"200": {
"description": "OK",
@@ -5001,6 +5001,46 @@ const docTemplate = `{
}
}
},
"/api/v1/proxies/{id}/tenants": {
"put": {
"security": [
{
"BearerAuth": []
}
],
"tags": [
"设置"
],
"summary": "设置代理关联的租户全集",
"parameters": [
{
"type": "integer",
"description": "代理 ID",
"name": "id",
"in": "path",
"required": true
},
{
"description": "请求体 {\\",
"name": "body",
"in": "body",
"required": true,
"schema": {
"type": "object"
}
}
],
"responses": {
"200": {
"description": "usedBy",
"schema": {
"type": "object",
"additionalProperties": true
}
}
}
}
},
"/api/v1/regions": {
"get": {
"security": [
+41 -1
View File
@@ -147,7 +147,7 @@
"tags": [
"设置"
],
"summary": "返回构建运行环境信息,「设置 · 关于」页展示",
"summary": "返回构建运行时长与资源占用信息,「设置 · 关于」页展示",
"responses": {
"200": {
"description": "OK",
@@ -4994,6 +4994,46 @@
}
}
},
"/api/v1/proxies/{id}/tenants": {
"put": {
"security": [
{
"BearerAuth": []
}
],
"tags": [
"设置"
],
"summary": "设置代理关联的租户全集",
"parameters": [
{
"type": "integer",
"description": "代理 ID",
"name": "id",
"in": "path",
"required": true
},
{
"description": "请求体 {\\",
"name": "body",
"in": "body",
"required": true,
"schema": {
"type": "object"
}
}
],
"responses": {
"200": {
"description": "usedBy",
"schema": {
"type": "object",
"additionalProperties": true
}
}
}
}
},
"/api/v1/regions": {
"get": {
"security": [
+26 -1
View File
@@ -671,7 +671,7 @@ paths:
type: object
security:
- BearerAuth: []
summary: 返回构建运行环境信息,「设置 · 关于」页展示
summary: 返回构建运行时长与资源占用信息,「设置 · 关于」页展示
tags:
- 设置
/api/v1/ai-blacklist:
@@ -3668,6 +3668,31 @@ paths:
summary: 手动重测代理出口地区,同步返回最新视图
tags:
- 设置
/api/v1/proxies/{id}/tenants:
put:
parameters:
- description: 代理 ID
in: path
name: id
required: true
type: integer
- description: 请求体 {\
in: body
name: body
required: true
schema:
type: object
responses:
"200":
description: usedBy
schema:
additionalProperties: true
type: object
security:
- BearerAuth: []
summary: 设置代理关联的租户全集
tags:
- 设置
/api/v1/proxies/import:
post:
parameters: