1
This commit is contained in:
parent
d074234ece
commit
fae1cbd940
@ -29,6 +29,7 @@ type ServiceMgr interface {
|
||||
}
|
||||
|
||||
type Session interface {
|
||||
GetAccountId() string
|
||||
GetId() string
|
||||
GetUid() string
|
||||
GetGid() string
|
||||
|
@ -9,6 +9,10 @@ type session struct {
|
||||
jwtUserInfo *common.JwtUserInfo
|
||||
}
|
||||
|
||||
func (this *session) GetAccountId() string {
|
||||
return this.jwtUserInfo.Id
|
||||
}
|
||||
|
||||
func (this *session) GetId() string {
|
||||
return this.jwtUserInfo.Id
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user