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.EleEvtFeignClientFallbackFactory;
import com.njcn.system.pojo.param.EleEvtParam;
import com.njcn.system.pojo.po.EleEpdPqd;
import com.njcn.system.pojo.po.EleEvtParm;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @author xuyang
 * @version 1.0.0
 * @date 2021年05月08日 15:11
 */
@FeignClient(value = ServerInfo.SYSTEM,path = "/eleEvtParm",fallbackFactory = EleEvtFeignClientFallbackFactory.class,contextId = "eleEvtParm")
public interface EleEvtFeignClient {

    @PostMapping("/add")
    HttpResult<EleEpdPqd> add(@RequestBody EleEvtParam evtParam);

    @PostMapping("/delete")
    HttpResult<EleEpdPqd> delete(@RequestParam("id") String id);
    @PostMapping("/queryByPid")
    HttpResult<List<EleEvtParm>> queryByPid(@RequestParam("pid") String pid);

}
