wangkaiyue 2 anni fa
parent
commit
a5d5100035
1 ha cambiato i file con 17 aggiunte e 2 eliminazioni
  1. 17 2
      api/message.api

+ 17 - 2
api/message.api

@@ -135,6 +135,17 @@ type MultipleSaveMsgResp {
 	ErrCount int64  `json:"errCount"`
 }
 
+type GetBuoyMsgReq {
+	UserId string `header:"userIds"`
+	Size int64  `json:"size"`
+}
+
+type GetBuoyMsgResp {
+    Code    int64                    `json:"error_code"`
+    Message string                   `json:"error_msg"`
+    Data    []map[string]interface{} `json:"data"`
+}
+
 service message-api {
 	//删除消息
 	@handler MessageDeleteHandler // TODO: set handler name and delete this comment
@@ -166,8 +177,12 @@ service message-api {
 	// 发送消息
 	@handler SendMsgHandler
 	post /messageCenter/SendMsg (SendMsgReq) returns (SendMsgResp)
-	
+
 	// 发送消息
 	@handler MultipleSaveMsgHandler
 	post /messageCenter/MultipleSaveMsg (MultipleSaveMsgReq) returns (MultipleSaveMsgResp)
-}
+
+	// 查询浮标信息
+	@handler GetBuoyMsgHandler
+	post /messageCenter/GetBuoyMsg (GetBuoyMsgReq) returns (GetBuoyMsgResp)
+}