mirror of
https://github.com/QuantumNous/new-api.git
synced 2026-03-30 05:02:17 +00:00
5089 lines
110 KiB
JSON
5089 lines
110 KiB
JSON
{
|
||
"openapi": "3.0.1",
|
||
"info": {
|
||
"title": "后台管理接口",
|
||
"description": "",
|
||
"version": "1.0.0"
|
||
},
|
||
"tags": [
|
||
{
|
||
"name": "系统"
|
||
},
|
||
{
|
||
"name": "用户认证"
|
||
},
|
||
{
|
||
"name": "两步验证"
|
||
},
|
||
{
|
||
"name": "OAuth"
|
||
},
|
||
{
|
||
"name": "用户管理"
|
||
},
|
||
{
|
||
"name": "充值"
|
||
},
|
||
{
|
||
"name": "安全验证"
|
||
},
|
||
{
|
||
"name": "渠道管理"
|
||
},
|
||
{
|
||
"name": "令牌管理"
|
||
},
|
||
{
|
||
"name": "兑换码"
|
||
},
|
||
{
|
||
"name": "日志"
|
||
},
|
||
{
|
||
"name": "数据统计"
|
||
},
|
||
{
|
||
"name": "分组"
|
||
},
|
||
{
|
||
"name": "任务"
|
||
},
|
||
{
|
||
"name": "供应商"
|
||
},
|
||
{
|
||
"name": "模型管理"
|
||
},
|
||
{
|
||
"name": "系统设置"
|
||
}
|
||
],
|
||
"paths": {
|
||
"/api/setup": {
|
||
"get": {
|
||
"summary": "获取初始化状态",
|
||
"deprecated": false,
|
||
"description": "🔓 无需鉴权",
|
||
"tags": [
|
||
"系统"
|
||
],
|
||
"parameters": [],
|
||
"responses": {
|
||
"200": {
|
||
"description": "成功",
|
||
"headers": {}
|
||
}
|
||
},
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
},
|
||
"post": {
|
||
"summary": "初始化系统",
|
||
"deprecated": false,
|
||
"description": "🔓 无需鉴权",
|
||
"tags": [
|
||
"系统"
|
||
],
|
||
"parameters": [],
|
||
"requestBody": {
|
||
"content": {
|
||
"application/json": {
|
||
"schema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"username": {
|
||
"type": "string"
|
||
},
|
||
"password": {
|
||
"type": "string"
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"responses": {
|
||
"200": {
|
||
"description": "成功",
|
||
"headers": {}
|
||
}
|
||
},
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"/api/status": {
|
||
"get": {
|
||
"summary": "获取系统状态",
|
||
"deprecated": false,
|
||
"description": "🔓 无需鉴权",
|
||
"tags": [
|
||
"系统"
|
||
],
|
||
"parameters": [],
|
||
"responses": {
|
||
"200": {
|
||
"description": "成功",
|
||
"headers": {}
|
||
}
|
||
},
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"/api/status/test": {
|
||
"get": {
|
||
"summary": "测试系统状态",
|
||
"deprecated": false,
|
||
"description": "👨💼 需要管理员权限(Admin)",
|
||
"tags": [
|
||
"系统"
|
||
],
|
||
"parameters": [],
|
||
"responses": {
|
||
"200": {
|
||
"description": "成功",
|
||
"headers": {}
|
||
}
|
||
},
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"/api/uptime/status": {
|
||
"get": {
|
||
"summary": "获取Uptime Kuma状态",
|
||
"deprecated": false,
|
||
"description": "🔓 无需鉴权",
|
||
"tags": [
|
||
"系统"
|
||
],
|
||
"parameters": [],
|
||
"responses": {
|
||
"200": {
|
||
"description": "成功",
|
||
"headers": {}
|
||
}
|
||
},
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"/api/notice": {
|
||
"get": {
|
||
"summary": "获取公告",
|
||
"deprecated": false,
|
||
"description": "🔓 无需鉴权",
|
||
"tags": [
|
||
"系统"
|
||
],
|
||
"parameters": [],
|
||
"responses": {
|
||
"200": {
|
||
"description": "成功",
|
||
"headers": {}
|
||
}
|
||
},
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"/api/user-agreement": {
|
||
"get": {
|
||
"summary": "获取用户协议",
|
||
"deprecated": false,
|
||
"description": "🔓 无需鉴权",
|
||
"tags": [
|
||
"系统"
|
||
],
|
||
"parameters": [],
|
||
"responses": {
|
||
"200": {
|
||
"description": "成功",
|
||
"headers": {}
|
||
}
|
||
},
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"/api/privacy-policy": {
|
||
"get": {
|
||
"summary": "获取隐私政策",
|
||
"deprecated": false,
|
||
"description": "🔓 无需鉴权",
|
||
"tags": [
|
||
"系统"
|
||
],
|
||
"parameters": [],
|
||
"responses": {
|
||
"200": {
|
||
"description": "成功",
|
||
"headers": {}
|
||
}
|
||
},
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"/api/about": {
|
||
"get": {
|
||
"summary": "获取关于信息",
|
||
"deprecated": false,
|
||
"description": "🔓 无需鉴权",
|
||
"tags": [
|
||
"系统"
|
||
],
|
||
"parameters": [],
|
||
"responses": {
|
||
"200": {
|
||
"description": "成功",
|
||
"headers": {}
|
||
}
|
||
},
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"/api/home_page_content": {
|
||
"get": {
|
||
"summary": "获取首页内容",
|
||
"deprecated": false,
|
||
"description": "🔓 无需鉴权",
|
||
"tags": [
|
||
"系统"
|
||
],
|
||
"parameters": [],
|
||
"responses": {
|
||
"200": {
|
||
"description": "成功",
|
||
"headers": {}
|
||
}
|
||
},
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"/api/pricing": {
|
||
"get": {
|
||
"summary": "获取定价信息",
|
||
"deprecated": false,
|
||
"description": "🔓 无需鉴权(可选登录)",
|
||
"tags": [
|
||
"系统"
|
||
],
|
||
"parameters": [],
|
||
"responses": {
|
||
"200": {
|
||
"description": "成功",
|
||
"headers": {}
|
||
}
|
||
},
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"/api/models": {
|
||
"get": {
|
||
"summary": "获取模型列表",
|
||
"deprecated": false,
|
||
"description": "🔐 需要登录(User权限)",
|
||
"tags": [
|
||
"系统"
|
||
],
|
||
"parameters": [],
|
||
"responses": {
|
||
"200": {
|
||
"description": "成功",
|
||
"headers": {}
|
||
}
|
||
},
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"/api/ratio_config": {
|
||
"get": {
|
||
"summary": "获取倍率配置",
|
||
"deprecated": false,
|
||
"description": "🔓 无需鉴权",
|
||
"tags": [
|
||
"系统"
|
||
],
|
||
"parameters": [],
|
||
"responses": {
|
||
"200": {
|
||
"description": "成功",
|
||
"headers": {}
|
||
}
|
||
},
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"/api/verification": {
|
||
"get": {
|
||
"summary": "发送邮箱验证码",
|
||
"deprecated": false,
|
||
"description": "🔓 无需鉴权",
|
||
"tags": [
|
||
"用户认证"
|
||
],
|
||
"parameters": [
|
||
{
|
||
"name": "email",
|
||
"in": "query",
|
||
"description": "",
|
||
"required": true,
|
||
"schema": {
|
||
"type": "string"
|
||
}
|
||
}
|
||
],
|
||
"responses": {
|
||
"200": {
|
||
"description": "成功",
|
||
"headers": {}
|
||
}
|
||
},
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"/api/reset_password": {
|
||
"get": {
|
||
"summary": "发送密码重置邮件",
|
||
"deprecated": false,
|
||
"description": "🔓 无需鉴权",
|
||
"tags": [
|
||
"用户认证"
|
||
],
|
||
"parameters": [
|
||
{
|
||
"name": "email",
|
||
"in": "query",
|
||
"description": "",
|
||
"required": true,
|
||
"schema": {
|
||
"type": "string"
|
||
}
|
||
}
|
||
],
|
||
"responses": {
|
||
"200": {
|
||
"description": "成功",
|
||
"headers": {}
|
||
}
|
||
},
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"/api/user/reset": {
|
||
"post": {
|
||
"summary": "重置密码",
|
||
"deprecated": false,
|
||
"description": "🔓 无需鉴权",
|
||
"tags": [
|
||
"用户认证"
|
||
],
|
||
"parameters": [],
|
||
"requestBody": {
|
||
"content": {
|
||
"application/json": {
|
||
"schema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"email": {
|
||
"type": "string"
|
||
},
|
||
"token": {
|
||
"type": "string"
|
||
},
|
||
"password": {
|
||
"type": "string"
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"responses": {
|
||
"200": {
|
||
"description": "成功",
|
||
"headers": {}
|
||
}
|
||
},
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"/api/user/register": {
|
||
"post": {
|
||
"summary": "用户注册",
|
||
"deprecated": false,
|
||
"description": "🔓 无需鉴权",
|
||
"tags": [
|
||
"用户认证"
|
||
],
|
||
"parameters": [],
|
||
"requestBody": {
|
||
"content": {
|
||
"application/json": {
|
||
"schema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"username": {
|
||
"type": "string"
|
||
},
|
||
"password": {
|
||
"type": "string"
|
||
},
|
||
"email": {
|
||
"type": "string"
|
||
},
|
||
"verification_code": {
|
||
"type": "string"
|
||
},
|
||
"aff_code": {
|
||
"type": "string"
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"responses": {
|
||
"200": {
|
||
"description": "成功",
|
||
"headers": {}
|
||
}
|
||
},
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"/api/user/login": {
|
||
"post": {
|
||
"summary": "用户登录",
|
||
"deprecated": false,
|
||
"description": "🔓 无需鉴权",
|
||
"tags": [
|
||
"用户认证"
|
||
],
|
||
"parameters": [],
|
||
"requestBody": {
|
||
"content": {
|
||
"application/json": {
|
||
"schema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"username": {
|
||
"type": "string"
|
||
},
|
||
"password": {
|
||
"type": "string"
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"responses": {
|
||
"200": {
|
||
"description": "成功",
|
||
"headers": {}
|
||
}
|
||
},
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"/api/user/login/2fa": {
|
||
"post": {
|
||
"summary": "两步验证登录",
|
||
"deprecated": false,
|
||
"description": "🔓 无需鉴权(登录流程)",
|
||
"tags": [
|
||
"用户认证",
|
||
"两步验证"
|
||
],
|
||
"parameters": [],
|
||
"requestBody": {
|
||
"content": {
|
||
"application/json": {
|
||
"schema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"code": {
|
||
"type": "string"
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"responses": {
|
||
"200": {
|
||
"description": "成功",
|
||
"headers": {}
|
||
}
|
||
},
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"/api/user/logout": {
|
||
"get": {
|
||
"summary": "用户登出",
|
||
"deprecated": false,
|
||
"description": "🔓 无需鉴权",
|
||
"tags": [
|
||
"用户认证"
|
||
],
|
||
"parameters": [],
|
||
"responses": {
|
||
"200": {
|
||
"description": "成功",
|
||
"headers": {}
|
||
}
|
||
},
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"/api/user/groups": {
|
||
"get": {
|
||
"summary": "获取用户分组列表",
|
||
"deprecated": false,
|
||
"description": "🔓 无需鉴权",
|
||
"tags": [
|
||
"用户认证"
|
||
],
|
||
"parameters": [],
|
||
"responses": {
|
||
"200": {
|
||
"description": "成功",
|
||
"headers": {}
|
||
}
|
||
},
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"/api/user/passkey/login/begin": {
|
||
"post": {
|
||
"summary": "开始Passkey登录",
|
||
"deprecated": false,
|
||
"description": "🔓 无需鉴权",
|
||
"tags": [
|
||
"用户认证"
|
||
],
|
||
"parameters": [],
|
||
"responses": {
|
||
"200": {
|
||
"description": "成功",
|
||
"headers": {}
|
||
}
|
||
},
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"/api/user/passkey/login/finish": {
|
||
"post": {
|
||
"summary": "完成Passkey登录",
|
||
"deprecated": false,
|
||
"description": "🔓 无需鉴权",
|
||
"tags": [
|
||
"用户认证"
|
||
],
|
||
"parameters": [],
|
||
"responses": {
|
||
"200": {
|
||
"description": "成功",
|
||
"headers": {}
|
||
}
|
||
},
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"/api/oauth/github": {
|
||
"get": {
|
||
"summary": "GitHub OAuth登录",
|
||
"deprecated": false,
|
||
"description": "🔓 无需鉴权(OAuth回调)",
|
||
"tags": [
|
||
"OAuth"
|
||
],
|
||
"parameters": [
|
||
{
|
||
"name": "code",
|
||
"in": "query",
|
||
"description": "",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "string"
|
||
}
|
||
}
|
||
],
|
||
"responses": {
|
||
"200": {
|
||
"description": "成功",
|
||
"headers": {}
|
||
}
|
||
},
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"/api/oauth/discord": {
|
||
"get": {
|
||
"summary": "Discord OAuth登录",
|
||
"deprecated": false,
|
||
"description": "🔓 无需鉴权(OAuth回调)",
|
||
"tags": [
|
||
"OAuth"
|
||
],
|
||
"parameters": [
|
||
{
|
||
"name": "code",
|
||
"in": "query",
|
||
"description": "",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "string"
|
||
}
|
||
}
|
||
],
|
||
"responses": {
|
||
"200": {
|
||
"description": "成功",
|
||
"headers": {}
|
||
}
|
||
},
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"/api/oauth/oidc": {
|
||
"get": {
|
||
"summary": "OIDC登录",
|
||
"deprecated": false,
|
||
"description": "🔓 无需鉴权(OAuth回调)",
|
||
"tags": [
|
||
"OAuth"
|
||
],
|
||
"parameters": [],
|
||
"responses": {
|
||
"200": {
|
||
"description": "成功",
|
||
"headers": {}
|
||
}
|
||
},
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"/api/oauth/linuxdo": {
|
||
"get": {
|
||
"summary": "LinuxDO OAuth登录",
|
||
"deprecated": false,
|
||
"description": "🔓 无需鉴权(OAuth回调)",
|
||
"tags": [
|
||
"OAuth"
|
||
],
|
||
"parameters": [],
|
||
"responses": {
|
||
"200": {
|
||
"description": "成功",
|
||
"headers": {}
|
||
}
|
||
},
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"/api/oauth/state": {
|
||
"get": {
|
||
"summary": "生成OAuth State",
|
||
"deprecated": false,
|
||
"description": "🔓 无需鉴权",
|
||
"tags": [
|
||
"OAuth"
|
||
],
|
||
"parameters": [],
|
||
"responses": {
|
||
"200": {
|
||
"description": "成功",
|
||
"headers": {}
|
||
}
|
||
},
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"/api/oauth/wechat": {
|
||
"get": {
|
||
"summary": "微信OAuth登录",
|
||
"deprecated": false,
|
||
"description": "🔓 无需鉴权(OAuth回调)",
|
||
"tags": [
|
||
"OAuth"
|
||
],
|
||
"parameters": [],
|
||
"responses": {
|
||
"200": {
|
||
"description": "成功",
|
||
"headers": {}
|
||
}
|
||
},
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"/api/oauth/wechat/bind": {
|
||
"get": {
|
||
"summary": "绑定微信",
|
||
"deprecated": false,
|
||
"description": "🔓 无需鉴权",
|
||
"tags": [
|
||
"OAuth"
|
||
],
|
||
"parameters": [],
|
||
"responses": {
|
||
"200": {
|
||
"description": "成功",
|
||
"headers": {}
|
||
}
|
||
},
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"/api/oauth/email/bind": {
|
||
"get": {
|
||
"summary": "绑定邮箱",
|
||
"deprecated": false,
|
||
"description": "🔓 无需鉴权",
|
||
"tags": [
|
||
"OAuth"
|
||
],
|
||
"parameters": [
|
||
{
|
||
"name": "email",
|
||
"in": "query",
|
||
"description": "",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "string"
|
||
}
|
||
},
|
||
{
|
||
"name": "code",
|
||
"in": "query",
|
||
"description": "",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "string"
|
||
}
|
||
}
|
||
],
|
||
"responses": {
|
||
"200": {
|
||
"description": "成功",
|
||
"headers": {}
|
||
}
|
||
},
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"/api/oauth/telegram/login": {
|
||
"get": {
|
||
"summary": "Telegram登录",
|
||
"deprecated": false,
|
||
"description": "🔓 无需鉴权(OAuth回调)",
|
||
"tags": [
|
||
"OAuth"
|
||
],
|
||
"parameters": [],
|
||
"responses": {
|
||
"200": {
|
||
"description": "成功",
|
||
"headers": {}
|
||
}
|
||
},
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"/api/oauth/telegram/bind": {
|
||
"get": {
|
||
"summary": "绑定Telegram",
|
||
"deprecated": false,
|
||
"description": "🔓 无需鉴权",
|
||
"tags": [
|
||
"OAuth"
|
||
],
|
||
"parameters": [],
|
||
"responses": {
|
||
"200": {
|
||
"description": "成功",
|
||
"headers": {}
|
||
}
|
||
},
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"/api/user/self/groups": {
|
||
"get": {
|
||
"summary": "获取当前用户分组",
|
||
"deprecated": false,
|
||
"description": "🔐 需要登录(User权限)",
|
||
"tags": [
|
||
"用户管理"
|
||
],
|
||
"parameters": [],
|
||
"responses": {
|
||
"200": {
|
||
"description": "成功",
|
||
"headers": {}
|
||
}
|
||
},
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"/api/user/self": {
|
||
"get": {
|
||
"summary": "获取当前用户信息",
|
||
"deprecated": false,
|
||
"description": "🔐 需要登录(User权限)",
|
||
"tags": [
|
||
"用户管理"
|
||
],
|
||
"parameters": [],
|
||
"responses": {
|
||
"200": {
|
||
"description": "成功",
|
||
"headers": {}
|
||
}
|
||
},
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
},
|
||
"put": {
|
||
"summary": "更新当前用户信息",
|
||
"deprecated": false,
|
||
"description": "🔐 需要登录(User权限)",
|
||
"tags": [
|
||
"用户管理"
|
||
],
|
||
"parameters": [],
|
||
"requestBody": {
|
||
"content": {
|
||
"application/json": {
|
||
"schema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"username": {
|
||
"type": "string"
|
||
},
|
||
"display_name": {
|
||
"type": "string"
|
||
},
|
||
"password": {
|
||
"type": "string"
|
||
},
|
||
"original_password": {
|
||
"type": "string"
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"responses": {
|
||
"200": {
|
||
"description": "成功",
|
||
"headers": {}
|
||
}
|
||
},
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
},
|
||
"delete": {
|
||
"summary": "注销当前用户",
|
||
"deprecated": false,
|
||
"description": "🔐 需要登录(User权限)",
|
||
"tags": [
|
||
"用户管理"
|
||
],
|
||
"parameters": [],
|
||
"responses": {
|
||
"200": {
|
||
"description": "成功",
|
||
"headers": {}
|
||
}
|
||
},
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"/api/user/models": {
|
||
"get": {
|
||
"summary": "获取用户可用模型",
|
||
"deprecated": false,
|
||
"description": "🔐 需要登录(User权限)",
|
||
"tags": [
|
||
"用户管理"
|
||
],
|
||
"parameters": [],
|
||
"responses": {
|
||
"200": {
|
||
"description": "成功",
|
||
"headers": {}
|
||
}
|
||
},
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"/api/user/token": {
|
||
"get": {
|
||
"summary": "生成访问令牌",
|
||
"deprecated": false,
|
||
"description": "🔐 需要登录(User权限)",
|
||
"tags": [
|
||
"用户管理"
|
||
],
|
||
"parameters": [],
|
||
"responses": {
|
||
"200": {
|
||
"description": "成功",
|
||
"headers": {}
|
||
}
|
||
},
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"/api/user/passkey": {
|
||
"get": {
|
||
"summary": "获取Passkey状态",
|
||
"deprecated": false,
|
||
"description": "🔐 需要登录(User权限)",
|
||
"tags": [
|
||
"用户管理"
|
||
],
|
||
"parameters": [],
|
||
"responses": {
|
||
"200": {
|
||
"description": "成功",
|
||
"headers": {}
|
||
}
|
||
},
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
},
|
||
"delete": {
|
||
"summary": "删除Passkey",
|
||
"deprecated": false,
|
||
"description": "🔐 需要登录(User权限)",
|
||
"tags": [
|
||
"用户管理"
|
||
],
|
||
"parameters": [],
|
||
"responses": {
|
||
"200": {
|
||
"description": "成功",
|
||
"headers": {}
|
||
}
|
||
},
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"/api/user/passkey/register/begin": {
|
||
"post": {
|
||
"summary": "开始注册Passkey",
|
||
"deprecated": false,
|
||
"description": "🔐 需要登录(User权限)",
|
||
"tags": [
|
||
"用户管理"
|
||
],
|
||
"parameters": [],
|
||
"responses": {
|
||
"200": {
|
||
"description": "成功",
|
||
"headers": {}
|
||
}
|
||
},
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"/api/user/passkey/register/finish": {
|
||
"post": {
|
||
"summary": "完成注册Passkey",
|
||
"deprecated": false,
|
||
"description": "🔐 需要登录(User权限)",
|
||
"tags": [
|
||
"用户管理"
|
||
],
|
||
"parameters": [],
|
||
"responses": {
|
||
"200": {
|
||
"description": "成功",
|
||
"headers": {}
|
||
}
|
||
},
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"/api/user/passkey/verify/begin": {
|
||
"post": {
|
||
"summary": "开始验证Passkey",
|
||
"deprecated": false,
|
||
"description": "🔐 需要登录(User权限)",
|
||
"tags": [
|
||
"用户管理"
|
||
],
|
||
"parameters": [],
|
||
"responses": {
|
||
"200": {
|
||
"description": "成功",
|
||
"headers": {}
|
||
}
|
||
},
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"/api/user/passkey/verify/finish": {
|
||
"post": {
|
||
"summary": "完成验证Passkey",
|
||
"deprecated": false,
|
||
"description": "🔐 需要登录(User权限)",
|
||
"tags": [
|
||
"用户管理"
|
||
],
|
||
"parameters": [],
|
||
"responses": {
|
||
"200": {
|
||
"description": "成功",
|
||
"headers": {}
|
||
}
|
||
},
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"/api/user/aff": {
|
||
"get": {
|
||
"summary": "获取邀请码",
|
||
"deprecated": false,
|
||
"description": "🔐 需要登录(User权限)",
|
||
"tags": [
|
||
"用户管理"
|
||
],
|
||
"parameters": [],
|
||
"responses": {
|
||
"200": {
|
||
"description": "成功",
|
||
"headers": {}
|
||
}
|
||
},
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"/api/user/aff_transfer": {
|
||
"post": {
|
||
"summary": "转换邀请额度",
|
||
"deprecated": false,
|
||
"description": "🔐 需要登录(User权限)",
|
||
"tags": [
|
||
"用户管理"
|
||
],
|
||
"parameters": [],
|
||
"requestBody": {
|
||
"content": {
|
||
"application/json": {
|
||
"schema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"quota": {
|
||
"type": "integer"
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"responses": {
|
||
"200": {
|
||
"description": "成功",
|
||
"headers": {}
|
||
}
|
||
},
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"/api/user/setting": {
|
||
"put": {
|
||
"summary": "更新用户设置",
|
||
"deprecated": false,
|
||
"description": "🔐 需要登录(User权限)",
|
||
"tags": [
|
||
"用户管理"
|
||
],
|
||
"parameters": [],
|
||
"requestBody": {
|
||
"content": {
|
||
"application/json": {
|
||
"schema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"notify_type": {
|
||
"type": "string"
|
||
},
|
||
"quota_warning_threshold": {
|
||
"type": "number"
|
||
},
|
||
"webhook_url": {
|
||
"type": "string"
|
||
},
|
||
"notification_email": {
|
||
"type": "string"
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"responses": {
|
||
"200": {
|
||
"description": "成功",
|
||
"headers": {}
|
||
}
|
||
},
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"/api/user/topup": {
|
||
"get": {
|
||
"summary": "获取所有充值记录",
|
||
"deprecated": false,
|
||
"description": "👨💼 需要管理员权限(Admin)",
|
||
"tags": [
|
||
"用户管理"
|
||
],
|
||
"parameters": [],
|
||
"responses": {
|
||
"200": {
|
||
"description": "成功",
|
||
"headers": {}
|
||
}
|
||
},
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"/api/user/": {
|
||
"get": {
|
||
"summary": "获取所有用户",
|
||
"deprecated": false,
|
||
"description": "👨💼 需要管理员权限(Admin)",
|
||
"tags": [
|
||
"用户管理"
|
||
],
|
||
"parameters": [
|
||
{
|
||
"name": "p",
|
||
"in": "query",
|
||
"description": "",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "integer"
|
||
}
|
||
},
|
||
{
|
||
"name": "page_size",
|
||
"in": "query",
|
||
"description": "",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "integer"
|
||
}
|
||
}
|
||
],
|
||
"responses": {
|
||
"200": {
|
||
"description": "成功",
|
||
"headers": {}
|
||
}
|
||
},
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
},
|
||
"post": {
|
||
"summary": "创建用户",
|
||
"deprecated": false,
|
||
"description": "👨💼 需要管理员权限(Admin)",
|
||
"tags": [
|
||
"用户管理"
|
||
],
|
||
"parameters": [],
|
||
"requestBody": {
|
||
"content": {
|
||
"application/json": {
|
||
"schema": {
|
||
"$ref": "#/components/schemas/User"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"responses": {
|
||
"200": {
|
||
"description": "成功",
|
||
"headers": {}
|
||
}
|
||
},
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
},
|
||
"put": {
|
||
"summary": "更新用户",
|
||
"deprecated": false,
|
||
"description": "👨💼 需要管理员权限(Admin)",
|
||
"tags": [
|
||
"用户管理"
|
||
],
|
||
"parameters": [],
|
||
"requestBody": {
|
||
"content": {
|
||
"application/json": {
|
||
"schema": {
|
||
"$ref": "#/components/schemas/User"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"responses": {
|
||
"200": {
|
||
"description": "成功",
|
||
"headers": {}
|
||
}
|
||
},
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"/api/user/topup/complete": {
|
||
"post": {
|
||
"summary": "管理员完成充值",
|
||
"deprecated": false,
|
||
"description": "👨💼 需要管理员权限(Admin)",
|
||
"tags": [
|
||
"用户管理"
|
||
],
|
||
"parameters": [],
|
||
"responses": {
|
||
"200": {
|
||
"description": "成功",
|
||
"headers": {}
|
||
}
|
||
},
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"/api/user/search": {
|
||
"get": {
|
||
"summary": "搜索用户",
|
||
"deprecated": false,
|
||
"description": "👨💼 需要管理员权限(Admin)",
|
||
"tags": [
|
||
"用户管理"
|
||
],
|
||
"parameters": [
|
||
{
|
||
"name": "keyword",
|
||
"in": "query",
|
||
"description": "",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "string"
|
||
}
|
||
},
|
||
{
|
||
"name": "group",
|
||
"in": "query",
|
||
"description": "",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "string"
|
||
}
|
||
}
|
||
],
|
||
"responses": {
|
||
"200": {
|
||
"description": "成功",
|
||
"headers": {}
|
||
}
|
||
},
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"/api/user/{id}": {
|
||
"get": {
|
||
"summary": "获取指定用户",
|
||
"deprecated": false,
|
||
"description": "👨💼 需要管理员权限(Admin)",
|
||
"tags": [
|
||
"用户管理"
|
||
],
|
||
"parameters": [
|
||
{
|
||
"name": "id",
|
||
"in": "path",
|
||
"description": "",
|
||
"required": true,
|
||
"example": 0,
|
||
"schema": {
|
||
"type": "integer"
|
||
}
|
||
}
|
||
],
|
||
"responses": {
|
||
"200": {
|
||
"description": "成功",
|
||
"headers": {}
|
||
}
|
||
},
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
},
|
||
"delete": {
|
||
"summary": "删除用户",
|
||
"deprecated": false,
|
||
"description": "👨💼 需要管理员权限(Admin)",
|
||
"tags": [
|
||
"用户管理"
|
||
],
|
||
"parameters": [
|
||
{
|
||
"name": "id",
|
||
"in": "path",
|
||
"description": "",
|
||
"required": true,
|
||
"example": 0,
|
||
"schema": {
|
||
"type": "integer"
|
||
}
|
||
}
|
||
],
|
||
"responses": {
|
||
"200": {
|
||
"description": "成功",
|
||
"headers": {}
|
||
}
|
||
},
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"/api/user/{id}/reset_passkey": {
|
||
"delete": {
|
||
"summary": "管理员重置用户Passkey",
|
||
"deprecated": false,
|
||
"description": "👨💼 需要管理员权限(Admin)",
|
||
"tags": [
|
||
"用户管理"
|
||
],
|
||
"parameters": [
|
||
{
|
||
"name": "id",
|
||
"in": "path",
|
||
"description": "",
|
||
"required": true,
|
||
"example": 0,
|
||
"schema": {
|
||
"type": "integer"
|
||
}
|
||
}
|
||
],
|
||
"responses": {
|
||
"200": {
|
||
"description": "成功",
|
||
"headers": {}
|
||
}
|
||
},
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"/api/user/{id}/2fa": {
|
||
"delete": {
|
||
"summary": "管理员禁用用户2FA",
|
||
"deprecated": false,
|
||
"description": "👨💼 需要管理员权限(Admin)",
|
||
"tags": [
|
||
"用户管理",
|
||
"两步验证"
|
||
],
|
||
"parameters": [
|
||
{
|
||
"name": "id",
|
||
"in": "path",
|
||
"description": "",
|
||
"required": true,
|
||
"example": 0,
|
||
"schema": {
|
||
"type": "integer"
|
||
}
|
||
}
|
||
],
|
||
"responses": {
|
||
"200": {
|
||
"description": "成功",
|
||
"headers": {}
|
||
}
|
||
},
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"/api/user/manage": {
|
||
"post": {
|
||
"summary": "管理用户状态",
|
||
"deprecated": false,
|
||
"description": "👨💼 需要管理员权限(Admin)",
|
||
"tags": [
|
||
"用户管理"
|
||
],
|
||
"parameters": [],
|
||
"requestBody": {
|
||
"content": {
|
||
"application/json": {
|
||
"schema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"id": {
|
||
"type": "integer"
|
||
},
|
||
"action": {
|
||
"type": "string",
|
||
"enum": [
|
||
"disable",
|
||
"enable",
|
||
"delete",
|
||
"promote",
|
||
"demote"
|
||
]
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"responses": {
|
||
"200": {
|
||
"description": "成功",
|
||
"headers": {}
|
||
}
|
||
},
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"/api/user/topup/info": {
|
||
"get": {
|
||
"summary": "获取充值信息",
|
||
"deprecated": false,
|
||
"description": "🔐 需要登录(User权限)",
|
||
"tags": [
|
||
"充值"
|
||
],
|
||
"parameters": [],
|
||
"responses": {
|
||
"200": {
|
||
"description": "成功",
|
||
"headers": {}
|
||
}
|
||
},
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"/api/user/topup/self": {
|
||
"get": {
|
||
"summary": "获取用户充值记录",
|
||
"deprecated": false,
|
||
"description": "🔐 需要登录(User权限)",
|
||
"tags": [
|
||
"充值"
|
||
],
|
||
"parameters": [],
|
||
"responses": {
|
||
"200": {
|
||
"description": "成功",
|
||
"headers": {}
|
||
}
|
||
},
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"/api/user/pay": {
|
||
"post": {
|
||
"summary": "发起易支付",
|
||
"deprecated": false,
|
||
"description": "🔐 需要登录(User权限)",
|
||
"tags": [
|
||
"充值"
|
||
],
|
||
"parameters": [],
|
||
"responses": {
|
||
"200": {
|
||
"description": "成功",
|
||
"headers": {}
|
||
}
|
||
},
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"/api/user/amount": {
|
||
"post": {
|
||
"summary": "获取支付金额",
|
||
"deprecated": false,
|
||
"description": "🔐 需要登录(User权限)",
|
||
"tags": [
|
||
"充值"
|
||
],
|
||
"parameters": [],
|
||
"responses": {
|
||
"200": {
|
||
"description": "成功",
|
||
"headers": {}
|
||
}
|
||
},
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"/api/user/stripe/pay": {
|
||
"post": {
|
||
"summary": "发起Stripe支付",
|
||
"deprecated": false,
|
||
"description": "🔐 需要登录(User权限)",
|
||
"tags": [
|
||
"充值"
|
||
],
|
||
"parameters": [],
|
||
"responses": {
|
||
"200": {
|
||
"description": "成功",
|
||
"headers": {}
|
||
}
|
||
},
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"/api/user/stripe/amount": {
|
||
"post": {
|
||
"summary": "获取Stripe支付金额",
|
||
"deprecated": false,
|
||
"description": "🔐 需要登录(User权限)",
|
||
"tags": [
|
||
"充值"
|
||
],
|
||
"parameters": [],
|
||
"responses": {
|
||
"200": {
|
||
"description": "成功",
|
||
"headers": {}
|
||
}
|
||
},
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"/api/user/creem/pay": {
|
||
"post": {
|
||
"summary": "发起Creem支付",
|
||
"deprecated": false,
|
||
"description": "🔐 需要登录(User权限)",
|
||
"tags": [
|
||
"充值"
|
||
],
|
||
"parameters": [],
|
||
"responses": {
|
||
"200": {
|
||
"description": "成功",
|
||
"headers": {}
|
||
}
|
||
},
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"/api/user/epay/notify": {
|
||
"get": {
|
||
"summary": "易支付回调",
|
||
"deprecated": false,
|
||
"description": "🔓 无需鉴权(支付回调)",
|
||
"tags": [
|
||
"充值"
|
||
],
|
||
"parameters": [],
|
||
"responses": {
|
||
"200": {
|
||
"description": "成功",
|
||
"headers": {}
|
||
}
|
||
},
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"/api/stripe/webhook": {
|
||
"post": {
|
||
"summary": "Stripe Webhook",
|
||
"deprecated": false,
|
||
"description": "🔓 无需鉴权(Webhook回调)",
|
||
"tags": [
|
||
"充值"
|
||
],
|
||
"parameters": [],
|
||
"responses": {
|
||
"200": {
|
||
"description": "成功",
|
||
"headers": {}
|
||
}
|
||
},
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"/api/creem/webhook": {
|
||
"post": {
|
||
"summary": "Creem Webhook",
|
||
"deprecated": false,
|
||
"description": "🔓 无需鉴权(Webhook回调)",
|
||
"tags": [
|
||
"充值"
|
||
],
|
||
"parameters": [],
|
||
"responses": {
|
||
"200": {
|
||
"description": "成功",
|
||
"headers": {}
|
||
}
|
||
},
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"/api/user/2fa/status": {
|
||
"get": {
|
||
"summary": "获取2FA状态",
|
||
"deprecated": false,
|
||
"description": "🔐 需要登录(User权限)",
|
||
"tags": [
|
||
"两步验证"
|
||
],
|
||
"parameters": [],
|
||
"responses": {
|
||
"200": {
|
||
"description": "成功",
|
||
"headers": {}
|
||
}
|
||
},
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"/api/user/2fa/setup": {
|
||
"post": {
|
||
"summary": "设置2FA",
|
||
"deprecated": false,
|
||
"description": "🔐 需要登录(User权限)",
|
||
"tags": [
|
||
"两步验证"
|
||
],
|
||
"parameters": [],
|
||
"responses": {
|
||
"200": {
|
||
"description": "成功",
|
||
"headers": {}
|
||
}
|
||
},
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"/api/user/2fa/enable": {
|
||
"post": {
|
||
"summary": "启用2FA",
|
||
"deprecated": false,
|
||
"description": "🔐 需要登录(User权限)",
|
||
"tags": [
|
||
"两步验证"
|
||
],
|
||
"parameters": [],
|
||
"requestBody": {
|
||
"content": {
|
||
"application/json": {
|
||
"schema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"code": {
|
||
"type": "string"
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"responses": {
|
||
"200": {
|
||
"description": "成功",
|
||
"headers": {}
|
||
}
|
||
},
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"/api/user/2fa/disable": {
|
||
"post": {
|
||
"summary": "禁用2FA",
|
||
"deprecated": false,
|
||
"description": "🔐 需要登录(User权限)",
|
||
"tags": [
|
||
"两步验证"
|
||
],
|
||
"parameters": [],
|
||
"requestBody": {
|
||
"content": {
|
||
"application/json": {
|
||
"schema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"code": {
|
||
"type": "string"
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"responses": {
|
||
"200": {
|
||
"description": "成功",
|
||
"headers": {}
|
||
}
|
||
},
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"/api/user/2fa/backup_codes": {
|
||
"post": {
|
||
"summary": "重新生成备用码",
|
||
"deprecated": false,
|
||
"description": "🔐 需要登录(User权限)",
|
||
"tags": [
|
||
"两步验证"
|
||
],
|
||
"parameters": [],
|
||
"responses": {
|
||
"200": {
|
||
"description": "成功",
|
||
"headers": {}
|
||
}
|
||
},
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"/api/user/2fa/stats": {
|
||
"get": {
|
||
"summary": "获取2FA统计",
|
||
"deprecated": false,
|
||
"description": "👨💼 需要管理员权限(Admin)",
|
||
"tags": [
|
||
"两步验证"
|
||
],
|
||
"parameters": [],
|
||
"responses": {
|
||
"200": {
|
||
"description": "成功",
|
||
"headers": {}
|
||
}
|
||
},
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"/api/verify": {
|
||
"post": {
|
||
"summary": "通用安全验证",
|
||
"deprecated": false,
|
||
"description": "🔐 需要登录(User权限)",
|
||
"tags": [
|
||
"安全验证"
|
||
],
|
||
"parameters": [],
|
||
"responses": {
|
||
"200": {
|
||
"description": "成功",
|
||
"headers": {}
|
||
}
|
||
},
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"/api/verify/status": {
|
||
"get": {
|
||
"summary": "获取验证状态",
|
||
"deprecated": false,
|
||
"description": "🔐 需要登录(User权限)",
|
||
"tags": [
|
||
"安全验证"
|
||
],
|
||
"parameters": [],
|
||
"responses": {
|
||
"200": {
|
||
"description": "成功",
|
||
"headers": {}
|
||
}
|
||
},
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"/api/channel/": {
|
||
"get": {
|
||
"summary": "获取所有渠道",
|
||
"deprecated": false,
|
||
"description": "👨💼 需要管理员权限(Admin)",
|
||
"tags": [
|
||
"渠道管理"
|
||
],
|
||
"parameters": [
|
||
{
|
||
"name": "p",
|
||
"in": "query",
|
||
"description": "",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "integer"
|
||
}
|
||
},
|
||
{
|
||
"name": "page_size",
|
||
"in": "query",
|
||
"description": "",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "integer"
|
||
}
|
||
},
|
||
{
|
||
"name": "id_sort",
|
||
"in": "query",
|
||
"description": "",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "boolean"
|
||
}
|
||
},
|
||
{
|
||
"name": "tag_mode",
|
||
"in": "query",
|
||
"description": "",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "boolean"
|
||
}
|
||
},
|
||
{
|
||
"name": "status",
|
||
"in": "query",
|
||
"description": "",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "string"
|
||
}
|
||
},
|
||
{
|
||
"name": "type",
|
||
"in": "query",
|
||
"description": "",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "integer"
|
||
}
|
||
}
|
||
],
|
||
"responses": {
|
||
"200": {
|
||
"description": "成功",
|
||
"headers": {}
|
||
}
|
||
},
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
},
|
||
"post": {
|
||
"summary": "添加渠道",
|
||
"deprecated": false,
|
||
"description": "👨💼 需要管理员权限(Admin)",
|
||
"tags": [
|
||
"渠道管理"
|
||
],
|
||
"parameters": [],
|
||
"requestBody": {
|
||
"content": {
|
||
"application/json": {
|
||
"schema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"mode": {
|
||
"type": "string",
|
||
"enum": [
|
||
"single",
|
||
"batch",
|
||
"multi_to_single"
|
||
]
|
||
},
|
||
"channel": {
|
||
"$ref": "#/components/schemas/Channel"
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"responses": {
|
||
"200": {
|
||
"description": "成功",
|
||
"headers": {}
|
||
}
|
||
},
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
},
|
||
"put": {
|
||
"summary": "更新渠道",
|
||
"deprecated": false,
|
||
"description": "👨💼 需要管理员权限(Admin)",
|
||
"tags": [
|
||
"渠道管理"
|
||
],
|
||
"parameters": [],
|
||
"requestBody": {
|
||
"content": {
|
||
"application/json": {
|
||
"schema": {
|
||
"$ref": "#/components/schemas/Channel"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"responses": {
|
||
"200": {
|
||
"description": "成功",
|
||
"headers": {}
|
||
}
|
||
},
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"/api/channel/search": {
|
||
"get": {
|
||
"summary": "搜索渠道",
|
||
"deprecated": false,
|
||
"description": "👨💼 需要管理员权限(Admin)",
|
||
"tags": [
|
||
"渠道管理"
|
||
],
|
||
"parameters": [
|
||
{
|
||
"name": "keyword",
|
||
"in": "query",
|
||
"description": "",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "string"
|
||
}
|
||
},
|
||
{
|
||
"name": "group",
|
||
"in": "query",
|
||
"description": "",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "string"
|
||
}
|
||
},
|
||
{
|
||
"name": "model",
|
||
"in": "query",
|
||
"description": "",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "string"
|
||
}
|
||
}
|
||
],
|
||
"responses": {
|
||
"200": {
|
||
"description": "成功",
|
||
"headers": {}
|
||
}
|
||
},
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"/api/channel/models": {
|
||
"get": {
|
||
"summary": "获取渠道模型列表",
|
||
"deprecated": false,
|
||
"description": "👨💼 需要管理员权限(Admin)",
|
||
"tags": [
|
||
"渠道管理"
|
||
],
|
||
"parameters": [],
|
||
"responses": {
|
||
"200": {
|
||
"description": "成功",
|
||
"headers": {}
|
||
}
|
||
},
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"/api/channel/models_enabled": {
|
||
"get": {
|
||
"summary": "获取已启用模型列表",
|
||
"deprecated": false,
|
||
"description": "👨💼 需要管理员权限(Admin)",
|
||
"tags": [
|
||
"渠道管理"
|
||
],
|
||
"parameters": [],
|
||
"responses": {
|
||
"200": {
|
||
"description": "成功",
|
||
"headers": {}
|
||
}
|
||
},
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"/api/channel/{id}": {
|
||
"get": {
|
||
"summary": "获取指定渠道",
|
||
"deprecated": false,
|
||
"description": "👨💼 需要管理员权限(Admin)",
|
||
"tags": [
|
||
"渠道管理"
|
||
],
|
||
"parameters": [
|
||
{
|
||
"name": "id",
|
||
"in": "path",
|
||
"description": "",
|
||
"required": true,
|
||
"example": 0,
|
||
"schema": {
|
||
"type": "integer"
|
||
}
|
||
}
|
||
],
|
||
"responses": {
|
||
"200": {
|
||
"description": "成功",
|
||
"headers": {}
|
||
}
|
||
},
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
},
|
||
"delete": {
|
||
"summary": "删除渠道",
|
||
"deprecated": false,
|
||
"description": "👨💼 需要管理员权限(Admin)",
|
||
"tags": [
|
||
"渠道管理"
|
||
],
|
||
"parameters": [
|
||
{
|
||
"name": "id",
|
||
"in": "path",
|
||
"description": "",
|
||
"required": true,
|
||
"example": 0,
|
||
"schema": {
|
||
"type": "integer"
|
||
}
|
||
}
|
||
],
|
||
"responses": {
|
||
"200": {
|
||
"description": "成功",
|
||
"headers": {}
|
||
}
|
||
},
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"/api/channel/{id}/key": {
|
||
"post": {
|
||
"summary": "获取渠道密钥",
|
||
"deprecated": false,
|
||
"description": "👑 需要超级管理员权限(Root)+ 安全验证",
|
||
"tags": [
|
||
"渠道管理"
|
||
],
|
||
"parameters": [
|
||
{
|
||
"name": "id",
|
||
"in": "path",
|
||
"description": "",
|
||
"required": true,
|
||
"example": 0,
|
||
"schema": {
|
||
"type": "integer"
|
||
}
|
||
}
|
||
],
|
||
"responses": {
|
||
"200": {
|
||
"description": "成功",
|
||
"headers": {}
|
||
}
|
||
},
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"/api/channel/test": {
|
||
"get": {
|
||
"summary": "测试所有渠道",
|
||
"deprecated": false,
|
||
"description": "👨💼 需要管理员权限(Admin)",
|
||
"tags": [
|
||
"渠道管理"
|
||
],
|
||
"parameters": [],
|
||
"responses": {
|
||
"200": {
|
||
"description": "成功",
|
||
"headers": {}
|
||
}
|
||
},
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"/api/channel/test/{id}": {
|
||
"get": {
|
||
"summary": "测试指定渠道",
|
||
"deprecated": false,
|
||
"description": "👨💼 需要管理员权限(Admin)",
|
||
"tags": [
|
||
"渠道管理"
|
||
],
|
||
"parameters": [
|
||
{
|
||
"name": "id",
|
||
"in": "path",
|
||
"description": "",
|
||
"required": true,
|
||
"example": 0,
|
||
"schema": {
|
||
"type": "integer"
|
||
}
|
||
}
|
||
],
|
||
"responses": {
|
||
"200": {
|
||
"description": "成功",
|
||
"headers": {}
|
||
}
|
||
},
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"/api/channel/update_balance": {
|
||
"get": {
|
||
"summary": "更新所有渠道余额",
|
||
"deprecated": false,
|
||
"description": "👨💼 需要管理员权限(Admin)",
|
||
"tags": [
|
||
"渠道管理"
|
||
],
|
||
"parameters": [],
|
||
"responses": {
|
||
"200": {
|
||
"description": "成功",
|
||
"headers": {}
|
||
}
|
||
},
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"/api/channel/update_balance/{id}": {
|
||
"get": {
|
||
"summary": "更新指定渠道余额",
|
||
"deprecated": false,
|
||
"description": "👨💼 需要管理员权限(Admin)",
|
||
"tags": [
|
||
"渠道管理"
|
||
],
|
||
"parameters": [
|
||
{
|
||
"name": "id",
|
||
"in": "path",
|
||
"description": "",
|
||
"required": true,
|
||
"example": 0,
|
||
"schema": {
|
||
"type": "integer"
|
||
}
|
||
}
|
||
],
|
||
"responses": {
|
||
"200": {
|
||
"description": "成功",
|
||
"headers": {}
|
||
}
|
||
},
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"/api/channel/disabled": {
|
||
"delete": {
|
||
"summary": "删除已禁用渠道",
|
||
"deprecated": false,
|
||
"description": "👨💼 需要管理员权限(Admin)",
|
||
"tags": [
|
||
"渠道管理"
|
||
],
|
||
"parameters": [],
|
||
"responses": {
|
||
"200": {
|
||
"description": "成功",
|
||
"headers": {}
|
||
}
|
||
},
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"/api/channel/batch": {
|
||
"post": {
|
||
"summary": "批量删除渠道",
|
||
"deprecated": false,
|
||
"description": "👨💼 需要管理员权限(Admin)",
|
||
"tags": [
|
||
"渠道管理"
|
||
],
|
||
"parameters": [],
|
||
"requestBody": {
|
||
"content": {
|
||
"application/json": {
|
||
"schema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"ids": {
|
||
"type": "array",
|
||
"items": {
|
||
"type": "integer"
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"responses": {
|
||
"200": {
|
||
"description": "成功",
|
||
"headers": {}
|
||
}
|
||
},
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"/api/channel/fix": {
|
||
"post": {
|
||
"summary": "修复渠道能力",
|
||
"deprecated": false,
|
||
"description": "👨💼 需要管理员权限(Admin)",
|
||
"tags": [
|
||
"渠道管理"
|
||
],
|
||
"parameters": [],
|
||
"responses": {
|
||
"200": {
|
||
"description": "成功",
|
||
"headers": {}
|
||
}
|
||
},
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"/api/channel/fetch_models/{id}": {
|
||
"get": {
|
||
"summary": "获取上游模型列表",
|
||
"deprecated": false,
|
||
"description": "👨💼 需要管理员权限(Admin)",
|
||
"tags": [
|
||
"渠道管理"
|
||
],
|
||
"parameters": [
|
||
{
|
||
"name": "id",
|
||
"in": "path",
|
||
"description": "",
|
||
"required": true,
|
||
"example": 0,
|
||
"schema": {
|
||
"type": "integer"
|
||
}
|
||
}
|
||
],
|
||
"responses": {
|
||
"200": {
|
||
"description": "成功",
|
||
"headers": {}
|
||
}
|
||
},
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"/api/channel/fetch_models": {
|
||
"post": {
|
||
"summary": "获取模型列表",
|
||
"deprecated": false,
|
||
"description": "👨💼 需要管理员权限(Admin)",
|
||
"tags": [
|
||
"渠道管理"
|
||
],
|
||
"parameters": [],
|
||
"requestBody": {
|
||
"content": {
|
||
"application/json": {
|
||
"schema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"base_url": {
|
||
"type": "string"
|
||
},
|
||
"type": {
|
||
"type": "integer"
|
||
},
|
||
"key": {
|
||
"type": "string"
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"responses": {
|
||
"200": {
|
||
"description": "成功",
|
||
"headers": {}
|
||
}
|
||
},
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"/api/channel/batch/tag": {
|
||
"post": {
|
||
"summary": "批量设置渠道标签",
|
||
"deprecated": false,
|
||
"description": "👨💼 需要管理员权限(Admin)",
|
||
"tags": [
|
||
"渠道管理"
|
||
],
|
||
"parameters": [],
|
||
"requestBody": {
|
||
"content": {
|
||
"application/json": {
|
||
"schema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"ids": {
|
||
"type": "array",
|
||
"items": {
|
||
"type": "integer"
|
||
}
|
||
},
|
||
"tag": {
|
||
"type": "string"
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"responses": {
|
||
"200": {
|
||
"description": "成功",
|
||
"headers": {}
|
||
}
|
||
},
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"/api/channel/tag/models": {
|
||
"get": {
|
||
"summary": "获取标签模型",
|
||
"deprecated": false,
|
||
"description": "👨💼 需要管理员权限(Admin)",
|
||
"tags": [
|
||
"渠道管理"
|
||
],
|
||
"parameters": [
|
||
{
|
||
"name": "tag",
|
||
"in": "query",
|
||
"description": "",
|
||
"required": true,
|
||
"schema": {
|
||
"type": "string"
|
||
}
|
||
}
|
||
],
|
||
"responses": {
|
||
"200": {
|
||
"description": "成功",
|
||
"headers": {}
|
||
}
|
||
},
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"/api/channel/tag/disabled": {
|
||
"post": {
|
||
"summary": "禁用标签渠道",
|
||
"deprecated": false,
|
||
"description": "👨💼 需要管理员权限(Admin)",
|
||
"tags": [
|
||
"渠道管理"
|
||
],
|
||
"parameters": [],
|
||
"requestBody": {
|
||
"content": {
|
||
"application/json": {
|
||
"schema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"tag": {
|
||
"type": "string"
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"responses": {
|
||
"200": {
|
||
"description": "成功",
|
||
"headers": {}
|
||
}
|
||
},
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"/api/channel/tag/enabled": {
|
||
"post": {
|
||
"summary": "启用标签渠道",
|
||
"deprecated": false,
|
||
"description": "👨💼 需要管理员权限(Admin)",
|
||
"tags": [
|
||
"渠道管理"
|
||
],
|
||
"parameters": [],
|
||
"requestBody": {
|
||
"content": {
|
||
"application/json": {
|
||
"schema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"tag": {
|
||
"type": "string"
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"responses": {
|
||
"200": {
|
||
"description": "成功",
|
||
"headers": {}
|
||
}
|
||
},
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"/api/channel/tag": {
|
||
"put": {
|
||
"summary": "编辑标签渠道",
|
||
"deprecated": false,
|
||
"description": "👨💼 需要管理员权限(Admin)",
|
||
"tags": [
|
||
"渠道管理"
|
||
],
|
||
"parameters": [],
|
||
"requestBody": {
|
||
"content": {
|
||
"application/json": {
|
||
"schema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"tag": {
|
||
"type": "string"
|
||
},
|
||
"new_tag": {
|
||
"type": "string"
|
||
},
|
||
"priority": {
|
||
"type": "integer"
|
||
},
|
||
"weight": {
|
||
"type": "integer"
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"responses": {
|
||
"200": {
|
||
"description": "成功",
|
||
"headers": {}
|
||
}
|
||
},
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"/api/channel/copy/{id}": {
|
||
"post": {
|
||
"summary": "复制渠道",
|
||
"deprecated": false,
|
||
"description": "👨💼 需要管理员权限(Admin)",
|
||
"tags": [
|
||
"渠道管理"
|
||
],
|
||
"parameters": [
|
||
{
|
||
"name": "id",
|
||
"in": "path",
|
||
"description": "",
|
||
"required": true,
|
||
"example": 0,
|
||
"schema": {
|
||
"type": "integer"
|
||
}
|
||
},
|
||
{
|
||
"name": "suffix",
|
||
"in": "query",
|
||
"description": "",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "string"
|
||
}
|
||
},
|
||
{
|
||
"name": "reset_balance",
|
||
"in": "query",
|
||
"description": "",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "boolean"
|
||
}
|
||
}
|
||
],
|
||
"responses": {
|
||
"200": {
|
||
"description": "成功",
|
||
"headers": {}
|
||
}
|
||
},
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"/api/channel/multi_key/manage": {
|
||
"post": {
|
||
"summary": "管理多密钥",
|
||
"deprecated": false,
|
||
"description": "👨💼 需要管理员权限(Admin)",
|
||
"tags": [
|
||
"渠道管理"
|
||
],
|
||
"parameters": [],
|
||
"requestBody": {
|
||
"content": {
|
||
"application/json": {
|
||
"schema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"channel_id": {
|
||
"type": "integer"
|
||
},
|
||
"action": {
|
||
"type": "string",
|
||
"enum": [
|
||
"get_key_status",
|
||
"disable_key",
|
||
"enable_key",
|
||
"delete_key",
|
||
"delete_disabled_keys",
|
||
"enable_all_keys",
|
||
"disable_all_keys"
|
||
]
|
||
},
|
||
"key_index": {
|
||
"type": "integer"
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"responses": {
|
||
"200": {
|
||
"description": "成功",
|
||
"headers": {}
|
||
}
|
||
},
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"/api/token/": {
|
||
"get": {
|
||
"summary": "获取所有令牌",
|
||
"deprecated": false,
|
||
"description": "🔐 需要登录(User权限)",
|
||
"tags": [
|
||
"令牌管理"
|
||
],
|
||
"parameters": [
|
||
{
|
||
"name": "p",
|
||
"in": "query",
|
||
"description": "",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "integer"
|
||
}
|
||
},
|
||
{
|
||
"name": "page_size",
|
||
"in": "query",
|
||
"description": "",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "integer"
|
||
}
|
||
}
|
||
],
|
||
"responses": {
|
||
"200": {
|
||
"description": "成功",
|
||
"headers": {}
|
||
}
|
||
},
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
},
|
||
"post": {
|
||
"summary": "创建令牌",
|
||
"deprecated": false,
|
||
"description": "🔐 需要登录(User权限)",
|
||
"tags": [
|
||
"令牌管理"
|
||
],
|
||
"parameters": [],
|
||
"requestBody": {
|
||
"content": {
|
||
"application/json": {
|
||
"schema": {
|
||
"$ref": "#/components/schemas/Token"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"responses": {
|
||
"200": {
|
||
"description": "成功",
|
||
"headers": {}
|
||
}
|
||
},
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
},
|
||
"put": {
|
||
"summary": "更新令牌",
|
||
"deprecated": false,
|
||
"description": "🔐 需要登录(User权限)",
|
||
"tags": [
|
||
"令牌管理"
|
||
],
|
||
"parameters": [],
|
||
"requestBody": {
|
||
"content": {
|
||
"application/json": {
|
||
"schema": {
|
||
"$ref": "#/components/schemas/Token"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"responses": {
|
||
"200": {
|
||
"description": "成功",
|
||
"headers": {}
|
||
}
|
||
},
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"/api/token/search": {
|
||
"get": {
|
||
"summary": "搜索令牌",
|
||
"deprecated": false,
|
||
"description": "🔐 需要登录(User权限)",
|
||
"tags": [
|
||
"令牌管理"
|
||
],
|
||
"parameters": [
|
||
{
|
||
"name": "keyword",
|
||
"in": "query",
|
||
"description": "",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "string"
|
||
}
|
||
}
|
||
],
|
||
"responses": {
|
||
"200": {
|
||
"description": "成功",
|
||
"headers": {}
|
||
}
|
||
},
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"/api/token/{id}": {
|
||
"get": {
|
||
"summary": "获取指定令牌",
|
||
"deprecated": false,
|
||
"description": "🔐 需要登录(User权限)",
|
||
"tags": [
|
||
"令牌管理"
|
||
],
|
||
"parameters": [
|
||
{
|
||
"name": "id",
|
||
"in": "path",
|
||
"description": "",
|
||
"required": true,
|
||
"example": 0,
|
||
"schema": {
|
||
"type": "integer"
|
||
}
|
||
}
|
||
],
|
||
"responses": {
|
||
"200": {
|
||
"description": "成功",
|
||
"headers": {}
|
||
}
|
||
},
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
},
|
||
"delete": {
|
||
"summary": "删除令牌",
|
||
"deprecated": false,
|
||
"description": "🔐 需要登录(User权限)",
|
||
"tags": [
|
||
"令牌管理"
|
||
],
|
||
"parameters": [
|
||
{
|
||
"name": "id",
|
||
"in": "path",
|
||
"description": "",
|
||
"required": true,
|
||
"example": 0,
|
||
"schema": {
|
||
"type": "integer"
|
||
}
|
||
}
|
||
],
|
||
"responses": {
|
||
"200": {
|
||
"description": "成功",
|
||
"headers": {}
|
||
}
|
||
},
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"/api/token/batch": {
|
||
"post": {
|
||
"summary": "批量删除令牌",
|
||
"deprecated": false,
|
||
"description": "🔐 需要登录(User权限)",
|
||
"tags": [
|
||
"令牌管理"
|
||
],
|
||
"parameters": [],
|
||
"requestBody": {
|
||
"content": {
|
||
"application/json": {
|
||
"schema": {
|
||
"type": "object",
|
||
"properties": {
|
||
"ids": {
|
||
"type": "array",
|
||
"items": {
|
||
"type": "integer"
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"responses": {
|
||
"200": {
|
||
"description": "成功",
|
||
"headers": {}
|
||
}
|
||
},
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"/api/usage/token/": {
|
||
"get": {
|
||
"summary": "获取令牌使用情况",
|
||
"deprecated": false,
|
||
"description": "🔑 需要令牌认证(TokenAuth)",
|
||
"tags": [
|
||
"令牌管理"
|
||
],
|
||
"parameters": [
|
||
{
|
||
"name": "Authorization",
|
||
"in": "header",
|
||
"description": "",
|
||
"required": false,
|
||
"example": "",
|
||
"schema": {
|
||
"type": "string"
|
||
}
|
||
}
|
||
],
|
||
"responses": {
|
||
"200": {
|
||
"description": "成功",
|
||
"headers": {}
|
||
}
|
||
},
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"/api/redemption/": {
|
||
"get": {
|
||
"summary": "获取所有兑换码",
|
||
"deprecated": false,
|
||
"description": "👨💼 需要管理员权限(Admin)",
|
||
"tags": [
|
||
"兑换码"
|
||
],
|
||
"parameters": [
|
||
{
|
||
"name": "p",
|
||
"in": "query",
|
||
"description": "",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "integer"
|
||
}
|
||
},
|
||
{
|
||
"name": "page_size",
|
||
"in": "query",
|
||
"description": "",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "integer"
|
||
}
|
||
}
|
||
],
|
||
"responses": {
|
||
"200": {
|
||
"description": "成功",
|
||
"headers": {}
|
||
}
|
||
},
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
},
|
||
"post": {
|
||
"summary": "创建兑换码",
|
||
"deprecated": false,
|
||
"description": "👨💼 需要管理员权限(Admin)",
|
||
"tags": [
|
||
"兑换码"
|
||
],
|
||
"parameters": [],
|
||
"requestBody": {
|
||
"content": {
|
||
"application/json": {
|
||
"schema": {
|
||
"$ref": "#/components/schemas/Redemption"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"responses": {
|
||
"200": {
|
||
"description": "成功",
|
||
"headers": {}
|
||
}
|
||
},
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
},
|
||
"put": {
|
||
"summary": "更新兑换码",
|
||
"deprecated": false,
|
||
"description": "👨💼 需要管理员权限(Admin)",
|
||
"tags": [
|
||
"兑换码"
|
||
],
|
||
"parameters": [],
|
||
"requestBody": {
|
||
"content": {
|
||
"application/json": {
|
||
"schema": {
|
||
"$ref": "#/components/schemas/Redemption"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"responses": {
|
||
"200": {
|
||
"description": "成功",
|
||
"headers": {}
|
||
}
|
||
},
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"/api/redemption/search": {
|
||
"get": {
|
||
"summary": "搜索兑换码",
|
||
"deprecated": false,
|
||
"description": "👨💼 需要管理员权限(Admin)",
|
||
"tags": [
|
||
"兑换码"
|
||
],
|
||
"parameters": [
|
||
{
|
||
"name": "keyword",
|
||
"in": "query",
|
||
"description": "",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "string"
|
||
}
|
||
}
|
||
],
|
||
"responses": {
|
||
"200": {
|
||
"description": "成功",
|
||
"headers": {}
|
||
}
|
||
},
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"/api/redemption/{id}": {
|
||
"get": {
|
||
"summary": "获取指定兑换码",
|
||
"deprecated": false,
|
||
"description": "👨💼 需要管理员权限(Admin)",
|
||
"tags": [
|
||
"兑换码"
|
||
],
|
||
"parameters": [
|
||
{
|
||
"name": "id",
|
||
"in": "path",
|
||
"description": "",
|
||
"required": true,
|
||
"example": 0,
|
||
"schema": {
|
||
"type": "integer"
|
||
}
|
||
}
|
||
],
|
||
"responses": {
|
||
"200": {
|
||
"description": "成功",
|
||
"headers": {}
|
||
}
|
||
},
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
},
|
||
"delete": {
|
||
"summary": "删除兑换码",
|
||
"deprecated": false,
|
||
"description": "👨💼 需要管理员权限(Admin)",
|
||
"tags": [
|
||
"兑换码"
|
||
],
|
||
"parameters": [
|
||
{
|
||
"name": "id",
|
||
"in": "path",
|
||
"description": "",
|
||
"required": true,
|
||
"example": 0,
|
||
"schema": {
|
||
"type": "integer"
|
||
}
|
||
}
|
||
],
|
||
"responses": {
|
||
"200": {
|
||
"description": "成功",
|
||
"headers": {}
|
||
}
|
||
},
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"/api/redemption/invalid": {
|
||
"delete": {
|
||
"summary": "删除无效兑换码",
|
||
"deprecated": false,
|
||
"description": "👨💼 需要管理员权限(Admin)",
|
||
"tags": [
|
||
"兑换码"
|
||
],
|
||
"parameters": [],
|
||
"responses": {
|
||
"200": {
|
||
"description": "成功",
|
||
"headers": {}
|
||
}
|
||
},
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"/api/log/": {
|
||
"get": {
|
||
"summary": "获取所有日志",
|
||
"deprecated": false,
|
||
"description": "👨💼 需要管理员权限(Admin)",
|
||
"tags": [
|
||
"日志"
|
||
],
|
||
"parameters": [
|
||
{
|
||
"name": "p",
|
||
"in": "query",
|
||
"description": "",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "integer"
|
||
}
|
||
},
|
||
{
|
||
"name": "page_size",
|
||
"in": "query",
|
||
"description": "",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "integer"
|
||
}
|
||
}
|
||
],
|
||
"responses": {
|
||
"200": {
|
||
"description": "成功",
|
||
"headers": {}
|
||
}
|
||
},
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
},
|
||
"delete": {
|
||
"summary": "删除历史日志",
|
||
"deprecated": false,
|
||
"description": "👨💼 需要管理员权限(Admin)",
|
||
"tags": [
|
||
"日志"
|
||
],
|
||
"parameters": [],
|
||
"responses": {
|
||
"200": {
|
||
"description": "成功",
|
||
"headers": {}
|
||
}
|
||
},
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"/api/log/stat": {
|
||
"get": {
|
||
"summary": "获取日志统计",
|
||
"deprecated": false,
|
||
"description": "👨💼 需要管理员权限(Admin)",
|
||
"tags": [
|
||
"日志"
|
||
],
|
||
"parameters": [],
|
||
"responses": {
|
||
"200": {
|
||
"description": "成功",
|
||
"headers": {}
|
||
}
|
||
},
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"/api/log/self/stat": {
|
||
"get": {
|
||
"summary": "获取个人日志统计",
|
||
"deprecated": false,
|
||
"description": "🔐 需要登录(User权限)",
|
||
"tags": [
|
||
"日志"
|
||
],
|
||
"parameters": [],
|
||
"responses": {
|
||
"200": {
|
||
"description": "成功",
|
||
"headers": {}
|
||
}
|
||
},
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"/api/log/search": {
|
||
"get": {
|
||
"summary": "搜索日志",
|
||
"deprecated": false,
|
||
"description": "👨💼 需要管理员权限(Admin)",
|
||
"tags": [
|
||
"日志"
|
||
],
|
||
"parameters": [
|
||
{
|
||
"name": "keyword",
|
||
"in": "query",
|
||
"description": "",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "string"
|
||
}
|
||
}
|
||
],
|
||
"responses": {
|
||
"200": {
|
||
"description": "成功",
|
||
"headers": {}
|
||
}
|
||
},
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"/api/log/self": {
|
||
"get": {
|
||
"summary": "获取个人日志",
|
||
"deprecated": false,
|
||
"description": "🔐 需要登录(User权限)",
|
||
"tags": [
|
||
"日志"
|
||
],
|
||
"parameters": [],
|
||
"responses": {
|
||
"200": {
|
||
"description": "成功",
|
||
"headers": {}
|
||
}
|
||
},
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"/api/log/self/search": {
|
||
"get": {
|
||
"summary": "搜索个人日志",
|
||
"deprecated": false,
|
||
"description": "🔐 需要登录(User权限)",
|
||
"tags": [
|
||
"日志"
|
||
],
|
||
"parameters": [
|
||
{
|
||
"name": "keyword",
|
||
"in": "query",
|
||
"description": "",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "string"
|
||
}
|
||
}
|
||
],
|
||
"responses": {
|
||
"200": {
|
||
"description": "成功",
|
||
"headers": {}
|
||
}
|
||
},
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"/api/log/token": {
|
||
"get": {
|
||
"summary": "通过令牌获取日志",
|
||
"deprecated": false,
|
||
"description": "🔓 无需鉴权(通过令牌查询)",
|
||
"tags": [
|
||
"日志"
|
||
],
|
||
"parameters": [
|
||
{
|
||
"name": "key",
|
||
"in": "query",
|
||
"description": "",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "string"
|
||
}
|
||
}
|
||
],
|
||
"responses": {
|
||
"200": {
|
||
"description": "成功",
|
||
"headers": {}
|
||
}
|
||
},
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"/api/data/": {
|
||
"get": {
|
||
"summary": "获取所有额度数据",
|
||
"deprecated": false,
|
||
"description": "👨💼 需要管理员权限(Admin)",
|
||
"tags": [
|
||
"数据统计"
|
||
],
|
||
"parameters": [],
|
||
"responses": {
|
||
"200": {
|
||
"description": "成功",
|
||
"headers": {}
|
||
}
|
||
},
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"/api/data/self": {
|
||
"get": {
|
||
"summary": "获取个人额度数据",
|
||
"deprecated": false,
|
||
"description": "🔐 需要登录(User权限)",
|
||
"tags": [
|
||
"数据统计"
|
||
],
|
||
"parameters": [],
|
||
"responses": {
|
||
"200": {
|
||
"description": "成功",
|
||
"headers": {}
|
||
}
|
||
},
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"/api/group/": {
|
||
"get": {
|
||
"summary": "获取所有分组",
|
||
"deprecated": false,
|
||
"description": "👨💼 需要管理员权限(Admin)",
|
||
"tags": [
|
||
"分组"
|
||
],
|
||
"parameters": [],
|
||
"responses": {
|
||
"200": {
|
||
"description": "成功",
|
||
"headers": {}
|
||
}
|
||
},
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"/api/prefill_group/": {
|
||
"get": {
|
||
"summary": "获取预填分组",
|
||
"deprecated": false,
|
||
"description": "👨💼 需要管理员权限(Admin)",
|
||
"tags": [
|
||
"分组"
|
||
],
|
||
"parameters": [],
|
||
"responses": {
|
||
"200": {
|
||
"description": "成功",
|
||
"headers": {}
|
||
}
|
||
},
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
},
|
||
"post": {
|
||
"summary": "创建预填分组",
|
||
"deprecated": false,
|
||
"description": "👨💼 需要管理员权限(Admin)",
|
||
"tags": [
|
||
"分组"
|
||
],
|
||
"parameters": [],
|
||
"responses": {
|
||
"200": {
|
||
"description": "成功",
|
||
"headers": {}
|
||
}
|
||
},
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
},
|
||
"put": {
|
||
"summary": "更新预填分组",
|
||
"deprecated": false,
|
||
"description": "👨💼 需要管理员权限(Admin)",
|
||
"tags": [
|
||
"分组"
|
||
],
|
||
"parameters": [],
|
||
"responses": {
|
||
"200": {
|
||
"description": "成功",
|
||
"headers": {}
|
||
}
|
||
},
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"/api/prefill_group/{id}": {
|
||
"delete": {
|
||
"summary": "删除预填分组",
|
||
"deprecated": false,
|
||
"description": "👨💼 需要管理员权限(Admin)",
|
||
"tags": [
|
||
"分组"
|
||
],
|
||
"parameters": [
|
||
{
|
||
"name": "id",
|
||
"in": "path",
|
||
"description": "",
|
||
"required": true,
|
||
"example": 0,
|
||
"schema": {
|
||
"type": "integer"
|
||
}
|
||
}
|
||
],
|
||
"responses": {
|
||
"200": {
|
||
"description": "成功",
|
||
"headers": {}
|
||
}
|
||
},
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"/api/mj/": {
|
||
"get": {
|
||
"summary": "获取所有Midjourney任务",
|
||
"deprecated": false,
|
||
"description": "👨💼 需要管理员权限(Admin)",
|
||
"tags": [
|
||
"任务"
|
||
],
|
||
"parameters": [],
|
||
"responses": {
|
||
"200": {
|
||
"description": "成功",
|
||
"headers": {}
|
||
}
|
||
},
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"/api/mj/self": {
|
||
"get": {
|
||
"summary": "获取个人Midjourney任务",
|
||
"deprecated": false,
|
||
"description": "🔐 需要登录(User权限)",
|
||
"tags": [
|
||
"任务"
|
||
],
|
||
"parameters": [],
|
||
"responses": {
|
||
"200": {
|
||
"description": "成功",
|
||
"headers": {}
|
||
}
|
||
},
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"/api/task/": {
|
||
"get": {
|
||
"summary": "获取所有任务",
|
||
"deprecated": false,
|
||
"description": "👨💼 需要管理员权限(Admin)",
|
||
"tags": [
|
||
"任务"
|
||
],
|
||
"parameters": [],
|
||
"responses": {
|
||
"200": {
|
||
"description": "成功",
|
||
"headers": {}
|
||
}
|
||
},
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"/api/task/self": {
|
||
"get": {
|
||
"summary": "获取个人任务",
|
||
"deprecated": false,
|
||
"description": "🔐 需要登录(User权限)",
|
||
"tags": [
|
||
"任务"
|
||
],
|
||
"parameters": [],
|
||
"responses": {
|
||
"200": {
|
||
"description": "成功",
|
||
"headers": {}
|
||
}
|
||
},
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"/api/vendors/": {
|
||
"get": {
|
||
"summary": "获取所有供应商",
|
||
"deprecated": false,
|
||
"description": "👨💼 需要管理员权限(Admin)",
|
||
"tags": [
|
||
"供应商"
|
||
],
|
||
"parameters": [],
|
||
"responses": {
|
||
"200": {
|
||
"description": "成功",
|
||
"headers": {}
|
||
}
|
||
},
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
},
|
||
"post": {
|
||
"summary": "创建供应商",
|
||
"deprecated": false,
|
||
"description": "👨💼 需要管理员权限(Admin)",
|
||
"tags": [
|
||
"供应商"
|
||
],
|
||
"parameters": [],
|
||
"responses": {
|
||
"200": {
|
||
"description": "成功",
|
||
"headers": {}
|
||
}
|
||
},
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
},
|
||
"put": {
|
||
"summary": "更新供应商",
|
||
"deprecated": false,
|
||
"description": "👨💼 需要管理员权限(Admin)",
|
||
"tags": [
|
||
"供应商"
|
||
],
|
||
"parameters": [],
|
||
"responses": {
|
||
"200": {
|
||
"description": "成功",
|
||
"headers": {}
|
||
}
|
||
},
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"/api/vendors/search": {
|
||
"get": {
|
||
"summary": "搜索供应商",
|
||
"deprecated": false,
|
||
"description": "👨💼 需要管理员权限(Admin)",
|
||
"tags": [
|
||
"供应商"
|
||
],
|
||
"parameters": [
|
||
{
|
||
"name": "keyword",
|
||
"in": "query",
|
||
"description": "",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "string"
|
||
}
|
||
}
|
||
],
|
||
"responses": {
|
||
"200": {
|
||
"description": "成功",
|
||
"headers": {}
|
||
}
|
||
},
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"/api/vendors/{id}": {
|
||
"get": {
|
||
"summary": "获取指定供应商",
|
||
"deprecated": false,
|
||
"description": "👨💼 需要管理员权限(Admin)",
|
||
"tags": [
|
||
"供应商"
|
||
],
|
||
"parameters": [
|
||
{
|
||
"name": "id",
|
||
"in": "path",
|
||
"description": "",
|
||
"required": true,
|
||
"example": 0,
|
||
"schema": {
|
||
"type": "integer"
|
||
}
|
||
}
|
||
],
|
||
"responses": {
|
||
"200": {
|
||
"description": "成功",
|
||
"headers": {}
|
||
}
|
||
},
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
},
|
||
"delete": {
|
||
"summary": "删除供应商",
|
||
"deprecated": false,
|
||
"description": "👨💼 需要管理员权限(Admin)",
|
||
"tags": [
|
||
"供应商"
|
||
],
|
||
"parameters": [
|
||
{
|
||
"name": "id",
|
||
"in": "path",
|
||
"description": "",
|
||
"required": true,
|
||
"example": 0,
|
||
"schema": {
|
||
"type": "integer"
|
||
}
|
||
}
|
||
],
|
||
"responses": {
|
||
"200": {
|
||
"description": "成功",
|
||
"headers": {}
|
||
}
|
||
},
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"/api/models/": {
|
||
"get": {
|
||
"summary": "获取所有模型元数据",
|
||
"deprecated": false,
|
||
"description": "👨💼 需要管理员权限(Admin)",
|
||
"tags": [
|
||
"模型管理"
|
||
],
|
||
"parameters": [],
|
||
"responses": {
|
||
"200": {
|
||
"description": "成功",
|
||
"headers": {}
|
||
}
|
||
},
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
},
|
||
"post": {
|
||
"summary": "创建模型元数据",
|
||
"deprecated": false,
|
||
"description": "👨💼 需要管理员权限(Admin)",
|
||
"tags": [
|
||
"模型管理"
|
||
],
|
||
"parameters": [],
|
||
"responses": {
|
||
"200": {
|
||
"description": "成功",
|
||
"headers": {}
|
||
}
|
||
},
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
},
|
||
"put": {
|
||
"summary": "更新模型元数据",
|
||
"deprecated": false,
|
||
"description": "👨💼 需要管理员权限(Admin)",
|
||
"tags": [
|
||
"模型管理"
|
||
],
|
||
"parameters": [],
|
||
"responses": {
|
||
"200": {
|
||
"description": "成功",
|
||
"headers": {}
|
||
}
|
||
},
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"/api/models/search": {
|
||
"get": {
|
||
"summary": "搜索模型",
|
||
"deprecated": false,
|
||
"description": "👨💼 需要管理员权限(Admin)",
|
||
"tags": [
|
||
"模型管理"
|
||
],
|
||
"parameters": [
|
||
{
|
||
"name": "keyword",
|
||
"in": "query",
|
||
"description": "",
|
||
"required": false,
|
||
"schema": {
|
||
"type": "string"
|
||
}
|
||
}
|
||
],
|
||
"responses": {
|
||
"200": {
|
||
"description": "成功",
|
||
"headers": {}
|
||
}
|
||
},
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"/api/models/{id}": {
|
||
"get": {
|
||
"summary": "获取指定模型",
|
||
"deprecated": false,
|
||
"description": "👨💼 需要管理员权限(Admin)",
|
||
"tags": [
|
||
"模型管理"
|
||
],
|
||
"parameters": [
|
||
{
|
||
"name": "id",
|
||
"in": "path",
|
||
"description": "",
|
||
"required": true,
|
||
"example": 0,
|
||
"schema": {
|
||
"type": "integer"
|
||
}
|
||
}
|
||
],
|
||
"responses": {
|
||
"200": {
|
||
"description": "成功",
|
||
"headers": {}
|
||
}
|
||
},
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
},
|
||
"delete": {
|
||
"summary": "删除模型",
|
||
"deprecated": false,
|
||
"description": "👨💼 需要管理员权限(Admin)",
|
||
"tags": [
|
||
"模型管理"
|
||
],
|
||
"parameters": [
|
||
{
|
||
"name": "id",
|
||
"in": "path",
|
||
"description": "",
|
||
"required": true,
|
||
"example": 0,
|
||
"schema": {
|
||
"type": "integer"
|
||
}
|
||
}
|
||
],
|
||
"responses": {
|
||
"200": {
|
||
"description": "成功",
|
||
"headers": {}
|
||
}
|
||
},
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"/api/models/sync_upstream/preview": {
|
||
"get": {
|
||
"summary": "预览上游模型同步",
|
||
"deprecated": false,
|
||
"description": "👨💼 需要管理员权限(Admin)",
|
||
"tags": [
|
||
"模型管理"
|
||
],
|
||
"parameters": [],
|
||
"responses": {
|
||
"200": {
|
||
"description": "成功",
|
||
"headers": {}
|
||
}
|
||
},
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"/api/models/sync_upstream": {
|
||
"post": {
|
||
"summary": "同步上游模型",
|
||
"deprecated": false,
|
||
"description": "👨💼 需要管理员权限(Admin)",
|
||
"tags": [
|
||
"模型管理"
|
||
],
|
||
"parameters": [],
|
||
"responses": {
|
||
"200": {
|
||
"description": "成功",
|
||
"headers": {}
|
||
}
|
||
},
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"/api/models/missing": {
|
||
"get": {
|
||
"summary": "获取缺失模型",
|
||
"deprecated": false,
|
||
"description": "👨💼 需要管理员权限(Admin)",
|
||
"tags": [
|
||
"模型管理"
|
||
],
|
||
"parameters": [],
|
||
"responses": {
|
||
"200": {
|
||
"description": "成功",
|
||
"headers": {}
|
||
}
|
||
},
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"/api/option/": {
|
||
"get": {
|
||
"summary": "获取系统选项",
|
||
"deprecated": false,
|
||
"description": "👑 需要超级管理员权限(Root)",
|
||
"tags": [
|
||
"系统设置"
|
||
],
|
||
"parameters": [],
|
||
"responses": {
|
||
"200": {
|
||
"description": "成功",
|
||
"headers": {}
|
||
}
|
||
},
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
},
|
||
"put": {
|
||
"summary": "更新系统选项",
|
||
"deprecated": false,
|
||
"description": "👑 需要超级管理员权限(Root)",
|
||
"tags": [
|
||
"系统设置"
|
||
],
|
||
"parameters": [],
|
||
"responses": {
|
||
"200": {
|
||
"description": "成功",
|
||
"headers": {}
|
||
}
|
||
},
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"/api/option/rest_model_ratio": {
|
||
"post": {
|
||
"summary": "重置模型倍率",
|
||
"deprecated": false,
|
||
"description": "👑 需要超级管理员权限(Root)",
|
||
"tags": [
|
||
"系统设置"
|
||
],
|
||
"parameters": [],
|
||
"responses": {
|
||
"200": {
|
||
"description": "成功",
|
||
"headers": {}
|
||
}
|
||
},
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"/api/option/migrate_console_setting": {
|
||
"post": {
|
||
"summary": "迁移控制台设置",
|
||
"deprecated": false,
|
||
"description": "👑 需要超级管理员权限(Root)",
|
||
"tags": [
|
||
"系统设置"
|
||
],
|
||
"parameters": [],
|
||
"responses": {
|
||
"200": {
|
||
"description": "成功",
|
||
"headers": {}
|
||
}
|
||
},
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"/api/ratio_sync/channels": {
|
||
"get": {
|
||
"summary": "获取可同步渠道",
|
||
"deprecated": false,
|
||
"description": "👑 需要超级管理员权限(Root)",
|
||
"tags": [
|
||
"系统设置"
|
||
],
|
||
"parameters": [],
|
||
"responses": {
|
||
"200": {
|
||
"description": "成功",
|
||
"headers": {}
|
||
}
|
||
},
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"/api/ratio_sync/fetch": {
|
||
"post": {
|
||
"summary": "获取上游倍率",
|
||
"deprecated": false,
|
||
"description": "👑 需要超级管理员权限(Root)",
|
||
"tags": [
|
||
"系统设置"
|
||
],
|
||
"parameters": [],
|
||
"responses": {
|
||
"200": {
|
||
"description": "成功",
|
||
"headers": {}
|
||
}
|
||
},
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
}
|
||
}
|
||
},
|
||
"components": {
|
||
"schemas": {
|
||
"User": {
|
||
"type": "object",
|
||
"properties": {
|
||
"id": {
|
||
"type": "integer"
|
||
},
|
||
"username": {
|
||
"type": "string"
|
||
},
|
||
"display_name": {
|
||
"type": "string"
|
||
},
|
||
"role": {
|
||
"type": "integer"
|
||
},
|
||
"status": {
|
||
"type": "integer"
|
||
},
|
||
"email": {
|
||
"type": "string"
|
||
},
|
||
"group": {
|
||
"type": "string"
|
||
},
|
||
"quota": {
|
||
"type": "integer"
|
||
},
|
||
"used_quota": {
|
||
"type": "integer"
|
||
},
|
||
"request_count": {
|
||
"type": "integer"
|
||
}
|
||
}
|
||
},
|
||
"Channel": {
|
||
"type": "object",
|
||
"properties": {
|
||
"id": {
|
||
"type": "integer"
|
||
},
|
||
"name": {
|
||
"type": "string"
|
||
},
|
||
"type": {
|
||
"type": "integer"
|
||
},
|
||
"status": {
|
||
"type": "integer"
|
||
},
|
||
"models": {
|
||
"type": "string"
|
||
},
|
||
"groups": {
|
||
"type": "string"
|
||
},
|
||
"priority": {
|
||
"type": "integer"
|
||
},
|
||
"weight": {
|
||
"type": "integer"
|
||
},
|
||
"base_url": {
|
||
"type": "string"
|
||
},
|
||
"tag": {
|
||
"type": "string"
|
||
}
|
||
}
|
||
},
|
||
"Token": {
|
||
"type": "object",
|
||
"properties": {
|
||
"id": {
|
||
"type": "integer"
|
||
},
|
||
"user_id": {
|
||
"type": "integer"
|
||
},
|
||
"name": {
|
||
"type": "string"
|
||
},
|
||
"key": {
|
||
"type": "string"
|
||
},
|
||
"status": {
|
||
"type": "integer"
|
||
},
|
||
"expired_time": {
|
||
"type": "integer"
|
||
},
|
||
"remain_quota": {
|
||
"type": "integer"
|
||
},
|
||
"unlimited_quota": {
|
||
"type": "boolean"
|
||
}
|
||
}
|
||
},
|
||
"Redemption": {
|
||
"type": "object",
|
||
"properties": {
|
||
"id": {
|
||
"type": "integer"
|
||
},
|
||
"name": {
|
||
"type": "string"
|
||
},
|
||
"key": {
|
||
"type": "string"
|
||
},
|
||
"status": {
|
||
"type": "integer"
|
||
},
|
||
"quota": {
|
||
"type": "integer"
|
||
},
|
||
"created_time": {
|
||
"type": "integer"
|
||
},
|
||
"redeemed_time": {
|
||
"type": "integer"
|
||
}
|
||
}
|
||
}
|
||
},
|
||
"responses": {},
|
||
"securitySchemes": {}
|
||
},
|
||
"servers": [],
|
||
"security": [
|
||
{
|
||
"Combination343": []
|
||
},
|
||
{
|
||
"Combination1243": []
|
||
}
|
||
]
|
||
} |