|
@@ -6,7 +6,9 @@ import com.lantone.common.dto.AbnormalLogDTO;
|
|
|
import com.lantone.common.dto.LoginLogDTO;
|
|
|
import com.lantone.common.dto.OperationLogDTO;
|
|
|
import com.lantone.common.vo.GetAbnormalLogVO;
|
|
|
+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;
|
|
@@ -20,6 +22,7 @@ import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestParam;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
+import javax.validation.Valid;
|
|
|
import java.util.List;
|
|
|
|
|
|
/**
|
|
@@ -46,8 +49,8 @@ public class LogManagementController {
|
|
|
|
|
|
@ApiOperation(value = "查看登录日志登录用户|登录ip地址[by:cy]")
|
|
|
@PostMapping("/getLoginLogNameAndIp")
|
|
|
- public CommonResult<List<String>> getLoginLogNameAndIp(@RequestBody GetLoginLogVO getLoginLogVO) {
|
|
|
- return CommonResult.success(loginLogFacade.getLoginLogNameAndIp(getLoginLogVO));
|
|
|
+ public CommonResult<List<String>> getLoginLogNameAndIp(@RequestBody @Valid GetLoginNameAndIpVO getLoginNameAndIpVO) {
|
|
|
+ return CommonResult.success(loginLogFacade.getLoginLogNameAndIp(getLoginNameAndIpVO));
|
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "查看操作日志[by:cy]")
|
|
@@ -70,8 +73,8 @@ public class LogManagementController {
|
|
|
|
|
|
@ApiOperation(value = "查看异常日志请求方式|ip地址[by:cy]")
|
|
|
@PostMapping("/getAbnormalLogWayAndIp")
|
|
|
- public CommonResult<List<String>> getAbnormalLogWayAndIp(@RequestBody GetAbnormalLogVO getAbnormalLogVO) {
|
|
|
- return CommonResult.success(abnormalLogFacade.getAbnormalLogWayAndIp(getAbnormalLogVO));
|
|
|
+ public CommonResult<List<String>> getAbnormalLogWayAndIp(@RequestBody @Valid GetAbnormalWayAndIpVO getAbnormalWayAndIpVO) {
|
|
|
+ return CommonResult.success(abnormalLogFacade.getAbnormalLogWayAndIp(getAbnormalWayAndIpVO));
|
|
|
}
|
|
|
|
|
|
}
|