package com.ydtech.modules.admin.controller; import com.ydtech.core.page.HttpResult; import com.ydtech.modules.admin.service.SysLogService; import com.ydtech.modules.admin.model.vo.SysLogQueryVO; import org.springframework.beans.factory.annotation.Autowired; 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; /** * 日志控制器 * * @author Yasepix * @date Oct 29, 2018 */ @RestController @RequestMapping("log") public class SysLogController { @Autowired private SysLogService sysLogService; // @PreAuthorize("hasAuthority('sys:log:view')") @PostMapping(value = "/findPage") public HttpResult findPage(@RequestBody SysLogQueryVO sysLogQueryVO) { return HttpResult.ok(sysLogService.selectPaging(sysLogQueryVO)); } }