登录功能完成

This commit is contained in:
2022-10-04 00:36:01 +08:00
parent 26278707bb
commit 968eab9b06
31 changed files with 1022 additions and 36 deletions

10
pkg/param/authorize.go Normal file
View 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
View File

@@ -0,0 +1,6 @@
package param
type LoginParam struct {
Username string `json:"username"`
Password string `json:"password"`
}