|
@@ -10,9 +10,7 @@ import com.lantone.common.vo.GetAbnormalWayAndIpVO;
|
|
|
import com.lantone.common.vo.GetLoginLogVO;
|
|
|
import com.lantone.common.vo.GetLoginNameAndIpVO;
|
|
|
import com.lantone.common.vo.GetOperationLogVO;
|
|
|
-import com.lantone.dblayermbg.facade.AbnormalLogFacade;
|
|
|
-import com.lantone.dblayermbg.facade.LoginLogFacade;
|
|
|
-import com.lantone.dblayermbg.facade.OperationLogFacade;
|
|
|
+import com.lantone.security.facade.LogManagementFacade;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@@ -35,46 +33,43 @@ import java.util.List;
|
|
|
@RequestMapping("/logManage")
|
|
|
public class LogManagementController {
|
|
|
@Autowired
|
|
|
- private LoginLogFacade loginLogFacade;
|
|
|
- @Autowired
|
|
|
- private OperationLogFacade operationLogFacade;
|
|
|
- @Autowired
|
|
|
- private AbnormalLogFacade abnormalLogFacade;
|
|
|
+ private LogManagementFacade logManagementFacade;
|
|
|
+
|
|
|
|
|
|
@ApiOperation(value = "查看登录日志[by:cy]")
|
|
|
@PostMapping("/getLoginLog")
|
|
|
public CommonResult<IPage<LoginLogDTO>> getLoginLog(@RequestBody GetLoginLogVO getLoginLogVO) {
|
|
|
- return CommonResult.success(loginLogFacade.getLoginLog(getLoginLogVO));
|
|
|
+ return CommonResult.success(logManagementFacade.getLoginLog(getLoginLogVO));
|
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "查看登录日志登录用户|登录ip地址[by:cy]")
|
|
|
@PostMapping("/getLoginLogNameAndIp")
|
|
|
public CommonResult<List<String>> getLoginLogNameAndIp(@RequestBody @Valid GetLoginNameAndIpVO getLoginNameAndIpVO) {
|
|
|
- return CommonResult.success(loginLogFacade.getLoginLogNameAndIp(getLoginNameAndIpVO));
|
|
|
+ return CommonResult.success(logManagementFacade.getLoginLogNameAndIp(getLoginNameAndIpVO));
|
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "查看操作日志[by:cy]")
|
|
|
@PostMapping("/getOperationLog")
|
|
|
public CommonResult<IPage<OperationLogDTO>> getOperationLog(@RequestBody GetOperationLogVO getOperationLogVO) {
|
|
|
- return CommonResult.success(operationLogFacade.getOperationLog(getOperationLogVO));
|
|
|
+ return CommonResult.success(logManagementFacade.getOperationLog(getOperationLogVO));
|
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "查看操作日志操作用户[by:cy]")
|
|
|
@PostMapping("/getOperationLogName")
|
|
|
public CommonResult<List<String>> getOperationLogName(@RequestParam String operationName) {
|
|
|
- return CommonResult.success(operationLogFacade.getOperationLogName(operationName));
|
|
|
+ return CommonResult.success(logManagementFacade.getOperationLogName(operationName));
|
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "查看异常日志[by:cy]")
|
|
|
@PostMapping("/getAbnormalLog")
|
|
|
public CommonResult<IPage<AbnormalLogDTO>> getAbnormalLog(@RequestBody GetAbnormalLogVO getAbnormalLogVO) {
|
|
|
- return CommonResult.success(abnormalLogFacade.getAbnormalLog(getAbnormalLogVO));
|
|
|
+ return CommonResult.success(logManagementFacade.getAbnormalLog(getAbnormalLogVO));
|
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "查看异常日志请求方式|ip地址[by:cy]")
|
|
|
@PostMapping("/getAbnormalLogWayAndIp")
|
|
|
public CommonResult<List<String>> getAbnormalLogWayAndIp(@RequestBody @Valid GetAbnormalWayAndIpVO getAbnormalWayAndIpVO) {
|
|
|
- return CommonResult.success(abnormalLogFacade.getAbnormalLogWayAndIp(getAbnormalWayAndIpVO));
|
|
|
+ return CommonResult.success(logManagementFacade.getAbnormalLogWayAndIp(getAbnormalWayAndIpVO));
|
|
|
}
|
|
|
|
|
|
}
|