|
@@ -12,6 +12,7 @@ import io.swagger.annotations.ApiResponse;
|
|
|
import io.swagger.annotations.ApiResponses;
|
|
|
import com.zglc.fm.base.Result;
|
|
|
import com.zglc.fm.entity.LogEntity;
|
|
|
+import com.zglc.fm.entity.LogFind;
|
|
|
import com.zglc.fm.service.LogService;
|
|
|
|
|
|
|
|
@@ -80,8 +81,9 @@ public class LogController {
|
|
|
@ApiResponse(code = 0, message = "成功")
|
|
|
})
|
|
|
@PostMapping("findByLog")
|
|
|
- public Result<List<LogEntity>> findByLog(@RequestBody LogEntity log){
|
|
|
- return logService.findByLog(log);
|
|
|
+ public Result<PageInfo<LogEntity>> findByLog(@RequestBody LogFind log,Integer page, Integer size){
|
|
|
+ PageHelper.startPage(page, size, "id desc");
|
|
|
+ return Result.success(new PageInfo<>(logService.findByLog(log)));
|
|
|
}
|
|
|
|
|
|
}
|