Merge branch 'dev' of http://git.legu.cc/liwei_3d/go_dreamfactory into meixiongfeng
This commit is contained in:
commit
a534576f46
@ -42,6 +42,7 @@ type IUserSession interface {
|
||||
GetUserId() string
|
||||
GetIP() string
|
||||
GetGatewayServiceId() string
|
||||
IsLogin() bool
|
||||
Build(uid string) (err error)
|
||||
UnBuild(ServiceMethod string, msg proto.Message) (err error)
|
||||
SendMsg(mainType, subType string, code pb.ErrorCode, msg proto.Message) (err error)
|
||||
|
@ -42,6 +42,10 @@ func (this *UserSession) GetGatewayServiceId() string {
|
||||
return this.GatewayServiceId
|
||||
}
|
||||
|
||||
func (this *UserSession) IsLogin() bool {
|
||||
return this.UserId != ""
|
||||
}
|
||||
|
||||
func (this *UserSession) Build(uid string) (err error) {
|
||||
reply := &pb.RPCMessageReply{}
|
||||
if err := this.service.RpcCallById(this.GatewayServiceId, string(Rpc_GatewayAgentBuild), context.Background(), &pb.AgentBuildReq{
|
||||
|
@ -9,7 +9,7 @@ message Cache_UserData {
|
||||
|
||||
message DB_UserData {
|
||||
string UserId = 1; //tags:{bson:"_id"}动态Id
|
||||
string account = 2;
|
||||
string Account = 2;
|
||||
string NiceName = 3;
|
||||
string Email = 4;
|
||||
string Password = 5;
|
||||
|
Loading…
Reference in New Issue
Block a user