审查视图

src/main/java/com/tianbo/warehouse/controller/LogController.java 970 字节
朱兆平 authored
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
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);
    }
}