| | |
| | | package com.whyc.controller; |
| | | |
| | | import com.github.pagehelper.PageInfo; |
| | | import com.whyc.dto.OperationLogConditionDTO; |
| | | import com.whyc.dto.Response; |
| | | import com.whyc.pojo.OperationLog; |
| | | import com.whyc.service.OperationLogService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | @RequestMapping("operationLog") |
| | | @RestController |
| | |
| | | @Slf4j |
| | | public class OperationLogController { |
| | | |
| | | @Autowired |
| | | private OperationLogService service; |
| | | |
| | | @PostMapping("page") |
| | | @ApiOperation(value = "查询分页") |
| | | public Response<PageInfo<OperationLog>> getPage(@RequestParam int pageNum, |
| | | @RequestParam int pageSize, |
| | | @RequestBody OperationLogConditionDTO logConditionDTO){ |
| | | return service.getPage(pageNum,pageSize,logConditionDTO); |
| | | |
| | | } |
| | | |
| | | } |