陶杰
2024-12-24 a48f9d3e3d8dd7425d4453ce6401210cb315fcb7
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.mzl.flower.web.log;
 
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.mzl.flower.base.BaseController;
import com.mzl.flower.base.R;
import com.mzl.flower.base.ReturnDataDTO;
import com.mzl.flower.dto.request.log.OperationRecordQueryDTO;
import com.mzl.flower.dto.response.log.OperationRecordVO;
import com.mzl.flower.service.log.OperationRecordService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
 
/**
 * @author fanghaowei
 * @version version2.0
 * @className OperationRecordController
 * @date 2024/12/02
 * @description 操作日志功能开发
 */
@Api(value = "操作日志", tags = "操作日志")
@RestController
@RequestMapping("/api")
@RequiredArgsConstructor
public class OperationRecordController extends BaseController {
 
    private final OperationRecordService operationRecordService;
 
    @GetMapping("/operationRecord/list")
    @ApiOperation(value = "操作日志列表", httpMethod = "GET")
    public ResponseEntity<ReturnDataDTO<Page<OperationRecordVO>>> getOperationRecordList(Page page, OperationRecordQueryDTO dto) {
        return returnData(R.SUCCESS.getCode(), operationRecordService.queryPage(dto, page));
    }
 
}