Search in sources :

Example 1 with MsgLog

use of com.github.lybgeek.mybatisplus.msg.entity.MsgLog in project springboot-learning by lyb-geek.

the class MsgLogController method pagemsgLogs.

@ApiOperation(value = "查找msgLog", tags = { "msgLog" }, nickname = "pageMsgLogs")
@ApiResponses(value = { @ApiResponse(code = 200, message = "操作是否成功,200:成功,否则失败") })
@ApiImplicitParams({ @ApiImplicitParam(name = "curPage", value = "页数", defaultValue = "1", dataTypeClass = Long.class, paramType = "query", required = true), @ApiImplicitParam(name = "pageSize", value = "条数", defaultValue = "20", dataTypeClass = Long.class, paramType = "query", required = true) })
@GetMapping(value = "/page", produces = { "application/json" })
public Page<MsgLog> pagemsgLogs(@RequestParam(value = "curPage") Long curPage, @RequestParam(value = "pageSize") Long pageSize) {
    Page page = new Page(curPage, pageSize);
    Page<MsgLog> pageMsg = (Page<MsgLog>) msgLogService.page(page);
    return pageMsg;
}
Also used : Page(com.baomidou.mybatisplus.extension.plugins.pagination.Page) MsgLog(com.github.lybgeek.mybatisplus.msg.entity.MsgLog)

Aggregations

Page (com.baomidou.mybatisplus.extension.plugins.pagination.Page)1 MsgLog (com.github.lybgeek.mybatisplus.msg.entity.MsgLog)1