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));
|
}
|
}
|