This commit is contained in:
aozhiwei 2024-11-04 17:30:58 +08:00
parent d074234ece
commit fae1cbd940
2 changed files with 5 additions and 0 deletions

View File

@ -29,6 +29,7 @@ type ServiceMgr interface {
} }
type Session interface { type Session interface {
GetAccountId() string
GetId() string GetId() string
GetUid() string GetUid() string
GetGid() string GetGid() string

View File

@ -9,6 +9,10 @@ type session struct {
jwtUserInfo *common.JwtUserInfo jwtUserInfo *common.JwtUserInfo
} }
func (this *session) GetAccountId() string {
return this.jwtUserInfo.Id
}
func (this *session) GetId() string { func (this *session) GetId() string {
return this.jwtUserInfo.Id return this.jwtUserInfo.Id
} }