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