| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- package com.nb.log.controller;
- import cn.dev33.satoken.annotation.SaCheckPermission;
- import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
- import com.nb.log.service.ISysLogService;
- import com.nb.log.service.dto.SysLogQueryDTO;
- import com.nb.core.annotation.Log;
- import com.nb.core.result.R;
- import io.swagger.annotations.Api;
- import org.springframework.web.bind.annotation.GetMapping;
- import org.springframework.web.bind.annotation.RequestMapping;
- import org.springframework.web.bind.annotation.RequestParam;
- import org.springframework.web.bind.annotation.RestController;
- import javax.annotation.Resource;
- /**
- * <p>
- * 操作日志表 前端控制器
- * </p>
- *
- * @author Kevin
- * @since 2021-07-12
- */
- @RestController
- @Api(tags = "操作日志")
- @RequestMapping("/system/sysLog")
- public class SysLogController {
- @Resource
- private ISysLogService sysLogService;
- /**
- * 分页查询
- */
- @GetMapping("/page")
- @SaCheckPermission("system:sysLog:page")
- @Log(title = "操作日志分页查询")
- public R page(Page reqPage, SysLogQueryDTO req) {
- return R.success(sysLogService.page(reqPage, req));
- }
- /**
- * 查看
- */
- @GetMapping("/view")
- @SaCheckPermission("system:sysLog:view")
- @Log(title = "操作日志查看")
- public R view(@RequestParam String id) {
- return R.success(sysLogService.view(id));
- }
- }
|