Commit f2136c43d310ac0320c019dfa7af3e01f634f395
1 parent
28cf87ac
feat(im): 清理一些 TODO 的修复
Showing
2 changed files
with
2 additions
and
5 deletions
yudao-module-im/src/main/java/cn/iocoder/yudao/module/im/service/group/ImGroupServiceImpl.java
| ... | ... | @@ -552,11 +552,10 @@ public class ImGroupServiceImpl implements ImGroupService { |
| 552 | 552 | groupMapper.updateById(new ImGroupDO().setId(reqVO.getGroupId()).setMutedAll(reqVO.getMutedAll())); |
| 553 | 553 | |
| 554 | 554 | // 3. 广播通知 |
| 555 | - // TODO @AI:改成 messageSendDTO;其它也是;更好理解一点; | |
| 556 | - ImGroupMessageSendDTO dto = Boolean.TRUE.equals(reqVO.getMutedAll()) | |
| 555 | + ImGroupMessageSendDTO messageSendDTO = Boolean.TRUE.equals(reqVO.getMutedAll()) | |
| 557 | 556 | ? ImGroupMessageSendDTO.ofGroupMuted(reqVO.getGroupId(), userId) |
| 558 | 557 | : ImGroupMessageSendDTO.ofGroupCancelMuted(reqVO.getGroupId(), userId); |
| 559 | - groupMessageService.sendGroupMessage(userId, dto); | |
| 558 | + groupMessageService.sendGroupMessage(userId, messageSendDTO); | |
| 560 | 559 | } |
| 561 | 560 | |
| 562 | 561 | @Override | ... | ... |
yudao-module-im/src/main/java/cn/iocoder/yudao/module/im/service/websocket/dto/notification/group/GroupMutedNotification.java
| 1 | 1 | package cn.iocoder.yudao.module.im.service.websocket.dto.notification.group; |
| 2 | 2 | |
| 3 | 3 | import lombok.Data; |
| 4 | -import lombok.EqualsAndHashCode; | |
| 5 | 4 | |
| 6 | 5 | /** |
| 7 | 6 | * 全群禁言通知 |
| 8 | 7 | */ |
| 9 | 8 | @Data |
| 10 | -@EqualsAndHashCode(callSuper = true) // TODO @AI:不需要添加这个,全局已经默认了; | |
| 11 | 9 | public class GroupMutedNotification extends BaseGroupNotification { |
| 12 | 10 | |
| 13 | 11 | } | ... | ... |