liujie
2025-04-28 125188b338a603de0d3bf6bad7a3f803b7306fa2
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.panzhihua.sangeshenbian.api;
 
 
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.panzhihua.common.model.vos.R;
import com.panzhihua.sangeshenbian.model.entity.SystemLog;
import com.panzhihua.sangeshenbian.model.query.SystemLogQuery;
import com.panzhihua.sangeshenbian.service.ISystemLogService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
 
/**
 * <p>
 * 日志表 前端控制器
 * </p>
 *
 * @author 
 * @since 2025-04-28
 */
@RestController
@RequestMapping("/system-log")
public class SystemLogController {
 
 
    @Autowired
    private ISystemLogService systemLogMapper;
 
    @GetMapping("/list")
    @ApiOperation(value = "获取日志数据", tags = {"三个身边后台-日志"})
    public R<IPage<SystemLog>> list(SystemLogQuery query){
        IPage<SystemLog> list = systemLogMapper.getLogList(query);
        return R.ok(list);
    }
 
 
}