package org.security.desk.feign;

import org.security.common.constant.CommonConstant;
import org.security.desk.xyun.res.MsgResponseBody;
import org.springblade.core.tool.api.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(
	value = CommonConstant.APPLICATION_DESK_NAME,
	fallback = IXYunClientFallback.class
)
public interface IXYunClient {
	String API_PREFIX = "/client";
	String SEND_MESSAGE_TO_XYUN = API_PREFIX + "/send-message-to-xyun";

	@GetMapping(SEND_MESSAGE_TO_XYUN)
	R<MsgResponseBody> sendMessageToXYun(@RequestParam("to") String to, @RequestParam("msg") String msg);
}
