Merge branch 'dev' of http://git.legu.cc/liwei_3d/go_dreamfactory into meixiongfeng

This commit is contained in:
meixiongfeng 2022-06-07 15:21:23 +08:00
commit a534576f46
3 changed files with 6 additions and 1 deletions

View File

@ -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)

View File

@ -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{

View File

@ -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;