update qq/gitee/github oauth2 login

This commit is contained in:
landaiqing
2024-08-24 16:31:40 +08:00
parent 014abca8f8
commit 9330935822
45 changed files with 1243 additions and 642 deletions

View File

@@ -4,6 +4,60 @@
"contact": {}
},
"paths": {
"/api/auth/role/add_role_to_user": {
"post": {
"description": "给指定用户添加角色",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"角色"
],
"summary": "给指定用户添加角色",
"parameters": [
{
"description": "给指定用户添加角色",
"name": "addRoleToUserRequestDto",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/dto.AddRoleToUserRequestDto"
}
}
],
"responses": {}
}
},
"/api/auth/role/create": {
"post": {
"description": "创建角色",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"角色"
],
"summary": "创建角色",
"parameters": [
{
"description": "角色信息",
"name": "roleRequestDto",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/dto.RoleRequestDto"
}
}
],
"responses": {}
}
},
"/api/auth/user/List": {
"get": {
"tags": [
@@ -724,6 +778,17 @@
}
}
},
"dto.AddRoleToUserRequestDto": {
"type": "object",
"properties": {
"role_key": {
"type": "string"
},
"uid": {
"type": "string"
}
}
},
"dto.AddUserRequest": {
"type": "object",
"properties": {
@@ -768,6 +833,17 @@
"type": "string"
}
}
},
"dto.RoleRequestDto": {
"type": "object",
"properties": {
"role_key": {
"type": "string"
},
"role_name": {
"type": "string"
}
}
}
}
}