This commit is contained in:
toom1996
2026-09-13 00:52:35 +08:00
parent 10d8a96e8c
commit dbee704c95
44 changed files with 755 additions and 1148 deletions

View File

@ -21,6 +21,7 @@ import (
// - Login 签发两者;access 用于日常请求,refresh 仅在续期时使用。
// - Refresh 用 refresh token 换发新 access(refresh 复用、不轮换,足够内部工具)。
// - Logout 吊销当前 refresh;RevokeAllByRefresh 吊销该用户全部 refresh(踢下线)。
//
// 由于 refresh 落库,服务端得以单方面作废会话——这是纯无状态 JWT 做不到的。
type AuthService interface {
Me(ctx context.Context, userID uint32) (*dto.UserPayload, error)