|
@@ -1340,7 +1340,8 @@ type UserInfo struct {
|
|
|
MHead string `protobuf:"bytes,2,opt,name=m_head,json=mHead,proto3" json:"m_head,omitempty"`
|
|
|
MCoin int32 `protobuf:"varint,3,opt,name=m_coin,json=mCoin,proto3" json:"m_coin,omitempty"`
|
|
|
Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
|
|
|
- RoomId int32 `protobuf:"varint,5,opt,name=room_id,json=roomId,proto3" json:"room_id,omitempty"` //如果用户在某一个房间玩,他的id就一直存在,
|
|
|
+ RoomId int32 `protobuf:"varint,5,opt,name=room_id,json=roomId,proto3" json:"room_id,omitempty"` //如果用户在某一个房间玩,他的id就一直存在,
|
|
|
+ OnlineStatus int32 `protobuf:"varint,6,opt,name=online_status,json=onlineStatus,proto3" json:"online_status,omitempty"` //在线=1 离线等0
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
}
|
|
@@ -1410,6 +1411,13 @@ func (x *UserInfo) GetRoomId() int32 {
|
|
|
return 0
|
|
|
}
|
|
|
|
|
|
+func (x *UserInfo) GetOnlineStatus() int32 {
|
|
|
+ if x != nil {
|
|
|
+ return x.OnlineStatus
|
|
|
+ }
|
|
|
+ return 0
|
|
|
+}
|
|
|
+
|
|
|
// 登录 请求
|
|
|
type ReqLogin struct {
|
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
@@ -3498,13 +3506,14 @@ const file_common_proto_rawDesc = "" +
|
|
|
"\rfinish_colors\x18\x02 \x03(\v2\n" +
|
|
|
".ColorDataR\ffinishColors\">\n" +
|
|
|
"\x14NotifyUpdateRoomInfo\x12&\n" +
|
|
|
- "\troom_info\x18\x01 \x01(\v2\t.RoomInfoR\broomInfo\"}\n" +
|
|
|
+ "\troom_info\x18\x01 \x01(\v2\t.RoomInfoR\broomInfo\"\xa2\x01\n" +
|
|
|
"\bUserInfo\x12\x16\n" +
|
|
|
"\x06UserId\x18\x01 \x01(\tR\x06UserId\x12\x15\n" +
|
|
|
"\x06m_head\x18\x02 \x01(\tR\x05mHead\x12\x15\n" +
|
|
|
"\x06m_coin\x18\x03 \x01(\x05R\x05mCoin\x12\x12\n" +
|
|
|
"\x04name\x18\x04 \x01(\tR\x04name\x12\x17\n" +
|
|
|
- "\aroom_id\x18\x05 \x01(\x05R\x06roomId\"@\n" +
|
|
|
+ "\aroom_id\x18\x05 \x01(\x05R\x06roomId\x12#\n" +
|
|
|
+ "\ronline_status\x18\x06 \x01(\x05R\fonlineStatus\"@\n" +
|
|
|
"\bReqLogin\x12\x18\n" +
|
|
|
"\aaccount\x18\x01 \x01(\tR\aaccount\x12\x1a\n" +
|
|
|
"\bpassword\x18\x02 \x01(\tR\bpassword\"\x89\x01\n" +
|