package com.xueyi.system.api.sms.feign;

import com.alibaba.fastjson.JSONObject;
import com.xueyi.system.api.sms.domain.vo.SmsReqEntity;
import com.xueyi.system.api.sms.feign.factory.RemoteSmsFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * 短信发送服务
 *
 * @author yrx
 */
@FeignClient(url = "${notification.sms.url}",name = "sms", fallbackFactory = RemoteSmsFallbackFactory.class)
public interface RemoteSmsService {

    @PostMapping("/notification/api/sendSms")
    JSONObject sendSms(@RequestBody SmsReqEntity smsReqEntity);

}