|
|
@@ -1,19 +1,6 @@
|
|
1
|
1
|
package com.ruoyi.web.controller.system;
|
|
2
|
2
|
|
|
3
|
|
-import java.util.ArrayList;
|
|
4
|
|
-import java.util.List;
|
|
5
|
|
-import javax.servlet.http.HttpServletResponse;
|
|
6
|
|
-import org.springframework.beans.factory.annotation.Autowired;
|
|
7
|
|
-import org.springframework.security.access.prepost.PreAuthorize;
|
|
8
|
|
-import org.springframework.validation.annotation.Validated;
|
|
9
|
|
-import org.springframework.web.bind.annotation.DeleteMapping;
|
|
10
|
|
-import org.springframework.web.bind.annotation.GetMapping;
|
|
11
|
|
-import org.springframework.web.bind.annotation.PathVariable;
|
|
12
|
|
-import org.springframework.web.bind.annotation.PostMapping;
|
|
13
|
|
-import org.springframework.web.bind.annotation.PutMapping;
|
|
14
|
|
-import org.springframework.web.bind.annotation.RequestBody;
|
|
15
|
|
-import org.springframework.web.bind.annotation.RequestMapping;
|
|
16
|
|
-import org.springframework.web.bind.annotation.RestController;
|
|
|
3
|
+import com.ruoyi.common.annotation.Anonymous;
|
|
17
|
4
|
import com.ruoyi.common.annotation.Log;
|
|
18
|
5
|
import com.ruoyi.common.core.controller.BaseController;
|
|
19
|
6
|
import com.ruoyi.common.core.domain.AjaxResult;
|
|
|
@@ -24,6 +11,14 @@ import com.ruoyi.common.utils.StringUtils;
|
|
24
|
11
|
import com.ruoyi.common.utils.poi.ExcelUtil;
|
|
25
|
12
|
import com.ruoyi.system.service.ISysDictDataService;
|
|
26
|
13
|
import com.ruoyi.system.service.ISysDictTypeService;
|
|
|
14
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
15
|
+import org.springframework.security.access.prepost.PreAuthorize;
|
|
|
16
|
+import org.springframework.validation.annotation.Validated;
|
|
|
17
|
+import org.springframework.web.bind.annotation.*;
|
|
|
18
|
+
|
|
|
19
|
+import javax.servlet.http.HttpServletResponse;
|
|
|
20
|
+import java.util.ArrayList;
|
|
|
21
|
+import java.util.List;
|
|
27
|
22
|
|
|
28
|
23
|
/**
|
|
29
|
24
|
* 数据字典信息
|
|
|
@@ -82,6 +77,20 @@ public class SysDictDataController extends BaseController
|
|
82
|
77
|
}
|
|
83
|
78
|
return success(data);
|
|
84
|
79
|
}
|
|
|
80
|
+ /**
|
|
|
81
|
+ * 根据字典类型查询字典数据信息,跳过token
|
|
|
82
|
+ */
|
|
|
83
|
+ @Anonymous
|
|
|
84
|
+ @GetMapping(value = "/type/skipToken/{dictType}")
|
|
|
85
|
+ public AjaxResult skipToken(@PathVariable String dictType)
|
|
|
86
|
+ {
|
|
|
87
|
+ List<SysDictData> data = dictTypeService.selectDictDataByType(dictType);
|
|
|
88
|
+ if (StringUtils.isNull(data))
|
|
|
89
|
+ {
|
|
|
90
|
+ data = new ArrayList<SysDictData>();
|
|
|
91
|
+ }
|
|
|
92
|
+ return success(data);
|
|
|
93
|
+ }
|
|
85
|
94
|
|
|
86
|
95
|
/**
|
|
87
|
96
|
* 新增字典类型
|