| | |
| | | package com.vci.ubcs.log.controller; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.vci.ubcs.log.service.ILogOperateService; |
| | | import com.vci.ubcs.starter.web.pagemodel.BladeQueryObject; |
| | | import lombok.AllArgsConstructor; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springblade.core.log.model.LogOperate; |
| | | import org.springblade.core.tenant.annotation.NonDS; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import org.springblade.core.tool.api.R; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | |
| | | /** |
| | | * 操作日志管理:(包括登录日志、操作日志、授权日志,以及管理员的以上三种日志) |
| | |
| | | @RequestMapping("/operateLog") |
| | | public class LogOperateController { |
| | | |
| | | private final ILogOperateService operateLogService; |
| | | |
| | | /** |
| | | * 查询日志列表 |
| | | * @param bladeQueryObject |
| | | * @return |
| | | */ |
| | | @GetMapping("/listLogOperate") |
| | | public R<IPage<LogOperate>> listLogOperate(BladeQueryObject bladeQueryObject) { |
| | | return R.data(operateLogService.listByCondition(bladeQueryObject)); |
| | | } |
| | | |
| | | /** |
| | | * 根据oid查询日志详情 |
| | | * @param oid |
| | | * @return |
| | | */ |
| | | @GetMapping("/detailByOid") |
| | | public R<LogOperate> detailByOid(String oid) { |
| | | return R.data(operateLogService.detailByOid(oid)); |
| | | } |
| | | |
| | | } |