部分更改

This commit is contained in:
des
2026-01-20 00:18:05 +08:00
parent 2d65afdf33
commit 1ab62031ea
6 changed files with 59 additions and 20 deletions

View File

@@ -1,25 +1,9 @@
package user
import (
"Crimson-Gatekeeper/internal/model"
"Crimson-Gatekeeper/internal/query"
"sync"
"time"
)
// loginInfo 储存用户的登录状态
type loginInfo struct {
// user 信息指针
user *model.User
// invalidation 失效时间,此事件之后,该数据应该失效且被删除
invalidation time.Time
}
var loginIn = sync.Map{}
type Service struct {
c *query.Query
}
func (s *Service) login(user *model.User) error {
}