mirror of
https://github.com/chaitin/MonkeyCode.git
synced 2026-02-14 12:43:26 +08:00
feat: 登出接口实现
This commit is contained in:
@@ -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 回调",
|
||||
|
||||
Reference in New Issue
Block a user