fix: connect operations pages to real backend
This commit is contained in:
@@ -39,6 +39,11 @@ export class AdminOperationsController {
|
||||
return this.operations.dashboard({ tenantId });
|
||||
}
|
||||
|
||||
@Get('dashboard/statistics')
|
||||
dashboardStatistics(@Query('tenantId') tenantId?: string) {
|
||||
return this.operations.dashboard({ tenantId });
|
||||
}
|
||||
|
||||
@Get('statistics')
|
||||
statistics(@Query('tenantId') tenantId?: string, @Query('groupBy') groupBy?: string) {
|
||||
return this.operations.statistics({ tenantId, groupBy });
|
||||
@@ -72,3 +77,22 @@ export class AdminOperationsController {
|
||||
}
|
||||
}
|
||||
|
||||
@ApiTags('admin-system-logs')
|
||||
@Controller('admin/system-logs')
|
||||
export class AdminSystemLogsController {
|
||||
constructor(private readonly operations: OperationsService) {}
|
||||
|
||||
@Get()
|
||||
list(
|
||||
@Query('tenantId') tenantId?: string,
|
||||
@Query('userId') userId?: string,
|
||||
@Query('keyword') keyword?: string,
|
||||
@Query('level') level?: string,
|
||||
@Query('module') module?: string,
|
||||
@Query('range') range?: string,
|
||||
@Query('page') page?: string,
|
||||
@Query('pageSize') pageSize?: string,
|
||||
) {
|
||||
return this.operations.systemLogs({ tenantId, userId, keyword, level, module, range, page: Number(page), pageSize: Number(pageSize) });
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user