add comments

This commit is contained in:
MaysWind
2020-12-26 00:02:55 +08:00
parent c9190e2427
commit 864ef7c17c
3 changed files with 14 additions and 0 deletions
+3
View File
@@ -4,13 +4,16 @@ import (
"github.com/dgrijalva/jwt-go"
)
// TokenType represents token type
type TokenType byte
// Token types
const (
USER_TOKEN_TYPE_NORMAL TokenType = 1
USER_TOKEN_TYPE_REQUIRE_2FA TokenType = 2
)
// UserTokenClaims represents user token
type UserTokenClaims struct {
UserTokenId string `json:"userTokenId"`
Username string `json:"username,omitempty"`