Commit 794990b5 authored by liuyang's avatar liuyang

完成操作日志查询功能

parent 7b091318
package com.qkdata.biz.sys.controller; package com.qkdata.biz.sys.controller;
import com.qkdata.biz.common.BizConstants;
import com.qkdata.biz.sys.entity.SysLogPO; import com.qkdata.biz.sys.entity.SysLogPO;
import com.qkdata.biz.sys.service.SysLogService; import com.qkdata.biz.sys.service.SysLogService;
import com.qkdata.biz.sys.vo.QueryLogModel; import com.qkdata.biz.sys.vo.QueryLogModel;
import com.qkdata.common.base.model.PageResult; import com.qkdata.common.base.model.PageResult;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import org.apache.shiro.authz.annotation.Logical;
import org.apache.shiro.authz.annotation.RequiresRoles;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestBody;
...@@ -19,6 +22,7 @@ public class SysLogController { ...@@ -19,6 +22,7 @@ public class SysLogController {
private SysLogService sysLogService; private SysLogService sysLogService;
@PostMapping("/list") @PostMapping("/list")
@RequiresRoles(value = {BizConstants.ROLE_ADMIN,BizConstants.ROLE_OPERATOR},logical = Logical.OR)
public PageResult<SysLogPO> list(@RequestBody QueryLogModel queryLogModel){ public PageResult<SysLogPO> list(@RequestBody QueryLogModel queryLogModel){
return sysLogService.queryPageList(queryLogModel); return sysLogService.queryPageList(queryLogModel);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment