forked from free-lancers/electricity_bill_calc_service
feat(cache):增加向redis保存用户会话的函数。
This commit is contained in:
11
model/session.go
Normal file
11
model/session.go
Normal file
@@ -0,0 +1,11 @@
|
||||
package model
|
||||
|
||||
import "time"
|
||||
|
||||
type Session struct {
|
||||
Uid string `json:"uid"`
|
||||
Name string `json:"name"`
|
||||
Type int8 `json:"type"`
|
||||
Token string `json:"token"`
|
||||
ExpiresAt time.Time `json:"expiresAt"`
|
||||
}
|
Reference in New Issue
Block a user