|
@@ -69,11 +69,22 @@ public class LifeMessageController {
|
|
|
return R.data(lifeMessageService.getMessageListByReceiverId(receiverId, senderId));
|
|
|
}
|
|
|
|
|
|
- @ApiOperation("消息已读")
|
|
|
+ @ApiOperation("是否是陌生人")
|
|
|
@ApiOperationSupport(order = 5)
|
|
|
@ApiImplicitParams({
|
|
|
@ApiImplicitParam(name = "receiverId", value = "当前登录人", dataType = "String", paramType = "query"),
|
|
|
@ApiImplicitParam(name = "senderId", value = "聊天对方", dataType = "String", paramType = "query")})
|
|
|
+ @GetMapping("/isStranger")
|
|
|
+ public R<String> isStranger(@RequestParam String receiverId, @RequestParam String senderId) throws Exception {
|
|
|
+ log.info("LifeMessageController.isStranger?receiverId={}, senderId={}", receiverId, senderId);
|
|
|
+ return R.data(lifeMessageService.isStranger(receiverId, senderId));
|
|
|
+ }
|
|
|
+
|
|
|
+ @ApiOperation("消息已读")
|
|
|
+ @ApiOperationSupport(order = 6)
|
|
|
+ @ApiImplicitParams({
|
|
|
+ @ApiImplicitParam(name = "receiverId", value = "当前登录人", dataType = "String", paramType = "query"),
|
|
|
+ @ApiImplicitParam(name = "senderId", value = "聊天对方", dataType = "String", paramType = "query")})
|
|
|
@GetMapping("/read")
|
|
|
public R<Boolean> read(@RequestParam String receiverId, @RequestParam String senderId) throws Exception {
|
|
|
log.info("LifeMessageController.read?receiverId={}, senderId={}", receiverId, senderId);
|
|
@@ -82,7 +93,7 @@ public class LifeMessageController {
|
|
|
}
|
|
|
|
|
|
@ApiOperation("删除消息")
|
|
|
- @ApiOperationSupport(order = 6)
|
|
|
+ @ApiOperationSupport(order = 7)
|
|
|
@ApiImplicitParams({
|
|
|
@ApiImplicitParam(name = "senderId", value = "聊天对方", dataType = "String", paramType = "query"),
|
|
|
@ApiImplicitParam(name = "receiverId", value = "当前登录人", dataType = "String", paramType = "query")})
|
|
@@ -93,7 +104,7 @@ public class LifeMessageController {
|
|
|
}
|
|
|
|
|
|
@ApiOperation("未关注人的消息数据")
|
|
|
- @ApiOperationSupport(order = 7)
|
|
|
+ @ApiOperationSupport(order = 8)
|
|
|
@ApiImplicitParams({@ApiImplicitParam(name = "receiverId", value = "当前登录人", dataType = "String", paramType = "query")})
|
|
|
@GetMapping("/getNoFriendMessage")
|
|
|
public R<LifeMessageVo> getNoFriendMessage(@RequestParam String receiverId) throws Exception {
|
|
@@ -102,7 +113,7 @@ public class LifeMessageController {
|
|
|
}
|
|
|
|
|
|
@ApiOperation("未读消息数量")
|
|
|
- @ApiOperationSupport(order = 8)
|
|
|
+ @ApiOperationSupport(order = 9)
|
|
|
@ApiImplicitParams({@ApiImplicitParam(name = "receiverId", value = "当前登录人", dataType = "String", paramType = "query")})
|
|
|
@GetMapping("/noReadCount")
|
|
|
public R<Integer> noReadCount(@RequestParam String receiverId) throws Exception {
|