mirror of
https://github.com/CodePhiliaX/Chat2DB.git
synced 2025-09-20 11:15:15 +08:00
Fix some team project bugs
This commit is contained in:
@ -9,6 +9,7 @@ import ai.chat2db.server.domain.api.service.OperationLogService;
|
||||
import ai.chat2db.server.tools.base.wrapper.result.DataResult;
|
||||
import ai.chat2db.server.tools.base.wrapper.result.PageResult;
|
||||
import ai.chat2db.server.tools.base.wrapper.result.web.WebPageResult;
|
||||
import ai.chat2db.server.tools.common.util.ContextUtils;
|
||||
import ai.chat2db.server.web.api.controller.operation.log.converter.OperationLogWebConverter;
|
||||
import ai.chat2db.server.web.api.controller.operation.log.request.OperationLogCreateRequest;
|
||||
import ai.chat2db.server.web.api.controller.operation.log.request.OperationLogQueryRequest;
|
||||
@ -47,6 +48,7 @@ public class OperationLogController {
|
||||
@GetMapping("/list")
|
||||
public WebPageResult<OperationLogVO> list(OperationLogQueryRequest request) {
|
||||
OperationLogPageQueryParam param = operationLogWebConverter.req2param(request);
|
||||
param.setUserId(ContextUtils.getUserId());
|
||||
PageResult<OperationLog> result = operationLogService.queryPage(param);
|
||||
List<OperationLogVO> operationLogVOList = operationLogWebConverter.dto2vo(result.getData());
|
||||
return WebPageResult.of(operationLogVOList, result.getTotal(), result.getPageNo(), result.getPageSize());
|
||||
|
Reference in New Issue
Block a user