diff --git a/hchyun/hchyun-generator/src/main/java/com/hchyun/generator/controller/InterTableController.java b/hchyun/hchyun-generator/src/main/java/com/hchyun/generator/controller/InterTableController.java index 7f81674..8cf1e6a 100644 --- a/hchyun/hchyun-generator/src/main/java/com/hchyun/generator/controller/InterTableController.java +++ b/hchyun/hchyun-generator/src/main/java/com/hchyun/generator/controller/InterTableController.java @@ -43,7 +43,6 @@ import javax.servlet.http.HttpServletResponse; * @date 2021-01-25 */ -@Api("接口信息") @RestController @RequestMapping("/generator/intertable") public class InterTableController extends HcyBaseController { @@ -75,7 +74,6 @@ public class InterTableController extends HcyBaseController { * 预览代码(工作流) */ - @ApiOperation("预览代码(工作流)") @PreAuthorize("@hchyun.hasPermi('generator:intertable:classpreview')") @Log(title = "预览代码(工作流)", businessType = BusinessType.GENCODE) @GetMapping("/classpreview/{id}") @@ -96,7 +94,6 @@ public class InterTableController extends HcyBaseController { /** * 预览代码(工作台) */ - @ApiOperation("预览代码(工作台)") @PreAuthorize("@hchyun.hasPermi('generator:intertable:modulepreview')") @Log(title = "预览代码(工作台)", businessType = BusinessType.GENCODE) @GetMapping("/modulepreview/{id}") @@ -121,7 +118,6 @@ public class InterTableController extends HcyBaseController { * @param id * @return */ - @ApiOperation("生成代码(工作流)") @PreAuthorize("@hchyun.hasPermi('generator:intertable:classgen')") @Log(title = "生成代码(工作流)", businessType = BusinessType.GENCODE) @GetMapping("/classgen/{id}") @@ -147,7 +143,6 @@ public class InterTableController extends HcyBaseController { * @param response * @return */ - @ApiOperation("生成代码(工作台)") @PreAuthorize("@hchyun.hasPermi('generator:intertable:moudlegen')") @Log(title = "生成代码(工作台)", businessType = BusinessType.GENCODE) @GetMapping("/moudlegen/{id}") @@ -207,18 +202,18 @@ public class InterTableController extends HcyBaseController { // @PreAuthorize("@hchyun.hasPermi('generator:intertable:export')") // @Log(title = "接口信息", businessType = BusinessType.EXPORT) // @GetMapping("/export") -// public AjaxResult export(InterTable interTable) { +// public GenResult export(InterTable interTable) { // try { // ServerResult> serverResult = interTableService.selectInterTableList(interTable); // ExcelUtil util = new ExcelUtil(InterTable. class); // if (serverResult.isStart()) { // return util.exportExcel(serverResult.getData(), "intertable"); // } else { -// return AjaxResult.error(serverResult.getMsg()); +// return GenResult.error(serverResult.getMsg()); // } // } catch (RuntimeException e) { // logger.error(e.getMessage()); -// return AjaxResult.error(ReturnConstants.SYS_ERROR); +// return GenResult.error(ReturnConstants.SYS_ERROR); // } // } @@ -227,17 +222,17 @@ public class InterTableController extends HcyBaseController { // */ // @PreAuthorize("@hchyun.hasPermi('generator:intertable:query')") // @GetMapping(value = "/{id}") -// public AjaxResult Info(@PathVariable("id") Long id) { +// public GenResult Info(@PathVariable("id") Long id) { // try { // ServerResult serverResult = interTableService.selectInterTableById(id); // if (serverResult.isStart()) { -// return AjaxResult.success(serverResult.getData()); +// return GenResult.success(serverResult.getData()); // } else { -// return AjaxResult.info(serverResult.getMsg()); +// return GenResult.info(serverResult.getMsg()); // } // } catch (RuntimeException e) { // logger.error(e.getMessage()); -// return AjaxResult.error(ReturnConstants.SYS_ERROR); +// return GenResult.error(ReturnConstants.SYS_ERROR); // } // } // @@ -247,17 +242,17 @@ public class InterTableController extends HcyBaseController { // @PreAuthorize("@hchyun.hasPermi('generator:intertable:add')") // @Log(title = "接口信息", businessType = BusinessType.INSERT) // @PostMapping -// public AjaxResult add(@RequestBody InterTable interTable) { +// public GenResult add(@RequestBody InterTable interTable) { // try { // ServerResult serverResult = interTableService.insertInterTable(interTable); // if (serverResult.isStart()) { -// return AjaxResult.success(); +// return GenResult.success(); // } else { -// return AjaxResult.error(serverResult.getMsg()); +// return GenResult.error(serverResult.getMsg()); // } // } catch (RuntimeException e) { // logger.error(e.getMessage()); -// return AjaxResult.error(ReturnConstants.SYS_ERROR); +// return GenResult.error(ReturnConstants.SYS_ERROR); // } // } // @@ -267,20 +262,20 @@ public class InterTableController extends HcyBaseController { // @PreAuthorize("@hchyun.hasPermi('generator:intertable:remove')") // @Log(title = "接口信息", businessType = BusinessType.DELETE) // @DeleteMapping("/{ids}") -// public AjaxResult remove(@PathVariable Long[] ids) { +// public GenResult remove(@PathVariable Long[] ids) { // try { // if (ids.length<0){ -// return AjaxResult.error("id不能为空!"); +// return GenResult.error("id不能为空!"); // } // ServerResult serverResult = interTableService.deleteInterTableByIds(ids); // if (serverResult.isStart()) { -// return AjaxResult.success(); +// return GenResult.success(); // } else { -// return AjaxResult.error(serverResult.getMsg()); +// return GenResult.error(serverResult.getMsg()); // } // }catch (RuntimeException e){ // logger.error(e.getMessage()); -// return AjaxResult.error(ReturnConstants.SYS_ERROR); +// return GenResult.error(ReturnConstants.SYS_ERROR); // } // } } \ No newline at end of file diff --git a/hchyun/hchyun-generator/src/main/java/com/hchyun/generator/entity/Apiclass.java b/hchyun/hchyun-generator/src/main/java/com/hchyun/generator/entity/Apiclass.java index bb4a2e3..f5829d3 100644 --- a/hchyun/hchyun-generator/src/main/java/com/hchyun/generator/entity/Apiclass.java +++ b/hchyun/hchyun-generator/src/main/java/com/hchyun/generator/entity/Apiclass.java @@ -15,7 +15,6 @@ import java.util.List; * @author hchyun * @date 2021-01-24 */ -@ApiModel("接口类名") public class Apiclass extends BaseEntity {