enhance(model):改进用户会话中使用的类型。

This commit is contained in:
徐涛 2023-05-31 09:41:52 +08:00
parent 83b0cd89f4
commit 31ec847ab2

View File

@ -5,7 +5,7 @@ import "time"
type Session struct { type Session struct {
Uid string `json:"uid"` Uid string `json:"uid"`
Name string `json:"name"` Name string `json:"name"`
Type int8 `json:"type"` Type int16 `json:"type"`
Token string `json:"token"` Token string `json:"token"`
ExpiresAt time.Time `json:"expiresAt" time_format:"simple_datetime" time_location:"shanghai"` ExpiresAt time.Time `json:"expiresAt" time_format:"simple_datetime" time_location:"shanghai"`
} }