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

import com.yuchen.saas.message.api.dto.RocketMqDTO;
import com.yuchen.saas.message.api.feign.ue4.UE4MessageFeignFallback;
import com.yuchen.saas.message.api.param.MessageParam;
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 = RocketMqFeignFallback.class
)
public interface RocketMqFeignServer {

    @PostMapping("/rocketMq/sendRocketMqAsync")
    R sendMessage(@RequestBody RocketMqDTO param);
}
