RemoteMessageBaseService.java 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. package com.sooka.sponest.mobile.remoteapi;
  2. import com.ruoyi.common.core.domain.R;
  3. import com.ruoyi.common.core.web.domain.AjaxResult;
  4. import com.sooka.sponest.mobile.log.LogFeignCall;
  5. import com.sooka.sponest.mobile.base.domain.ModulesServiceNameContants;
  6. import com.sooka.sponest.mobile.event.domain.CentereventMeetingSystemBO;
  7. import com.sooka.sponest.mobile.message.domain.AppMessageVO;
  8. import com.sooka.sponest.mobile.remoteapi.factory.RemoteBaseServiceMessageFactory;
  9. import org.springframework.cloud.openfeign.FeignClient;
  10. import org.springframework.web.bind.annotation.GetMapping;
  11. import org.springframework.web.bind.annotation.PathVariable;
  12. import org.springframework.web.bind.annotation.PostMapping;
  13. import org.springframework.web.bind.annotation.RequestBody;
  14. @FeignClient(contextId = "remoteCenterMessqgeService", value = ModulesServiceNameContants.CENTER_MESSAGE,
  15. fallbackFactory = RemoteBaseServiceMessageFactory.class, url = "${sooka.service.message}")
  16. public interface RemoteMessageBaseService {
  17. @GetMapping("/centerMessageFeign/selectMessageList/{userId}")
  18. @LogFeignCall
  19. public AjaxResult selectAppMessageList(@PathVariable("userId") String userId);
  20. @GetMapping("/centerMessageFeign/selectMessageCount/{userId}")
  21. @LogFeignCall
  22. public AjaxResult selectAppMessageCount(@PathVariable("userId") String userId);
  23. @GetMapping("/centerMessageFeign/selectMessageById/{id}")
  24. @LogFeignCall
  25. public AjaxResult selectAppMessageById(@PathVariable("id") String id);
  26. /**
  27. * 发送会议短信
  28. *
  29. * @param centereventMeetingSystemBO
  30. * @return
  31. */
  32. @PostMapping("/centerMessageFeign/sendMeetingMsg")
  33. @LogFeignCall
  34. public R remoteSendMeetingMsg(@RequestBody CentereventMeetingSystemBO centereventMeetingSystemBO);
  35. @PostMapping("/centerMessageFeign/sendMessageTencentVerifyCode")
  36. AjaxResult sendMessageTencentVerifyCode(@RequestBody AppMessageVO messageVO);
  37. @PostMapping("/centerMessageFeign/verifyVerifyCode")
  38. AjaxResult verifyVerifyCode(@RequestBody AppMessageVO messageVO);
  39. }