Jelajahi Sumber

Merge remote-tracking branch 'origin/feature/v1.2.7' into feature/v1.2.7

# Conflicts:
#	rpc/internal/logic/deletemultiplemessagelogic.go
#	rpc/internal/logic/deletesinglemessagelogic.go
#	rpc/internal/server/messageserver.go
wangkaiyue 2 tahun lalu
induk
melakukan
eafcb6a435

+ 2 - 2
api/message.api

@@ -200,8 +200,8 @@ service message-api {
 	@handler MessageTypeHandler
 	get /messageCenter/messageType (MessageTypeReq) returns (MessageTypeRes)
 	// 修改指定用户的某个分类的消息为已读
-	@handler MessageSetReadStatusHandler
-	post /messageCenter/messageSetReadStatus (MsgReadStatusReq) returns (MsgReadStatusResp)
+//	@handler MessageSetReadStatusHandler
+//	post /messageCenter/messageSetReadStatus (MsgReadStatusReq) returns (MsgReadStatusResp)
 	// 标记为已读
 	@handler MarkReadHandler
 	post /messageCenter/markRead (MarkReadReq) returns (MarkReadRes)

+ 2 - 2
rpc/internal/logic/deletemultiplemessagelogic.go

@@ -1,9 +1,9 @@
 package logic
 
 import (
-	service "app.yhyue.com/moapp/MessageCenter/rpc/internal/common"
 	"app.yhyue.com/moapp/MessageCenter/rpc/messageclient"
 	"app.yhyue.com/moapp/MessageCenter/rpc/type/message"
+	"app.yhyue.com/moapp/MessageCenter/service"
 	"context"
 	"strings"
 
@@ -25,7 +25,7 @@ func NewDeleteMultipleMessageLogic(ctx context.Context, svcCtx *svc.ServiceConte
 	}
 }
 
-// 删除多条消息
+//  删除多条消息
 func (l *DeleteMultipleMessageLogic) DeleteMultipleMessage(in *messageclient.DeleteMultipleMessageRequest) (*messageclient.Response, error) {
 	// todo: add your logic here and delete this line
 	m := &service.MessageService{}

+ 2 - 2
rpc/internal/logic/deletesinglemessagelogic.go

@@ -1,8 +1,8 @@
 package logic
 
 import (
-	service "app.yhyue.com/moapp/MessageCenter/rpc/internal/common"
 	"app.yhyue.com/moapp/MessageCenter/rpc/messageclient"
+	"app.yhyue.com/moapp/MessageCenter/service"
 	"context"
 
 	"app.yhyue.com/moapp/MessageCenter/rpc/internal/svc"
@@ -23,7 +23,7 @@ func NewDeleteSingleMessageLogic(ctx context.Context, svcCtx *svc.ServiceContext
 	}
 }
 
-// 删除单一消息
+//  删除单一消息
 func (l *DeleteSingleMessageLogic) DeleteSingleMessage(in *messageclient.DeleteSingleMessageRequest) (*messageclient.Response, error) {
 	// todo: add your logic here and delete this line
 

+ 2 - 30
rpc/message.proto

@@ -16,7 +16,7 @@ message SendMsgRequest {
     string appid = 10; //应用标识
 }
 
-message ChangeReadStatusRequest {
+message ChangeReadStatusReq {
     string id = 1; // 消息id
     int64 readStatus = 2; // 阅读状态 0-未读 1-已读
     string appid = 3; //应用标识
@@ -25,16 +25,6 @@ message ResCount {
     int64 msgType = 1; // 类型及未读数量
     int64 count = 2; // 类型及未读数量
 }
-// 删除单一消息
-message DeleteSingleMessageRequest {
-    string id = 1; // 消息id
-    string appid = 3; //应用标识
-}
-// 批量删除消息
-message DeleteMultipleMessageRequest {
-    string id = 1; // 多条消息id, 逗号分隔
-    string appid = 3; //应用标识
-}
 // 查询指定用户未读消息合计
 message GetUnreadCountRequest {
     string userId = 1; // 用户id
@@ -135,18 +125,6 @@ message GetMsgTypeRes {
     repeated int64 data = 3; //
 }
 
-//更新分类下消息状态 已读、未读
-message UpdateMessageReadReq {
-    int64 msgType = 1;
-    string receiveUserid = 2;
-    string appId = 3;
-}
-message UpdateMessageReadResp {
-    int64 code = 1; //状态码
-    string message = 2; //响应消息
-    int64 status = 3;
-}
-
 message user {
     string userId = 1;
     string userName = 2;
@@ -260,13 +238,9 @@ service Message {
     //批量保存消息
     rpc multipleSaveMsg (multipleSaveMsgReq) returns (multipleSaveMsgResp);
     // 修改消息阅读状态
-    rpc ChangeReadStatus (ChangeReadStatusRequest) returns (Response);
+    rpc ChangeReadStatus (ChangeReadStatusReq) returns (Response);
     //指定用户发消息
     rpc SendUserMsg (SendMsgRequest) returns (Response);
-    // 删除单一消息
-    rpc DeleteSingleMessage (DeleteSingleMessageRequest) returns (Response);
-    // 删除多条消息
-    rpc DeleteMultipleMessage (DeleteMultipleMessageRequest) returns (Response);
     //  查询指定用户未读消息合计
     rpc GetUnreadCount (GetUnreadCountRequest) returns (GetUnreadCountResponse);
     //  查询指定用户的历史消息记录
@@ -281,8 +255,6 @@ service Message {
     rpc GetUnreadClassCount (GetUnreadClassCountReq) returns (GetUnreadClassCountRes);
     //  获取指定用户收到消息的分类
     rpc GetMsgType (GetMsgTypeReq) returns (GetMsgTypeRes);
-    //修改用户指定分类下的消息已读未读
-    rpc UpdateMessageRead (UpdateMessageReadReq) returns (UpdateMessageReadResp);
     //  查询指定用户的浮标消息
     rpc FindUserBuoyMsg (FindUserBuoyMsgReq) returns (FindUserBuoyMsgRes);