20 lines
495 B
Go
20 lines
495 B
Go
package model
|
|
|
|
import "github.com/golang-jwt/jwt/v5"
|
|
|
|
type LoginStruct struct {
|
|
Username string `json:"username" xml:"username" form:"username"`
|
|
Password string `json:"password" xml:"password" form:"password"`
|
|
}
|
|
|
|
type SignupStruct struct {
|
|
Username string `json:"username" xml:"username" form:"username"`
|
|
Password string `json:"password" xml:"password" form:"password"`
|
|
}
|
|
|
|
type UserClaims struct {
|
|
Username string `json:"username"`
|
|
UserId string `json:"user_id"`
|
|
jwt.RegisteredClaims
|
|
}
|