taskcafe/api/router/models.go

33 lines
525 B
Go
Raw Normal View History

2020-04-10 04:40:22 +02:00
package router
import (
"github.com/dgrijalva/jwt-go"
)
type AccessTokenClaims struct {
UserID string `json:"userId"`
jwt.StandardClaims
}
type RefreshTokenClaims struct {
UserID string `json:"userId"`
jwt.StandardClaims
}
type LoginRequestData struct {
Username string
Password string
}
type LoginResponseData struct {
AccessToken string `json:"accessToken"`
}
2020-04-20 05:02:55 +02:00
type LogoutResponseData struct {
Status string `json:"status"`
}
2020-04-10 04:40:22 +02:00
type RefreshTokenResponseData struct {
AccessToken string `json:"accessToken"`
}