|
|
@@ -0,0 +1,27 @@
|
|
|
+package thyyxxk.webserver.controller;
|
|
|
+
|
|
|
+import org.springframework.web.bind.annotation.GetMapping;
|
|
|
+import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
+import org.springframework.web.bind.annotation.RequestParam;
|
|
|
+import org.springframework.web.bind.annotation.RestController;
|
|
|
+import thyyxxk.webserver.entity.ResultVo;
|
|
|
+import thyyxxk.webserver.service.DictService;
|
|
|
+
|
|
|
+import java.util.HashMap;
|
|
|
+import java.util.List;
|
|
|
+
|
|
|
+@RestController
|
|
|
+@RequestMapping("/dict")
|
|
|
+public class DictController {
|
|
|
+
|
|
|
+ private final DictService service;
|
|
|
+
|
|
|
+ public DictController(DictService service) {
|
|
|
+ this.service = service;
|
|
|
+ }
|
|
|
+
|
|
|
+ @GetMapping("/selectDictDataList")
|
|
|
+ ResultVo<List<HashMap<String, Object>>> selectDictDataList(@RequestParam("dictType") String dictType){
|
|
|
+ return service.selectDictDataList(dictType);
|
|
|
+ }
|
|
|
+}
|