登录功能完成
This commit is contained in:
10
pkg/param/authorize.go
Normal file
10
pkg/param/authorize.go
Normal file
@@ -0,0 +1,10 @@
|
||||
package param
|
||||
|
||||
type AuthorizeQueryParam struct {
|
||||
ClientId uint `form:"client_id" binding:"required"`
|
||||
ResponseType string `form:"response_type" binding:"required"`
|
||||
State string `form:"state" binding:"required"`
|
||||
Scope string `form:"scope" binding:"required"`
|
||||
CodeChallenge string `form:"code_challenge" binding:"required"`
|
||||
CodeChallengeMethod string `form:"code_challenge_method" binding:"required"`
|
||||
}
|
||||
6
pkg/param/login.go
Normal file
6
pkg/param/login.go
Normal file
@@ -0,0 +1,6 @@
|
||||
package param
|
||||
|
||||
type LoginParam struct {
|
||||
Username string `json:"username"`
|
||||
Password string `json:"password"`
|
||||
}
|
||||
Reference in New Issue
Block a user