2025-01-06 00:41:32 +01:00
|
|
|
package model
|
|
|
|
|
|
|
|
import (
|
|
|
|
"time"
|
|
|
|
)
|
|
|
|
|
|
|
|
type SessionContextKey struct{}
|
|
|
|
|
|
|
|
type Session struct {
|
|
|
|
Id string
|
2025-01-31 20:53:29 +01:00
|
|
|
AccountId string
|
2025-01-06 00:41:32 +01:00
|
|
|
Created time.Time
|
|
|
|
Updated time.Time
|
|
|
|
Data any
|
|
|
|
}
|
|
|
|
|
|
|
|
func (session *Session) IsExpired() bool {
|
|
|
|
// TODO
|
|
|
|
return false
|
|
|
|
}
|