NotifyCenterFeignClient.java
1.22 KB
package cn.com.glsx.notify.api;
import cn.com.glsx.notify.dto.request.MailMessageRequest;
import cn.com.glsx.notify.dto.request.SmsMessageRequest;
import cn.com.glsx.notify.factory.NotifyCenterFeignFallbackFactory;
import com.glsx.plat.core.web.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.ResponseBody;
@FeignClient(name = "ne-shield-notifycenter", path = "/notifycenter/api/notify/", fallbackFactory = NotifyCenterFeignFallbackFactory.class, decode404 = true)
public interface NotifyCenterFeignClient {
@PostMapping(value = "/sendSms")
R sendSms(@RequestBody SmsMessageRequest messageRequest);
@PostMapping(value = "/sendMail")
R sendMail(@RequestBody MailMessageRequest messageRequest);
/* @PostMapping(value = "/sendPC")
R sendPC(@RequestBody PCMessageRequest messageRequest);*/
/* @PostMapping(value = "/sendWechat")
R sendWechat(@RequestBody WechatMessageRequest messageRequest);*/
@PostMapping(value = "/sendMailOnlyContent")
@ResponseBody
R sendMailOnlyContent(@RequestBody MailMessageRequest messageRequest);
}