| | |
| | | @ApiOperation("新增${functionName}") |
| | | @PreAuthorize("@ss.hasPermi('${permissionPrefix}:add')") |
| | | @Log(title = "${functionName}", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | @PostMapping() |
| | | public AjaxResult<Void> add(@RequestBody ${ClassName}AddBo bo) { |
| | | return toAjax(i${ClassName}Service.insertByAddBo(bo) ? 1 : 0); |
| | | } |
| | |
| | | @ApiOperation("修改${functionName}") |
| | | @PreAuthorize("@ss.hasPermi('${permissionPrefix}:edit')") |
| | | @Log(title = "${functionName}", businessType = BusinessType.UPDATE) |
| | | @PutMapping("/edit") |
| | | @PutMapping() |
| | | public AjaxResult<Void> edit(@RequestBody ${ClassName}EditBo bo) { |
| | | return toAjax(i${ClassName}Service.updateByEditBo(bo) ? 1 : 0); |
| | | } |