parent
929657fd34
commit
3bb5e735c6
19 changed files with 173 additions and 123 deletions
|
@ -1,6 +1,7 @@
|
|||
package model
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"time"
|
||||
|
||||
"go.n16f.net/uuid"
|
||||
|
@ -9,11 +10,11 @@ import (
|
|||
type SessionContextKey struct{}
|
||||
|
||||
type Session struct {
|
||||
Id string
|
||||
AccountId uuid.UUID
|
||||
Id []byte
|
||||
AccountId *uuid.UUID
|
||||
Created time.Time
|
||||
Updated time.Time
|
||||
Data any
|
||||
Settings json.RawMessage
|
||||
}
|
||||
|
||||
func (session *Session) IsExpired() bool {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue