diff --git a/hzims-service/message/src/main/java/com/hnac/hzims/message/service/IMessageService.java b/hzims-service/message/src/main/java/com/hnac/hzims/message/service/IMessageService.java index fbb4ae0..a929844 100644 --- a/hzims-service/message/src/main/java/com/hnac/hzims/message/service/IMessageService.java +++ b/hzims-service/message/src/main/java/com/hnac/hzims/message/service/IMessageService.java @@ -17,6 +17,6 @@ public interface IMessageService { */ R send(T pushObject); - Boolean send(MessagePushRecordEntity request); + boolean send(MessagePushRecordEntity request); } diff --git a/hzims-service/message/src/main/java/com/hnac/hzims/message/service/impl/MailMessageServiceImpl.java b/hzims-service/message/src/main/java/com/hnac/hzims/message/service/impl/MailMessageServiceImpl.java index 03051ba..d0aa1fc 100644 --- a/hzims-service/message/src/main/java/com/hnac/hzims/message/service/impl/MailMessageServiceImpl.java +++ b/hzims-service/message/src/main/java/com/hnac/hzims/message/service/impl/MailMessageServiceImpl.java @@ -77,8 +77,8 @@ public class MailMessageServiceImpl implements IMessageService { } @Override - public Boolean send(MessagePushRecordEntity request) { - return null; + public boolean send(MessagePushRecordEntity request) { + return false; } } diff --git a/hzims-service/message/src/main/java/com/hnac/hzims/message/service/impl/PushMessageServiceImpl.java b/hzims-service/message/src/main/java/com/hnac/hzims/message/service/impl/PushMessageServiceImpl.java index 6f19844..f3ba8b9 100644 --- a/hzims-service/message/src/main/java/com/hnac/hzims/message/service/impl/PushMessageServiceImpl.java +++ b/hzims-service/message/src/main/java/com/hnac/hzims/message/service/impl/PushMessageServiceImpl.java @@ -85,7 +85,7 @@ public class PushMessageServiceImpl implements IMessageService { } @Override - public Boolean send(MessagePushRecordEntity request) { + public boolean send(MessagePushRecordEntity request) { PushInfoVO pushInfoVO = new PushInfoVO(); pushInfoVO.setTenantId(Func.isNotEmpty(AuthUtil.getTenantId()) ? AuthUtil.getTenantId() : request.getTenantId()); ArrayList platformTypes = Lists.newArrayList(PlatformType.Android, PlatformType.IOS); diff --git a/hzims-service/message/src/main/java/com/hnac/hzims/message/service/impl/SmsMessageServiceImpl.java b/hzims-service/message/src/main/java/com/hnac/hzims/message/service/impl/SmsMessageServiceImpl.java index b614eb6..b4058d6 100644 --- a/hzims-service/message/src/main/java/com/hnac/hzims/message/service/impl/SmsMessageServiceImpl.java +++ b/hzims-service/message/src/main/java/com/hnac/hzims/message/service/impl/SmsMessageServiceImpl.java @@ -47,7 +47,7 @@ public class SmsMessageServiceImpl implements IMessageService { } @Override - public Boolean send(MessagePushRecordEntity request) { + public boolean send(MessagePushRecordEntity request) { R response = smsClient.sendMessage( Func.isNotEmpty(AuthUtil.getTenantId()) ? AuthUtil.getTenantId() : request.getTenantId(), request.getResourceCode(), diff --git a/hzims-service/message/src/main/java/com/hnac/hzims/message/service/impl/WebsocketServiceImpl.java b/hzims-service/message/src/main/java/com/hnac/hzims/message/service/impl/WebsocketServiceImpl.java index 161e8eb..07730aa 100644 --- a/hzims-service/message/src/main/java/com/hnac/hzims/message/service/impl/WebsocketServiceImpl.java +++ b/hzims-service/message/src/main/java/com/hnac/hzims/message/service/impl/WebsocketServiceImpl.java @@ -86,7 +86,7 @@ public class WebsocketServiceImpl implements IMessageService { } @Override - public Boolean send(MessagePushRecordEntity request) { + public boolean send(MessagePushRecordEntity request) { String userId = request.getAccount(); request.setPushTime(LocalDateTime.now()); WebSocketSession webSocketSession = SessionManager.SESSION_POOL.get(userId); @@ -104,6 +104,6 @@ public class WebsocketServiceImpl implements IMessageService { redisTemplate.opsForList().leftPush(key,message); redisTemplate.expire(key,24, TimeUnit.HOURS); } - return null; + return true; } }