IFeignMailSender.java 503 B

12345678910111213141516171819
  1. package cn.gygxzc.envir.email;
  2. import cn.gygxzc.envir.core.entity.MailEntity;
  3. import org.springframework.cloud.openfeign.FeignClient;
  4. import org.springframework.web.bind.annotation.PostMapping;
  5. import org.springframework.web.bind.annotation.RequestBody;
  6. /**
  7. * 用Feign进行服务间调用方式发送邮件
  8. *
  9. * @author tuonina
  10. * @createTime 2019/3/4
  11. */
  12. @FeignClient("msg")
  13. public interface IFeignMailSender {
  14. @PostMapping(value = "/mail")
  15. void sendMail(@RequestBody MailEntity mail);
  16. }