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.EleWaveFeignClientFallbackFactory;
import com.njcn.system.pojo.param.CsWaveParam;
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;

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

    @PostMapping("/add")
    HttpResult<String> add(@RequestBody CsWaveParam waveParam);

    @PostMapping("/delete")
    @ApiOperation("删除波形拓展数据")
    HttpResult<String> delete(@RequestParam("id") String id);

}
