value
2024-05-15 862d71a72acc5f7b4f5a2e7b7b7303d73b800691
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
40
41
42
package com.yuanchu.mom.controller;
 
 
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yuanchu.mom.annotation.ValueAuth;
import com.yuanchu.mom.pojo.PageSystemLogDto;
import com.yuanchu.mom.service.SystemLogService;
import com.yuanchu.mom.utils.JackSonUtil;
import com.yuanchu.mom.vo.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.AllArgsConstructor;
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;
 
import java.util.Map;
 
/**
 * 系统日志(SystemLog)表控制层
 *
 * @author makejava
 * @since 2024-02-27 17:04:09
 */
@RestController
@RequestMapping("/systemLog")
@Api(tags = "系统日志")
@AllArgsConstructor
public class SystemLogController  {
 
    private SystemLogService systemLogService;
 
    @ValueAuth
    @ApiOperation(value = "获取系统日志列表")
    @PostMapping("/selectSystemLogList")
    public Result selectSystemLogList(@RequestBody Map<String, Object> data) throws Exception {
        Page page = JackSonUtil.unmarshal(JackSonUtil.marshal(data.get("page")), Page.class);
        PageSystemLogDto pageSystemLogDto = JackSonUtil.unmarshal(JackSonUtil.marshal(data.get("entity")), PageSystemLogDto.class);
        return Result.success(systemLogService.selectSystemLogList(page, pageSystemLogDto));
    }
}