1.增强回复类型
This commit is contained in:
@@ -25,6 +25,9 @@ public class EmojisMsgDTO implements Serializable {
|
||||
@Schema(description ="下载地址")
|
||||
@NotBlank
|
||||
private String url;
|
||||
|
||||
@Schema(description ="回复的消息id")
|
||||
private Long replyMsgId;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -28,4 +28,6 @@ public class FileMsgDTO extends BaseFileDTO implements Serializable {
|
||||
@NotBlank
|
||||
private String fileName;
|
||||
|
||||
@Schema(description ="回复的消息id")
|
||||
private Long replyMsgId;
|
||||
}
|
||||
|
||||
@@ -33,6 +33,8 @@ public class ImgMsgDTO extends BaseFileDTO implements Serializable {
|
||||
@NotNull
|
||||
private Integer height;
|
||||
|
||||
@Schema(description ="回复的消息id")
|
||||
private Long replyMsgId;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -28,4 +28,7 @@ public class SoundMsgDTO extends BaseFileDTO implements Serializable {
|
||||
@Schema(description ="时长(秒)")
|
||||
@NotNull
|
||||
private Integer second;
|
||||
|
||||
@Schema(description ="回复的消息id")
|
||||
private Long replyMsgId;
|
||||
}
|
||||
|
||||
@@ -41,4 +41,6 @@ public class VideoMsgDTO extends BaseFileDTO implements Serializable {
|
||||
@NotBlank
|
||||
private String thumbUrl;
|
||||
|
||||
@Schema(description ="回复的消息id")
|
||||
private Long replyMsgId;
|
||||
}
|
||||
|
||||
@@ -30,6 +30,7 @@ public class EmojisMsgHandler extends AbstractMsgHandler<EmojisMsgDTO> {
|
||||
Message update = new Message();
|
||||
update.setId(msg.getId());
|
||||
update.setExtra(extra);
|
||||
update.setReplyMsgId(body.getReplyMsgId());
|
||||
extra.setEmojisMsgDTO(body);
|
||||
messageDao.updateById(update);
|
||||
}
|
||||
|
||||
@@ -30,6 +30,7 @@ public class FileMsgHandler extends AbstractMsgHandler<FileMsgDTO> {
|
||||
Message update = new Message();
|
||||
update.setId(msg.getId());
|
||||
update.setExtra(extra);
|
||||
update.setReplyMsgId(body.getReplyMsgId());
|
||||
extra.setFileMsg(body);
|
||||
messageDao.updateById(update);
|
||||
}
|
||||
|
||||
@@ -30,6 +30,7 @@ public class ImgMsgHandler extends AbstractMsgHandler<ImgMsgDTO> {
|
||||
Message update = new Message();
|
||||
update.setId(msg.getId());
|
||||
update.setExtra(extra);
|
||||
update.setReplyMsgId(body.getReplyMsgId());
|
||||
extra.setImgMsgDTO(body);
|
||||
messageDao.updateById(update);
|
||||
}
|
||||
|
||||
@@ -29,6 +29,7 @@ public class SoundMsgHandler extends AbstractMsgHandler<SoundMsgDTO> {
|
||||
Message update = new Message();
|
||||
update.setId(msg.getId());
|
||||
update.setExtra(extra);
|
||||
update.setReplyMsgId(body.getReplyMsgId());
|
||||
extra.setSoundMsgDTO(body);
|
||||
messageDao.updateById(update);
|
||||
}
|
||||
|
||||
@@ -86,7 +86,6 @@ public class TextMsgHandler extends AbstractMsgHandler<TextMsgReq> {
|
||||
Integer gapCount = messageDao.getGapCount(msg.getRoomId(), body.getReplyMsgId(), msg.getId());
|
||||
update.setGapCount(gapCount);
|
||||
update.setReplyMsgId(body.getReplyMsgId());
|
||||
|
||||
}
|
||||
//判断消息url跳转
|
||||
Map<String, UrlInfo> urlContentMap = URL_TITLE_DISCOVER.getUrlContentMap(body.getContent());
|
||||
|
||||
@@ -30,6 +30,7 @@ public class VideoMsgHandler extends AbstractMsgHandler<VideoMsgDTO> {
|
||||
Message update = new Message();
|
||||
update.setId(msg.getId());
|
||||
update.setExtra(extra);
|
||||
update.setReplyMsgId(body.getReplyMsgId());
|
||||
extra.setVideoMsgDTO(body);
|
||||
messageDao.updateById(update);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user