|
@@ -2,6 +2,7 @@ package com.unissoft.sys.controller;
|
2
|
2
|
|
3
|
3
|
|
4
|
4
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
5
|
+import com.unissoft.basic.model.BasicEnum;
|
5
|
6
|
import com.unissoft.common.MyConstant;
|
6
|
7
|
import com.unissoft.common.PageParam;
|
7
|
8
|
import com.unissoft.common.ResultView;
|
|
@@ -13,6 +14,7 @@ import lombok.extern.slf4j.Slf4j;
|
13
|
14
|
import org.springframework.beans.factory.annotation.Autowired;
|
14
|
15
|
import org.springframework.web.bind.annotation.*;
|
15
|
16
|
|
|
17
|
+import java.util.List;
|
16
|
18
|
import java.util.UUID;
|
17
|
19
|
|
18
|
20
|
|
|
@@ -97,4 +99,16 @@ public class LabelInfoController {
|
97
|
99
|
return ResultView.error(MyConstant.ID_NULL);
|
98
|
100
|
}
|
99
|
101
|
|
|
102
|
+ @GetMapping("/getParentsList")
|
|
103
|
+ @ApiOperation(value = "父级列表", notes = "标签父级列表")
|
|
104
|
+ public ResultView getParentsList() {
|
|
105
|
+ try {
|
|
106
|
+ List<LabelInfo> parentsList = labelInfoService.getParentsList();
|
|
107
|
+ return ResultView.success(parentsList);
|
|
108
|
+ } catch (Exception e) {
|
|
109
|
+ e.printStackTrace();
|
|
110
|
+ return ResultView.error();
|
|
111
|
+ }
|
|
112
|
+ }
|
|
113
|
+
|
100
|
114
|
}
|