You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
306 B
18 lines
306 B
|
8 years ago
|
package rest
|
||
|
|
|
||
|
|
import (
|
||
|
|
"time"
|
||
|
|
)
|
||
|
|
|
||
|
|
type Session struct {
|
||
|
|
Base
|
||
|
|
UserUuid string `json:"userUuid"`
|
||
|
|
Ip string `json:"ip"`
|
||
|
|
ExpireTime time.Time `json:"expireTime"`
|
||
|
|
}
|
||
|
|
|
||
|
|
// set User's table name to be `profiles`
|
||
|
|
func (Session) TableName() string {
|
||
|
|
return TABLE_PREFIX + "session"
|
||
|
|
}
|