ApiMessageFeignService.java 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. package cn.sikey.mcdisk.feign;
  2. import cn.sikey.mcdisk.entity.ActivateCloudPhotoAlbumMessage;
  3. import cn.sikey.mcdisk.entity.MessagingPublishResponse;
  4. import cn.sikey.mcdisk.entity.NotifyParentsSuccessfulActivationMessage;
  5. import cn.sikey.mcdisk.entity.ReloginOnWwatchMessage;
  6. import cn.sikey.mcdisk.feign.fallback.ApiMessageFallbackFactory;
  7. import org.springframework.cloud.openfeign.FeignClient;
  8. import org.springframework.validation.annotation.Validated;
  9. import org.springframework.web.bind.annotation.PostMapping;
  10. import org.springframework.web.bind.annotation.RequestBody;
  11. /**
  12. * @Author: nelson
  13. * @Date: 2025/5/29
  14. * @Description: 消息中心feign
  15. */
  16. @FeignClient(value = "api-message", path = "/api/v2/messagectx/messaging/publish", fallbackFactory = ApiMessageFallbackFactory.class)
  17. public interface ApiMessageFeignService {
  18. /**
  19. * 手表重新登录
  20. *
  21. * @param request 请求
  22. * @return
  23. */
  24. @PostMapping("/reloginWatch")
  25. MessagingPublishResponse reloginOnWwatch(@Validated @RequestBody ReloginOnWwatchMessage request);
  26. /**
  27. * 开通云相册服务通知手表
  28. *
  29. * @param request 请求
  30. * @return
  31. */
  32. @PostMapping("/activateCloudPhotoAlbum")
  33. MessagingPublishResponse activateCloudPhotoAlbum(@Validated @RequestBody ActivateCloudPhotoAlbumMessage request);
  34. /**
  35. * 开通成功通知家长
  36. *
  37. * @param request 请求
  38. * @return
  39. */
  40. @PostMapping("/wristwatch/notifyParentsSuccessful/activation")
  41. MessagingPublishResponse notifyParentsSuccessfulActivation(@Validated @RequestBody NotifyParentsSuccessfulActivationMessage request);
  42. }