feat(webui): bootstrap session handling and login process
This commit is contained in:
parent
63e2b1b09d
commit
6e069484cb
18 changed files with 447 additions and 1 deletions
20
pkg/model/session.go
Normal file
20
pkg/model/session.go
Normal file
|
@ -0,0 +1,20 @@
|
|||
package model
|
||||
|
||||
import (
|
||||
"time"
|
||||
)
|
||||
|
||||
type SessionContextKey struct{}
|
||||
|
||||
type Session struct {
|
||||
Id string
|
||||
AccountId int
|
||||
Created time.Time
|
||||
Updated time.Time
|
||||
Data any
|
||||
}
|
||||
|
||||
func (session *Session) IsExpired() bool {
|
||||
// TODO
|
||||
return false
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue