parent
17061798fe
commit
e43dfd116f
|
|
@ -43,7 +43,6 @@ import javax.servlet.http.HttpServletResponse;
|
||||||
* @date 2021-01-25
|
* @date 2021-01-25
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@Api("接口信息")
|
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("/generator/intertable")
|
@RequestMapping("/generator/intertable")
|
||||||
public class InterTableController extends HcyBaseController {
|
public class InterTableController extends HcyBaseController {
|
||||||
|
|
@ -75,7 +74,6 @@ public class InterTableController extends HcyBaseController {
|
||||||
* 预览代码(工作流)
|
* 预览代码(工作流)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@ApiOperation("预览代码(工作流)")
|
|
||||||
@PreAuthorize("@hchyun.hasPermi('generator:intertable:classpreview')")
|
@PreAuthorize("@hchyun.hasPermi('generator:intertable:classpreview')")
|
||||||
@Log(title = "预览代码(工作流)", businessType = BusinessType.GENCODE)
|
@Log(title = "预览代码(工作流)", businessType = BusinessType.GENCODE)
|
||||||
@GetMapping("/classpreview/{id}")
|
@GetMapping("/classpreview/{id}")
|
||||||
|
|
@ -96,7 +94,6 @@ public class InterTableController extends HcyBaseController {
|
||||||
/**
|
/**
|
||||||
* 预览代码(工作台)
|
* 预览代码(工作台)
|
||||||
*/
|
*/
|
||||||
@ApiOperation("预览代码(工作台)")
|
|
||||||
@PreAuthorize("@hchyun.hasPermi('generator:intertable:modulepreview')")
|
@PreAuthorize("@hchyun.hasPermi('generator:intertable:modulepreview')")
|
||||||
@Log(title = "预览代码(工作台)", businessType = BusinessType.GENCODE)
|
@Log(title = "预览代码(工作台)", businessType = BusinessType.GENCODE)
|
||||||
@GetMapping("/modulepreview/{id}")
|
@GetMapping("/modulepreview/{id}")
|
||||||
|
|
@ -121,7 +118,6 @@ public class InterTableController extends HcyBaseController {
|
||||||
* @param id
|
* @param id
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
@ApiOperation("生成代码(工作流)")
|
|
||||||
@PreAuthorize("@hchyun.hasPermi('generator:intertable:classgen')")
|
@PreAuthorize("@hchyun.hasPermi('generator:intertable:classgen')")
|
||||||
@Log(title = "生成代码(工作流)", businessType = BusinessType.GENCODE)
|
@Log(title = "生成代码(工作流)", businessType = BusinessType.GENCODE)
|
||||||
@GetMapping("/classgen/{id}")
|
@GetMapping("/classgen/{id}")
|
||||||
|
|
@ -147,7 +143,6 @@ public class InterTableController extends HcyBaseController {
|
||||||
* @param response
|
* @param response
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
@ApiOperation("生成代码(工作台)")
|
|
||||||
@PreAuthorize("@hchyun.hasPermi('generator:intertable:moudlegen')")
|
@PreAuthorize("@hchyun.hasPermi('generator:intertable:moudlegen')")
|
||||||
@Log(title = "生成代码(工作台)", businessType = BusinessType.GENCODE)
|
@Log(title = "生成代码(工作台)", businessType = BusinessType.GENCODE)
|
||||||
@GetMapping("/moudlegen/{id}")
|
@GetMapping("/moudlegen/{id}")
|
||||||
|
|
@ -207,18 +202,18 @@ public class InterTableController extends HcyBaseController {
|
||||||
// @PreAuthorize("@hchyun.hasPermi('generator:intertable:export')")
|
// @PreAuthorize("@hchyun.hasPermi('generator:intertable:export')")
|
||||||
// @Log(title = "接口信息", businessType = BusinessType.EXPORT)
|
// @Log(title = "接口信息", businessType = BusinessType.EXPORT)
|
||||||
// @GetMapping("/export")
|
// @GetMapping("/export")
|
||||||
// public AjaxResult export(InterTable interTable) {
|
// public GenResult export(InterTable interTable) {
|
||||||
// try {
|
// try {
|
||||||
// ServerResult<List<InterTable>> serverResult = interTableService.selectInterTableList(interTable);
|
// ServerResult<List<InterTable>> serverResult = interTableService.selectInterTableList(interTable);
|
||||||
// ExcelUtil<InterTable> util = new ExcelUtil<InterTable>(InterTable. class);
|
// ExcelUtil<InterTable> util = new ExcelUtil<InterTable>(InterTable. class);
|
||||||
// if (serverResult.isStart()) {
|
// if (serverResult.isStart()) {
|
||||||
// return util.exportExcel(serverResult.getData(), "intertable");
|
// return util.exportExcel(serverResult.getData(), "intertable");
|
||||||
// } else {
|
// } else {
|
||||||
// return AjaxResult.error(serverResult.getMsg());
|
// return GenResult.error(serverResult.getMsg());
|
||||||
// }
|
// }
|
||||||
// } catch (RuntimeException e) {
|
// } catch (RuntimeException e) {
|
||||||
// logger.error(e.getMessage());
|
// 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')")
|
// @PreAuthorize("@hchyun.hasPermi('generator:intertable:query')")
|
||||||
// @GetMapping(value = "/{id}")
|
// @GetMapping(value = "/{id}")
|
||||||
// public AjaxResult Info(@PathVariable("id") Long id) {
|
// public GenResult Info(@PathVariable("id") Long id) {
|
||||||
// try {
|
// try {
|
||||||
// ServerResult<InterTable> serverResult = interTableService.selectInterTableById(id);
|
// ServerResult<InterTable> serverResult = interTableService.selectInterTableById(id);
|
||||||
// if (serverResult.isStart()) {
|
// if (serverResult.isStart()) {
|
||||||
// return AjaxResult.success(serverResult.getData());
|
// return GenResult.success(serverResult.getData());
|
||||||
// } else {
|
// } else {
|
||||||
// return AjaxResult.info(serverResult.getMsg());
|
// return GenResult.info(serverResult.getMsg());
|
||||||
// }
|
// }
|
||||||
// } catch (RuntimeException e) {
|
// } catch (RuntimeException e) {
|
||||||
// logger.error(e.getMessage());
|
// 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')")
|
// @PreAuthorize("@hchyun.hasPermi('generator:intertable:add')")
|
||||||
// @Log(title = "接口信息", businessType = BusinessType.INSERT)
|
// @Log(title = "接口信息", businessType = BusinessType.INSERT)
|
||||||
// @PostMapping
|
// @PostMapping
|
||||||
// public AjaxResult add(@RequestBody InterTable interTable) {
|
// public GenResult add(@RequestBody InterTable interTable) {
|
||||||
// try {
|
// try {
|
||||||
// ServerResult<Integer> serverResult = interTableService.insertInterTable(interTable);
|
// ServerResult<Integer> serverResult = interTableService.insertInterTable(interTable);
|
||||||
// if (serverResult.isStart()) {
|
// if (serverResult.isStart()) {
|
||||||
// return AjaxResult.success();
|
// return GenResult.success();
|
||||||
// } else {
|
// } else {
|
||||||
// return AjaxResult.error(serverResult.getMsg());
|
// return GenResult.error(serverResult.getMsg());
|
||||||
// }
|
// }
|
||||||
// } catch (RuntimeException e) {
|
// } catch (RuntimeException e) {
|
||||||
// logger.error(e.getMessage());
|
// 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')")
|
// @PreAuthorize("@hchyun.hasPermi('generator:intertable:remove')")
|
||||||
// @Log(title = "接口信息", businessType = BusinessType.DELETE)
|
// @Log(title = "接口信息", businessType = BusinessType.DELETE)
|
||||||
// @DeleteMapping("/{ids}")
|
// @DeleteMapping("/{ids}")
|
||||||
// public AjaxResult remove(@PathVariable Long[] ids) {
|
// public GenResult remove(@PathVariable Long[] ids) {
|
||||||
// try {
|
// try {
|
||||||
// if (ids.length<0){
|
// if (ids.length<0){
|
||||||
// return AjaxResult.error("id不能为空!");
|
// return GenResult.error("id不能为空!");
|
||||||
// }
|
// }
|
||||||
// ServerResult<Integer> serverResult = interTableService.deleteInterTableByIds(ids);
|
// ServerResult<Integer> serverResult = interTableService.deleteInterTableByIds(ids);
|
||||||
// if (serverResult.isStart()) {
|
// if (serverResult.isStart()) {
|
||||||
// return AjaxResult.success();
|
// return GenResult.success();
|
||||||
// } else {
|
// } else {
|
||||||
// return AjaxResult.error(serverResult.getMsg());
|
// return GenResult.error(serverResult.getMsg());
|
||||||
// }
|
// }
|
||||||
// }catch (RuntimeException e){
|
// }catch (RuntimeException e){
|
||||||
// logger.error(e.getMessage());
|
// logger.error(e.getMessage());
|
||||||
// return AjaxResult.error(ReturnConstants.SYS_ERROR);
|
// return GenResult.error(ReturnConstants.SYS_ERROR);
|
||||||
// }
|
// }
|
||||||
// }
|
// }
|
||||||
}
|
}
|
||||||
|
|
@ -15,7 +15,6 @@ import java.util.List;
|
||||||
* @author hchyun
|
* @author hchyun
|
||||||
* @date 2021-01-24
|
* @date 2021-01-24
|
||||||
*/
|
*/
|
||||||
@ApiModel("接口类名")
|
|
||||||
public class Apiclass extends BaseEntity {
|
public class Apiclass extends BaseEntity {
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue