⚡ update qq/gitee/github oauth2 login
This commit is contained in:
76
docs/docs.go
76
docs/docs.go
@@ -15,6 +15,60 @@ const docTemplate = `{
|
||||
"host": "{{.Host}}",
|
||||
"basePath": "{{.BasePath}}",
|
||||
"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": [
|
||||
@@ -735,6 +789,17 @@ const docTemplate = `{
|
||||
}
|
||||
}
|
||||
},
|
||||
"dto.AddRoleToUserRequestDto": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"role_key": {
|
||||
"type": "string"
|
||||
},
|
||||
"uid": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"dto.AddUserRequest": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
@@ -779,6 +844,17 @@ const docTemplate = `{
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"dto.RoleRequestDto": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"role_key": {
|
||||
"type": "string"
|
||||
},
|
||||
"role_name": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}`
|
||||
|
@@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@@ -8,6 +8,13 @@ definitions:
|
||||
password:
|
||||
type: string
|
||||
type: object
|
||||
dto.AddRoleToUserRequestDto:
|
||||
properties:
|
||||
role_key:
|
||||
type: string
|
||||
uid:
|
||||
type: string
|
||||
type: object
|
||||
dto.AddUserRequest:
|
||||
properties:
|
||||
password:
|
||||
@@ -37,9 +44,52 @@ definitions:
|
||||
repassword:
|
||||
type: string
|
||||
type: object
|
||||
dto.RoleRequestDto:
|
||||
properties:
|
||||
role_key:
|
||||
type: string
|
||||
role_name:
|
||||
type: string
|
||||
type: object
|
||||
info:
|
||||
contact: {}
|
||||
paths:
|
||||
/api/auth/role/add_role_to_user:
|
||||
post:
|
||||
consumes:
|
||||
- application/json
|
||||
description: 给指定用户添加角色
|
||||
parameters:
|
||||
- description: 给指定用户添加角色
|
||||
in: body
|
||||
name: addRoleToUserRequestDto
|
||||
required: true
|
||||
schema:
|
||||
$ref: '#/definitions/dto.AddRoleToUserRequestDto'
|
||||
produces:
|
||||
- application/json
|
||||
responses: {}
|
||||
summary: 给指定用户添加角色
|
||||
tags:
|
||||
- 角色
|
||||
/api/auth/role/create:
|
||||
post:
|
||||
consumes:
|
||||
- application/json
|
||||
description: 创建角色
|
||||
parameters:
|
||||
- description: 角色信息
|
||||
in: body
|
||||
name: roleRequestDto
|
||||
required: true
|
||||
schema:
|
||||
$ref: '#/definitions/dto.RoleRequestDto'
|
||||
produces:
|
||||
- application/json
|
||||
responses: {}
|
||||
summary: 创建角色
|
||||
tags:
|
||||
- 角色
|
||||
/api/auth/user/List:
|
||||
get:
|
||||
responses:
|
||||
|
Reference in New Issue
Block a user