package com.yuchen.saas.message.api.feign.ue4;

import com.yuchen.saas.message.api.dto.WebSocketMessagDTO;
import com.yuchen.saas.message.api.feign.ws.WebSocketFeignFallback;
import com.yuchen.saas.message.api.param.MessageParam;
import com.yuchen.saas.message.api.vo.NoticeVo;
import org.nest.springwrap.core.launch.app.AppNameConstant;
import org.nest.springwrap.core.tool.api.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author LLC
 * @date 2022/8/18 11:16
 * @Description
 */
@FeignClient(
        value = AppNameConstant.SAAS_MESSAGE,
        fallbackFactory = UE4MessageFeignFallback.class
)
public interface UE4MessageFeignServer {

    @PostMapping("/UE4Message/sendMessage")
    R sendMessage(@RequestBody MessageParam param);
}
