mitao
2024-04-19 b21c37b7899b17dede7773db3c799aab1063ae1c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
package com.finance.web.controller.api;
 
 
import com.finance.common.basic.PageDTO;
import com.finance.common.core.domain.R;
import com.finance.system.query.OperLogQuery;
import com.finance.system.service.TbOperLogService;
import com.finance.system.vo.OperLogVO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
 
/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author mitao
 * @since 2024-04-15
 */
@Api(tags = {"操作日志"})
@RestController
@RequestMapping("/oper-log")
@RequiredArgsConstructor
public class TbOperLogController {
 
    private final TbOperLogService tbOperLogService;
 
    @ApiOperation("查询日志列表")
    @PostMapping("/page")
    public R<PageDTO<OperLogVO>> queryPage(@Validated @RequestBody OperLogQuery query) {
        return R.ok(tbOperLogService.queryPage(query));
    }
}