基础架构变更 增加模块化
This commit is contained in:
17
server/model/system/request/jwt.go
Normal file
17
server/model/system/request/jwt.go
Normal file
@@ -0,0 +1,17 @@
|
||||
package request
|
||||
|
||||
import (
|
||||
"github.com/dgrijalva/jwt-go"
|
||||
uuid "github.com/satori/go.uuid"
|
||||
)
|
||||
|
||||
// Custom claims structure
|
||||
type CustomClaims struct {
|
||||
UUID uuid.UUID
|
||||
ID uint
|
||||
Username string
|
||||
NickName string
|
||||
AuthorityId string
|
||||
BufferTime int64
|
||||
jwt.StandardClaims
|
||||
}
|
Reference in New Issue
Block a user