|
|
@@ -103,6 +103,25 @@ public class SysMultiLayerDictionaryController {
|
|
|
}
|
|
|
|
|
|
|
|
|
+ /**
|
|
|
+ * 获取单个字典
|
|
|
+ */
|
|
|
+// @Log(title = "字典类型", businessType = BusinessType.DELETE)
|
|
|
+ @GetMapping("/{id}")
|
|
|
+ public AjaxResult getById(@PathVariable Long id) {
|
|
|
+ return AjaxResult.success( sysMultiLayerDictionaryService.getById(id));
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 删除字典类型
|
|
|
+ */
|
|
|
+// @Log(title = "字典类型", businessType = BusinessType.DELETE)
|
|
|
+ @DeleteMapping("/{id}")
|
|
|
+ public AjaxResult remove(@PathVariable Long id) {
|
|
|
+ sysMultiLayerDictionaryService.removeById(id);
|
|
|
+ return AjaxResult.success();
|
|
|
+ }
|
|
|
+
|
|
|
@ApiOperation("字典数组,平铺结构")
|
|
|
@GetMapping("/list")
|
|
|
private AjaxResult getDictList() {
|