Browse Source

wip:增加appid

wangkaiyue 2 years ago
parent
commit
876bf8e5c4
2 changed files with 7 additions and 6 deletions
  1. 4 3
      api/message.api
  2. 3 3
      rpc/message.proto

+ 4 - 3
api/message.api

@@ -137,6 +137,7 @@ type MultipleSaveMsgResp {
 
 
 type GetBuoyMsgReq {
 type GetBuoyMsgReq {
 	UserId string `header:"userIds"`
 	UserId string `header:"userIds"`
+	AppId string `header:"appId"`
 	Size   int64  `json:"size"`
 	Size   int64  `json:"size"`
 }
 }
 
 
@@ -177,12 +178,12 @@ service message-api {
 	// 发送消息
 	// 发送消息
 	@handler SendMsgHandler
 	@handler SendMsgHandler
 	post /messageCenter/SendMsg (SendMsgReq) returns (SendMsgResp)
 	post /messageCenter/SendMsg (SendMsgReq) returns (SendMsgResp)
-	
+
 	// 发送消息
 	// 发送消息
 	@handler MultipleSaveMsgHandler
 	@handler MultipleSaveMsgHandler
 	post /messageCenter/MultipleSaveMsg (MultipleSaveMsgReq) returns (MultipleSaveMsgResp)
 	post /messageCenter/MultipleSaveMsg (MultipleSaveMsgReq) returns (MultipleSaveMsgResp)
-	
+
 	// 查询浮标信息
 	// 查询浮标信息
 	@handler GetBuoyMsgHandler
 	@handler GetBuoyMsgHandler
 	post /messageCenter/GetBuoyMsg (GetBuoyMsgReq) returns (GetBuoyMsgResp)
 	post /messageCenter/GetBuoyMsg (GetBuoyMsgReq) returns (GetBuoyMsgResp)
-}
+}

+ 3 - 3
rpc/message.proto

@@ -175,17 +175,17 @@ message multipleSaveMsgResp {
 
 
 message FindUserBuoyMsgReq {
 message FindUserBuoyMsgReq {
     string userId = 1; //用户id
     string userId = 1; //用户id
-    int64 pageSize = 2; //大小
+    string appid = 2; //应用标识
+    int64 pageSize = 3; //大小
 }
 }
 message FindUserBuoyMsgRes {
 message FindUserBuoyMsgRes {
     int64 code = 1; //状态码
     int64 code = 1; //状态码
     string message = 2; //响应消息
     string message = 2; //响应消息
     repeated BuoyMessages data = 3; //
     repeated BuoyMessages data = 3; //
-    int64 count = 4; //总数
 }
 }
 message BuoyMessages {
 message BuoyMessages {
     string id = 1; //消息id
     string id = 1; //消息id
-    string buoy_detail = 2; //接收方用户ID
+    string buoy_detail = 2; //浮标内容
 }
 }