Optimize SysLogController

This commit is contained in:
2023-11-08 18:18:48 +08:00
parent 34c831a138
commit 0ff2698f33
10 changed files with 121 additions and 30 deletions

View File

@@ -30,12 +30,10 @@ class SysLogController(
) {
@Operation(summary = "获取")
@GetMapping
fun get(@Valid sysLogGetParam: SysLogGetParam): ResponseResult<PageVo<SysLogGetVo>> {
fun get(@Valid sysLogGetParam: SysLogGetParam?): ResponseResult<PageVo<SysLogGetVo>> {
return ResponseResult.success(
ResponseCode.DATABASE_SELECT_SUCCESS, data = SysLogConverter.sysLogPageToSysLogPageVo(
sysLogService.getPage(
sysLogGetParam.currentPage, sysLogGetParam.pageSize
)
sysLogService.getPage(sysLogGetParam)
)
)
}