| | |
| | | @ApiOperation("添加") |
| | | @LogSave(operationType = "音柱管理", contain = "添加音柱") |
| | | public CommonResult add(@RequestBody Loudspeaker loudspeaker) { |
| | | return CommonResult.success(null); |
| | | loudspeaker.setState(Short.valueOf("1")); |
| | | loudspeakerService.save(loudspeaker); |
| | | return CommonResult.success(true); |
| | | } |
| | | |
| | | @PutMapping("/update") |
| | | @ApiOperation("编辑") |
| | | @LogSave(operationType = "音柱管理", contain = "修改音柱") |
| | | public CommonResult update(@RequestBody Loudspeaker loudspeaker) { |
| | | return CommonResult.success(null); |
| | | loudspeakerService.updateById(loudspeaker); |
| | | return CommonResult.success(true); |
| | | } |
| | | |
| | | @DeleteMapping("/delete/{id}") |
| | | @ApiOperation("删除") |
| | | @LogSave(operationType = "音柱管理", contain = "删除音柱") |
| | | public CommonResult delete(@PathVariable Long id) { |
| | | return CommonResult.success(null); |
| | | loudspeakerService.removeById(id); |
| | | return CommonResult.success(true); |
| | | } |
| | | |
| | | |