feat: introduce middleware rabbitmq and redis

This commit is contained in:
merlin
2025-12-11 10:37:03 +08:00
parent a1a23bec7a
commit 44133d3667
22 changed files with 404 additions and 42 deletions

View File

@@ -94,16 +94,16 @@ public class InvitingServiceImpl extends ServiceImpl<InvitingMapper, Inviting> {
}
public Integer playroomIsAdmin(Integer id, Integer r_id) {
try {
Playrooms playrooms = playroomsMapper.selectOne(Wrappers.<Playrooms>lambdaQuery().eq(Playrooms::getId,id).eq(Playrooms::getR_id,r_id));
if (playrooms == null) return 1;
else return playrooms.getRole();
} catch (Exception e) {
log.error(e.getMessage());
throw new RuntimeException(e);
}
}
// public Integer playroomIsAdmin(Integer id, Integer r_id) {
// try {
// Playrooms playrooms = playroomsMapper.selectOne(Wrappers.<Playrooms>lambdaQuery().eq(Playrooms::getId,id).eq(Playrooms::getR_id,r_id));
// if (playrooms == null) return 1;
// else return playrooms.getRole();
// } catch (Exception e) {
// log.error(e.getMessage());
// throw new RuntimeException(e);
// }
// }
public Boolean handlePlayroomInviting(Inviting inviting) {
try {