| | |
| | | */ |
| | | @GetMapping("/get-details") |
| | | @ApiOperation("根据id获取字段分类详情") |
| | | public R<FieldCategoryDetailVO> getById(@RequestParam(value = "id") Integer id) { |
| | | public R<FieldCategoryDetailVO> getById(@RequestParam(value = "id") Long id) { |
| | | try { |
| | | FieldCategoryDetailVO vo = tbFieldCategoryService.getDetailsById(id); |
| | | return R.ok(vo); |
| | |
| | | */ |
| | | @DeleteMapping("/delete-children") |
| | | @ApiOperation("编辑页面删除子字段分类") |
| | | public R<Object> deleteChildren(@RequestParam(value = "id") Integer id){ |
| | | public R<Object> deleteChildren(@RequestParam(value = "id") Long id){ |
| | | try { |
| | | tbFieldCategoryService.deleteChildren(id); |
| | | } catch (Exception e) { |
| | |
| | | */ |
| | | @DeleteMapping("/delete") |
| | | @ApiOperation("列表页面删除分类") |
| | | public R<Void> delete(@RequestParam(value = "id") Integer id){ |
| | | public R<Void> delete(@RequestParam(value = "id") Long id){ |
| | | try { |
| | | tbFieldCategoryService.delete(id); |
| | | } catch (Exception e) { |