| | |
| | | } |
| | | |
| | | @GetMapping("{id}") |
| | | public CommonResult<GeneratorCodeHistoryDTO> get(@PathVariable("id") Long id){ |
| | | public CommonResult<GeneratorCodeHistoryDTO> get(@PathVariable("id") String id){ |
| | | GeneratorCodeHistoryDTO data = generatorCodeHistoryService.get(id); |
| | | |
| | | return success(data); |
| | | } |
| | | |
| | | @PostMapping |
| | | public CommonResult save(@RequestBody GeneratorCodeHistoryDTO dto){ |
| | | |
| | | generatorCodeHistoryService.save(dto); |
| | | |
| | | return CommonResult.success(); |
| | | } |
| | | |
| | | @PutMapping |
| | | public CommonResult update(@RequestBody GeneratorCodeHistoryDTO dto){ |
| | | |
| | | generatorCodeHistoryService.update(dto); |
| | | |
| | | return CommonResult.success(); |
| | | } |
| | | |
| | | @DeleteMapping |
| | | public CommonResult delete(@RequestBody Long[] ids){ |
| | | |
| | | generatorCodeHistoryService.delete(ids); |
| | | |
| | | return CommonResult.success(); |
| | | } |
| | | |
| | | @GetMapping("download") |