治理指标字典功能调整
This commit is contained in:
@@ -9,6 +9,7 @@ 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
|
||||
@@ -19,7 +20,9 @@ import org.springframework.web.bind.annotation.RequestBody;
|
||||
public interface EleEvtFeignClient {
|
||||
|
||||
@PostMapping("/add")
|
||||
@ApiOperation("新增事件拓展数据")
|
||||
HttpResult<EleEpdPqd> add(@RequestBody EleEvtParam evtParam);
|
||||
|
||||
@PostMapping("/delete")
|
||||
HttpResult<EleEpdPqd> delete(@RequestParam("id") String id);
|
||||
|
||||
}
|
||||
|
||||
@@ -8,6 +8,7 @@ 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
|
||||
@@ -18,7 +19,10 @@ import org.springframework.web.bind.annotation.RequestBody;
|
||||
public interface EleWaveFeignClient {
|
||||
|
||||
@PostMapping("/add")
|
||||
@ApiOperation("新增波形拓展数据")
|
||||
HttpResult<String> add(@RequestBody CsWaveParam waveParam);
|
||||
|
||||
@PostMapping("/delete")
|
||||
@ApiOperation("删除波形拓展数据")
|
||||
HttpResult<String> delete(@RequestParam("id") String id);
|
||||
|
||||
}
|
||||
|
||||
@@ -41,6 +41,12 @@ public class EleEvtFeignClientFallbackFactory implements FallbackFactory<EleEvtF
|
||||
log.error("{}异常,降级处理,异常为:{}","新增事件拓展数据",cause.toString());
|
||||
throw new BusinessException(finalExceptionEnum);
|
||||
}
|
||||
|
||||
@Override
|
||||
public HttpResult<EleEpdPqd> delete(String id) {
|
||||
log.error("{}异常,降级处理,异常为:{}","删除事件拓展数据",cause.toString());
|
||||
throw new BusinessException(finalExceptionEnum);
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -35,6 +35,12 @@ public class EleWaveFeignClientFallbackFactory implements FallbackFactory<EleWav
|
||||
log.error("{}异常,降级处理,异常为:{}","新增波形拓展数据",cause.toString());
|
||||
throw new BusinessException(finalExceptionEnum);
|
||||
}
|
||||
|
||||
@Override
|
||||
public HttpResult<String> delete(String id) {
|
||||
log.error("{}异常,降级处理,异常为:{}","删除波形拓展数据",cause.toString());
|
||||
throw new BusinessException(finalExceptionEnum);
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -20,4 +20,6 @@ public class CsWaveParam {
|
||||
|
||||
private String data;
|
||||
|
||||
private String showName;
|
||||
|
||||
}
|
||||
|
||||
@@ -22,4 +22,6 @@ public class EleEvtParam {
|
||||
|
||||
private String data;
|
||||
|
||||
private String showName;
|
||||
|
||||
}
|
||||
|
||||
@@ -26,4 +26,6 @@ public class CsWaveParm {
|
||||
|
||||
private String data;
|
||||
|
||||
private String showName;
|
||||
|
||||
}
|
||||
|
||||
@@ -34,4 +34,6 @@ public class EleEvtParm {
|
||||
|
||||
private String data;
|
||||
|
||||
private String showName;
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user