Commit 279314bd by zhiwj

模块分组

parent 39f4c212
......@@ -32,7 +32,7 @@ public class DataExplainController {
@Autowired
private IndexLogApiService indexLogApiService;
@RequestMapping("/saveDataExplain")
@RequestMapping("/save-data-explain")
public RestResponse saveDataExplain(DataExplainDTO dataExplainDTO) {
if (StringUtils.isBlank(dataExplainDTO.getDataName()) || StringUtils.isBlank(dataExplainDTO.getIndexRemark())) {
return RestResponse.failure(ErrorCode.PARAMETER_ERROR.getCode(), ErrorCode.PARAMETER_ERROR.getMsg());
......@@ -41,37 +41,37 @@ public class DataExplainController {
return ResultControllerUtils.commonResult(serviceResponse);
}
@RequestMapping("/updateDataExplain")
@RequestMapping("/update-data-explain")
public RestResponse updateDataExplain(DataExplainDTO dataExplainDTO, Integer updateType, String reason) {
ServiceResponse<Void> serviceResponse = dataExplainApiService.updateDataExplain(dataExplainDTO, updateType, reason);
return ResultControllerUtils.commonResult(serviceResponse);
}
@RequestMapping("/getByDataExplainId")
@RequestMapping("/get-by-data-explain-id")
public RestResponse getByDataExplainId(Integer dataExplainId) {
ServiceResponse<DataExplainDTO> serviceResponse = dataExplainApiService.getByDataExplainId(dataExplainId);
return ResultControllerUtils.commonResult(serviceResponse);
}
@RequestMapping("/listDataExplain")
@RequestMapping("/list-data-explain")
public RestResponse listDataExplain(DataExplainQO dataExplainQO) {
ServiceResponse<Page<DataExplainDTO>> serviceResponse = dataExplainApiService.listDataExplain(dataExplainQO);
return ResultControllerUtils.commonResult(serviceResponse);
}
@RequestMapping("/dataExplainLog")
@RequestMapping("/data-explain-log")
public RestResponse dataExplainLog(Integer dataExplainId) {
ServiceResponse<List<IndexLogDTO>> serviceResponse = indexLogApiService.listDataExplainLog(dataExplainId);
return ResultControllerUtils.commonResult(serviceResponse);
}
@RequestMapping("/deleteDataExplain")
@RequestMapping("/delete-data-explain")
public RestResponse delete(Integer dataExplainId) {
ServiceResponse<Void> serviceResponse = dataExplainApiService.delete(dataExplainId);
return ResultControllerUtils.commonResult(serviceResponse);
}
@RequestMapping("/publishDataExplain")
@RequestMapping("/publish-data-explain")
public RestResponse publishIndex(String dataExplainIds) {
if (StringUtils.isBlank(dataExplainIds)) {
return RestResponse.failure(ErrorCode.PARAMETER_ERROR.getCode(), ErrorCode.PARAMETER_ERROR.getMsg());
......
......@@ -39,7 +39,7 @@ public class IndexController {
private IndexLogApiService indexLogApiService;
@RequestMapping("/saveIndex")
@RequestMapping("/save-index")
public RestResponse saveIndex(IndexDTO indexDTO, String relModuleIds) {
if (indexDTO.getClassifyType() == null ||
StringUtils.isBlank(indexDTO.getCode()) ||
......@@ -58,7 +58,7 @@ public class IndexController {
return ResultControllerUtils.commonResult(serviceResponse);
}
@RequestMapping("/updateIndex")
@RequestMapping("/update-index")
public RestResponse updateIndex(IndexDTO indexDTO, Integer updateType, String reason) {
if (indexDTO.getIndexId() == null || updateType == null) {
return RestResponse.failure(ErrorCode.PARAMETER_ERROR.getCode(), ErrorCode.PARAMETER_ERROR.getMsg());
......@@ -67,31 +67,31 @@ public class IndexController {
return ResultControllerUtils.commonResult(serviceResponse);
}
@RequestMapping("/getByIndexId")
@RequestMapping("/get-by-index-id")
public RestResponse getByIndexId(Integer indexId) {
ServiceResponse<IndexDTO> serviceResponse = indexApiService.getByIndexId(indexId);
return ResultControllerUtils.commonResult(serviceResponse);
}
@RequestMapping("/listIndex")
@RequestMapping("/list-index")
public RestResponse listIndex(IndexQO indexQO) {
ServiceResponse<Page<IndexDTO>> serviceResponse = indexApiService.listIndex(indexQO);
return ResultControllerUtils.commonResult(serviceResponse);
}
@RequestMapping("/indexLog")
@RequestMapping("/index-log")
public RestResponse indexLog(Integer indexId) {
ServiceResponse<List<IndexLogDTO>> serviceResponse = indexLogApiService.listIndexLog(indexId);
return ResultControllerUtils.commonResult(serviceResponse);
}
@RequestMapping("/deleteIndex")
@RequestMapping("/delete-index")
public RestResponse delete(Integer indexId) {
ServiceResponse<Void> serviceResponse = indexApiService.delete(indexId);
return ResultControllerUtils.commonResult(serviceResponse);
}
@RequestMapping("/publishIndex")
@RequestMapping("/publish-index")
public RestResponse publishIndex(String indexIds) {
if (StringUtils.isBlank(indexIds)) {
return RestResponse.failure(ErrorCode.PARAMETER_ERROR.getCode(), ErrorCode.PARAMETER_ERROR.getMsg());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment