| | |
| | | * 查询${functionName}列表 |
| | | */ |
| | | @ApiOperation("查询${functionName}列表") |
| | | @PreAuthorize("@ss.hasPermi('${permissionPrefix}:list')") |
| | | //@PreAuthorize("@ss.hasPermi('${permissionPrefix}:list')") |
| | | @GetMapping("/list") |
| | | #if($table.crud || $table.sub) |
| | | public TableDataInfo list(${ClassName} ${className}) |
| | |
| | | * 导出${functionName}列表 |
| | | */ |
| | | @ApiOperation("导出${functionName}列表") |
| | | @PreAuthorize("@ss.hasPermi('${permissionPrefix}:export')") |
| | | //@PreAuthorize("@ss.hasPermi('${permissionPrefix}:export')") |
| | | @Log(title = "${functionName}", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, ${ClassName} ${className}) |
| | |
| | | * 获取${functionName}详细信息 |
| | | */ |
| | | @ApiOperation("获取${functionName}详细信息") |
| | | @PreAuthorize("@ss.hasPermi('${permissionPrefix}:query')") |
| | | //@PreAuthorize("@ss.hasPermi('${permissionPrefix}:query')") |
| | | @GetMapping(value = "/getInfo/{${pkColumn.javaField}}") |
| | | public AjaxResult getInfo(@PathVariable("${pkColumn.javaField}") ${pkColumn.javaType} ${pkColumn.javaField}) |
| | | { |
| | |
| | | /** |
| | | * 新增${functionName} |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('${permissionPrefix}:add')") |
| | | //@PreAuthorize("@ss.hasPermi('${permissionPrefix}:add')") |
| | | @Log(title = "${functionName}", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody ${ClassName} ${className}) |
| | |
| | | * 修改${functionName} |
| | | */ |
| | | @ApiOperation("修改${functionName}") |
| | | @PreAuthorize("@ss.hasPermi('${permissionPrefix}:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('${permissionPrefix}:edit')") |
| | | @Log(title = "${functionName}", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody ${ClassName} ${className}) |
| | |
| | | * 删除${functionName} |
| | | */ |
| | | @ApiOperation("删除${functionName}") |
| | | @PreAuthorize("@ss.hasPermi('${permissionPrefix}:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('${permissionPrefix}:remove')") |
| | | @Log(title = "${functionName}", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{${pkColumn.javaField}s}") |
| | | public AjaxResult remove(@PathVariable ${pkColumn.javaType}[] ${pkColumn.javaField}s) |