Newer
Older
newfiber-termite / newfiber-api / newfiber-api-system / src / main / java / com / newfiber / system / api / RemoteSmsService.java
@xiongkai xiongkai 27 days ago 943 bytes 统计优化
package com.newfiber.system.api;

import com.newfiber.common.core.constant.ServiceNameConstants;
import com.newfiber.common.core.web.domain.Result;
import com.newfiber.system.api.factory.RemoteSmsFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 短信服务
 * 
 * @author newfiber
 */
@FeignClient(contextId = "remoteSmsService", value = ServiceNameConstants.SYSTEM_SERVICE, fallbackFactory = RemoteSmsFallbackFactory.class)
public interface RemoteSmsService {

	/**
	 * 发送信息
	 * @param code 短信配置编号
	 * @param params 自定义短信参数
	 * @param phones 手机号集合
	 */
    @PostMapping("/sms/endpoint/send-message")
	Result<String> sendMessage(@RequestParam("code") String code, @RequestParam("params") String params, @RequestParam("phones") String phones);
}