...
|
...
|
@@ -8,13 +8,16 @@ import com.monitor.common.util.MD5Util; |
|
|
import com.monitor.influxdb.mapper.UserOperateMapper;
|
|
|
import com.monitor.model.domain.Mail;
|
|
|
import com.monitor.model.domain.PageBean;
|
|
|
import com.monitor.model.domain.SqlOperateModel;
|
|
|
import com.monitor.model.domain.UserOperate;
|
|
|
import com.monitor.model.page.PageRequest;
|
|
|
import com.monitor.model.page.PageResponse;
|
|
|
import com.monitor.model.request.SqlOpLogsReq;
|
|
|
import com.monitor.model.request.UserOperateReq;
|
|
|
import com.monitor.model.response.BaseResponse;
|
|
|
import com.monitor.mysql.mapper.UserMapper;
|
|
|
import com.monitor.mysql.mapper.UserOperateLogMapper;
|
|
|
import com.monitor.user.service.UserOperateLogsServiceImpl;
|
|
|
import com.util.GetUsersInfoUtil;
|
|
|
import org.slf4j.Logger;
|
|
|
import org.slf4j.LoggerFactory;
|
...
|
...
|
@@ -46,6 +49,9 @@ public class UserCtrl { |
|
|
private UserOperateLogMapper userOperateLogMapper;
|
|
|
|
|
|
@Autowired
|
|
|
private UserOperateLogsServiceImpl userOperateLogsService;
|
|
|
|
|
|
@Autowired
|
|
|
private MailService mailService;
|
|
|
|
|
|
@Autowired
|
...
|
...
|
@@ -213,6 +219,13 @@ public class UserCtrl { |
|
|
|
|
|
}
|
|
|
|
|
|
@RequestMapping("/queryUserOperateLogList")
|
|
|
@ResponseBody
|
|
|
public BaseResponse<PageResponse<UserOperate>> queryUserOperateLogList( @RequestBody SqlOpLogsReq req) {
|
|
|
BaseResponse<PageResponse<UserOperate>> resp = userOperateLogsService.queryUserOperateLogsByPage(req);
|
|
|
return resp;
|
|
|
}
|
|
|
|
|
|
@RequestMapping("/operate")
|
|
|
@ResponseBody
|
|
|
public String operate(@RequestBody UserOperateReq userOperateReq) {
|
...
|
...
|
|