User2UserAccountRelationService.java 755 B

1234567891011121314151617181920212223242526272829303132333435
  1. package com.webchat.user.service.relation;
  2. import com.webchat.common.enums.AccountRelationTypeEnum;
  3. import org.springframework.stereotype.Service;
  4. @Service
  5. public class User2UserAccountRelationService extends AbstractAccountRelationService {
  6. @Override
  7. protected AccountRelationTypeEnum getRelationType() {
  8. return AccountRelationTypeEnum.USER_USER;
  9. }
  10. @Override
  11. protected boolean isAsyncDoAfterComplete() {
  12. return true;
  13. }
  14. @Override
  15. protected void doAfterComplete(Long id, String sourceAccount, String targetAccount, boolean subscribe) {
  16. // TODO
  17. }
  18. /**
  19. * 基于ws,为targetAccount推送订阅消息红点提醒
  20. */
  21. private void doNotifyRedPointByWebSocket() {
  22. }
  23. }