mirror of
https://github.com/weloe/token-go.git
synced 2025-10-05 15:36:50 +08:00
22 lines
420 B
Go
22 lines
420 B
Go
package model
|
|
|
|
type Login struct {
|
|
Device string
|
|
IsLastingCookie bool
|
|
Timeout int64
|
|
JwtData map[string]interface{}
|
|
Token string
|
|
IsWriteHeader bool
|
|
}
|
|
|
|
func DefaultLoginModel() *Login {
|
|
return &Login{
|
|
Device: "default-device",
|
|
IsLastingCookie: true,
|
|
Timeout: 60 * 60 * 24 * 30,
|
|
JwtData: nil,
|
|
Token: "",
|
|
IsWriteHeader: true,
|
|
}
|
|
}
|