|
@@ -0,0 +1,33 @@
|
|
|
+package com.nokia.controller.web;
|
|
|
+
|
|
|
+import com.nokia.common.R;
|
|
|
+import com.nokia.pojo.AclSystem;
|
|
|
+import com.nokia.service.SystemService;
|
|
|
+import io.swagger.v3.oas.annotations.Operation;
|
|
|
+import io.swagger.v3.oas.annotations.tags.Tag;
|
|
|
+import org.springframework.web.bind.annotation.PostMapping;
|
|
|
+import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
+import org.springframework.web.bind.annotation.RestController;
|
|
|
+
|
|
|
+import java.util.List;
|
|
|
+
|
|
|
+@Tag(name = "系统")
|
|
|
+@RestController
|
|
|
+@RequestMapping("api/web/system")
|
|
|
+public class WebSystemController {
|
|
|
+ private final SystemService systemService;
|
|
|
+
|
|
|
+ public WebSystemController(SystemService systemService) {
|
|
|
+ this.systemService = systemService;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 查询系统列表
|
|
|
+ *
|
|
|
+ */
|
|
|
+ @Operation(summary = "查询系统列表")
|
|
|
+ @PostMapping("list")
|
|
|
+ public R<List<AclSystem>> list() {
|
|
|
+ return systemService.list();
|
|
|
+ }
|
|
|
+}
|