feat: 登出接口实现

This commit is contained in:
yokowu
2025-07-22 11:48:52 +08:00
parent 2d2307f4b1
commit d3ecaeed46
2 changed files with 86 additions and 2 deletions

View File

@@ -258,6 +258,30 @@
}
}
},
"/api/v1/admin/logout": {
"post": {
"description": "管理员登出",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Admin"
],
"summary": "管理员登出",
"operationId": "admin-logout",
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/web.Resp"
}
}
}
}
},
"/api/v1/admin/setting": {
"get": {
"description": "获取系统设置",
@@ -2147,6 +2171,30 @@
}
}
},
"/api/v1/user/logout": {
"post": {
"description": "用户登出",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"User"
],
"summary": "用户登出",
"operationId": "logout",
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/web.Resp"
}
}
}
}
},
"/api/v1/user/oauth/callback": {
"get": {
"description": "用户 OAuth 回调",