|
|
@ -49,7 +49,6 @@ public class SysDictController { |
|
|
|
|
|
|
|
@Log("新增字典") |
|
|
|
@PostMapping |
|
|
|
|
|
|
|
public ResponseEntity<Object> create(@RequestBody Dict dict){ |
|
|
|
dictService.create(dict); |
|
|
|
return new ResponseEntity<>(HttpStatus.CREATED); |
|
|
@ -57,14 +56,12 @@ public class SysDictController { |
|
|
|
|
|
|
|
@PutMapping |
|
|
|
@Log("修改字典") |
|
|
|
|
|
|
|
public ResponseEntity<Object> updateDict(@Validated @RequestBody Dict dto){ |
|
|
|
dictService.updateDict(dto); |
|
|
|
return new ResponseEntity<>(HttpStatus.NO_CONTENT); |
|
|
|
} |
|
|
|
|
|
|
|
@Log("删除字典") |
|
|
|
|
|
|
|
@DeleteMapping |
|
|
|
public ResponseEntity<Object> delete(@RequestBody Set<String> ids){ |
|
|
|
dictService.deleteBatchByIds(ids); |
|
|
@ -72,7 +69,6 @@ public class SysDictController { |
|
|
|
} |
|
|
|
|
|
|
|
@GetMapping("/dictDetail") |
|
|
|
|
|
|
|
public ResponseEntity<Object> queryDetails(@RequestParam Map criteria, PageQuery pageable){ |
|
|
|
DictQuery dictQuery = JSONObject.parseObject(JSONObject.toJSONString(criteria), DictQuery.class); |
|
|
|
return new ResponseEntity<>(TableDataInfo.build(dictService.queryAllDetail(dictQuery,pageable)),HttpStatus.OK); |
|
|
@ -90,7 +86,6 @@ public class SysDictController { |
|
|
|
} |
|
|
|
|
|
|
|
@Log("新增字典详情") |
|
|
|
|
|
|
|
@PostMapping("/dictDetail") |
|
|
|
public ResponseEntity<Object> createDetail(@RequestBody Dict resources){ |
|
|
|
dictService.createDetail(resources); |
|
|
@ -98,7 +93,6 @@ public class SysDictController { |
|
|
|
} |
|
|
|
|
|
|
|
@Log("修改字典详情") |
|
|
|
|
|
|
|
@PutMapping("/dictDetail") |
|
|
|
public ResponseEntity<Object> updateDetail(@RequestBody Dict resources){ |
|
|
|
dictService.updateDetail(resources); |
|
|
@ -106,7 +100,6 @@ public class SysDictController { |
|
|
|
} |
|
|
|
|
|
|
|
@Log("删除字典详情") |
|
|
|
|
|
|
|
@DeleteMapping(value = "/dictDetail/{id}") |
|
|
|
public ResponseEntity<Object> deleteDetail(@PathVariable String id){ |
|
|
|
dictService.deleteDetail(id); |
|
|
|