package com.tianbo.warehouse.controller; import com.github.pagehelper.PageInfo; import com.tianbo.warehouse.model.LOGWithBLOBs; import com.tianbo.warehouse.service.LogService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RestController; @RestController public class LogController { @Autowired private LogService logService; @GetMapping("/system/log/list") public PageInfo<LOGWithBLOBs> systemLog(@RequestParam(value = "pageNum",required = false,defaultValue = "1") int pageNum, @RequestParam(value = "pageSize",required = false,defaultValue = "5") int pageSize){ return logService.selectAll(pageNum,pageSize); } }