-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
54 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package dto | ||
|
||
import "github.com/golang-jwt/jwt/v5" | ||
|
||
type AuthOptionsClaims struct { | ||
jwt.RegisteredClaims | ||
Client string `form:"client" json:"client" binding:"required"` | ||
ClientUserId string `form:"client_user_id" json:"clientUserId" binding:"required"` | ||
RedirectUri string `form:"redirect_uri" json:"redirectUri,omitempty"` | ||
KneuUserId uint `form:"-" json:"userId,omitempty"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package dto | ||
|
||
import "time" | ||
|
||
type GetAuthUrlResponse struct { | ||
AuthUrl string `json:"authUrl" binding:"required"` | ||
ExpireAt time.Time `json:"expire" binding:"required"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package dto | ||
|
||
import "github.com/kneu-messenger-pigeon/events" | ||
|
||
type Student struct { | ||
Id uint | ||
LastName string | ||
FirstName string | ||
MiddleName string | ||
Gender events.Gender | ||
} |