Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix bug #479

Merged
merged 1 commit into from
Apr 26, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion sqle/api/controller/v1/oauth2.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ type BindOauth2UserResDataV1 struct {
// @Id bindOauth2User
// @Tags oauth2
// @Param conf body v1.BindOauth2UserReqV1 true "bind oauth2 user req"
// @Success 200 {object} v1.BindOauth2UserResDataV1
// @Success 200 {object} v1.BindOauth2UserResV1
// @router /v1/oauth2/user/bind [post]
func BindOauth2User(c echo.Context) error {
return bindOauth2User(c)
Expand Down
19 changes: 18 additions & 1 deletion sqle/docs/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -1852,7 +1852,7 @@ var doc = `{
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.BindOauth2UserResDataV1"
"$ref": "#/definitions/v1.BindOauth2UserResV1"
}
}
}
Expand Down Expand Up @@ -4538,6 +4538,23 @@ var doc = `{
}
}
},
"v1.BindOauth2UserResV1": {
"type": "object",
"properties": {
"code": {
"type": "integer",
"example": 0
},
"data": {
"type": "object",
"$ref": "#/definitions/v1.BindOauth2UserResDataV1"
},
"message": {
"type": "string",
"example": "ok"
}
}
},
"v1.CheckLicenseResV1": {
"type": "object",
"properties": {
Expand Down
19 changes: 18 additions & 1 deletion sqle/docs/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -1836,7 +1836,7 @@
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/v1.BindOauth2UserResDataV1"
"$ref": "#/definitions/v1.BindOauth2UserResV1"
}
}
}
Expand Down Expand Up @@ -4522,6 +4522,23 @@
}
}
},
"v1.BindOauth2UserResV1": {
"type": "object",
"properties": {
"code": {
"type": "integer",
"example": 0
},
"data": {
"type": "object",
"$ref": "#/definitions/v1.BindOauth2UserResDataV1"
},
"message": {
"type": "string",
"example": "ok"
}
}
},
"v1.CheckLicenseResV1": {
"type": "object",
"properties": {
Expand Down
14 changes: 13 additions & 1 deletion sqle/docs/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,18 @@ definitions:
token:
type: string
type: object
v1.BindOauth2UserResV1:
properties:
code:
example: 0
type: integer
data:
$ref: '#/definitions/v1.BindOauth2UserResDataV1'
type: object
message:
example: ok
type: string
type: object
v1.CheckLicenseResV1:
properties:
code:
Expand Down Expand Up @@ -3434,7 +3446,7 @@ paths:
"200":
description: OK
schema:
$ref: '#/definitions/v1.BindOauth2UserResDataV1'
$ref: '#/definitions/v1.BindOauth2UserResV1'
summary: 绑定 Oauth2 和 sqle用户
tags:
- oauth2
Expand Down