package com.njcn.system.api;

import com.njcn.common.pojo.constant.ServerInfo;
import com.njcn.common.pojo.response.HttpResult;
import com.njcn.system.api.fallback.RocketMqLogFeignClientFallbackFactory;
import com.njcn.system.pojo.po.RocketmqMsgErrorLog;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author hongawen
 * @version 1.0.0
 * @date 2023年08月18日 09:29
 */
@FeignClient(value = ServerInfo.SYSTEM, path = "/rocketmqMsgErrorLog", fallbackFactory = RocketMqLogFeignClientFallbackFactory.class, contextId = "rocketmqMsgErrorLog")
public interface RocketMqLogFeignClient {

    @PostMapping("/add")
    HttpResult<Object> add(@RequestBody RocketmqMsgErrorLog rocketmqMsgErrorLog);

}
