|
@@ -1,42 +1,42 @@
|
|
|
-//package com.gis.admin.controller;
|
|
|
-//
|
|
|
-//
|
|
|
-//import com.gis.common.base.entity.dto.PageDateDto;
|
|
|
-//import com.gis.common.base.entity.vo.LogVo;
|
|
|
-//import com.gis.common.base.service.LogService;
|
|
|
-//import com.gis.common.util.Result;
|
|
|
-//import io.swagger.annotations.Api;
|
|
|
-//import io.swagger.annotations.ApiOperation;
|
|
|
-//import lombok.extern.log4j.Log4j2;
|
|
|
-//import org.apache.shiro.authz.annotation.Logical;
|
|
|
-//import org.apache.shiro.authz.annotation.RequiresRoles;
|
|
|
-//import org.springframework.beans.factory.annotation.Autowired;
|
|
|
-//import org.springframework.web.bind.annotation.PostMapping;
|
|
|
-//import org.springframework.web.bind.annotation.RequestBody;
|
|
|
-//import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
-//import org.springframework.web.bind.annotation.RestController;
|
|
|
-//
|
|
|
-//
|
|
|
-///**
|
|
|
-// * Created by owen on 2020/5/12 0018 12:17
|
|
|
-// * 日志管理,只有admin权限访问
|
|
|
-// */
|
|
|
-//@Log4j2
|
|
|
-//@Api(tags = "sys-日志管理")
|
|
|
-//@RestController
|
|
|
-//@RequestMapping("sys/log")
|
|
|
-//@RequiresRoles(value = {"sys_admin"}, logical = Logical.OR)
|
|
|
-//public class LogController {
|
|
|
-//
|
|
|
-// @Autowired
|
|
|
-// public LogService logService;
|
|
|
-//
|
|
|
-//
|
|
|
-// @ApiOperation("列表")
|
|
|
-// @PostMapping("list")
|
|
|
-// public Result<LogVo> list(@RequestBody PageDateDto param) {
|
|
|
-//
|
|
|
-// return logService.search(param);
|
|
|
-// }
|
|
|
-//
|
|
|
-//}
|
|
|
+package com.gis.admin.controller;
|
|
|
+
|
|
|
+
|
|
|
+import com.gis.common.base.entity.dto.PageDateDto;
|
|
|
+import com.gis.common.base.entity.vo.LogVo;
|
|
|
+import com.gis.common.base.service.LogService;
|
|
|
+import com.gis.common.util.Result;
|
|
|
+import io.swagger.annotations.Api;
|
|
|
+import io.swagger.annotations.ApiOperation;
|
|
|
+import lombok.extern.log4j.Log4j2;
|
|
|
+import org.apache.shiro.authz.annotation.Logical;
|
|
|
+import org.apache.shiro.authz.annotation.RequiresRoles;
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.web.bind.annotation.PostMapping;
|
|
|
+import org.springframework.web.bind.annotation.RequestBody;
|
|
|
+import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
+import org.springframework.web.bind.annotation.RestController;
|
|
|
+
|
|
|
+
|
|
|
+/**
|
|
|
+ * Created by owen on 2020/5/12 0018 12:17
|
|
|
+ * 日志管理,只有admin权限访问
|
|
|
+ */
|
|
|
+@Log4j2
|
|
|
+@Api(tags = "sys-日志管理")
|
|
|
+@RestController
|
|
|
+@RequestMapping("sys/log")
|
|
|
+@RequiresRoles(value = {"sys_admin"}, logical = Logical.OR)
|
|
|
+public class LogController {
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ public LogService logService;
|
|
|
+
|
|
|
+
|
|
|
+ @ApiOperation("列表")
|
|
|
+ @PostMapping("list")
|
|
|
+ public Result<LogVo> list(@RequestBody PageDateDto param) {
|
|
|
+
|
|
|
+ return logService.search(param);
|
|
|
+ }
|
|
|
+
|
|
|
+}
|