上传用户会话接口修改
This commit is contained in:
parent
42ca630ca9
commit
b804856510
@ -35,6 +35,7 @@ type ISC_GateRouteComp interface {
|
|||||||
//用户会话
|
//用户会话
|
||||||
type IUserSession interface {
|
type IUserSession interface {
|
||||||
GetSessionId() string
|
GetSessionId() string
|
||||||
|
GetUserId() uint32
|
||||||
GetIP() string
|
GetIP() string
|
||||||
GetGatewayServiceId() string
|
GetGatewayServiceId() string
|
||||||
Build(uid uint32) (err error)
|
Build(uid uint32) (err error)
|
||||||
|
@ -31,6 +31,10 @@ type UserSession struct {
|
|||||||
func (this *UserSession) GetSessionId() string {
|
func (this *UserSession) GetSessionId() string {
|
||||||
return this.SessionId
|
return this.SessionId
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (this *UserSession) GetUserId() uint32 {
|
||||||
|
return this.UserId
|
||||||
|
}
|
||||||
func (this *UserSession) GetIP() string {
|
func (this *UserSession) GetIP() string {
|
||||||
return this.IP
|
return this.IP
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user