feat: unify signature channel reporting status
This commit is contained in:
@@ -12,6 +12,7 @@ import {
|
||||
CreateReportFieldDto,
|
||||
CreateReportMaterialDto,
|
||||
CreateReportTaskDto,
|
||||
ChangeReportTaskStatusesDto,
|
||||
CreateRouteRuleDto,
|
||||
TestChannelDto,
|
||||
UpsertConnectionStateDto,
|
||||
@@ -145,8 +146,8 @@ export class ChannelsController {
|
||||
}
|
||||
|
||||
@Get('report-tasks')
|
||||
listReportTasks(@Query('tenantId') tenantId?: string, @Query('status') status?: string) {
|
||||
return this.channels.listReportTasks(tenantId, status);
|
||||
listReportTasks(@Query('tenantId') tenantId?: string, @Query('status') status?: string, @Query('channelId') channelId?: string) {
|
||||
return this.channels.listReportTasks(tenantId, status, channelId);
|
||||
}
|
||||
|
||||
@Post('report-tasks/generate')
|
||||
@@ -154,6 +155,11 @@ export class ChannelsController {
|
||||
return this.channels.createReportTask(body);
|
||||
}
|
||||
|
||||
@Post('report-tasks/status-change')
|
||||
changeReportTaskStatuses(@Body() body: ChangeReportTaskStatusesDto) {
|
||||
return this.channels.changeReportTaskStatuses(body);
|
||||
}
|
||||
|
||||
@Post('report-tasks/:id/export')
|
||||
createReportExport(@Param('id') taskId: string, @Body() body: CreateReportExportDto) {
|
||||
return this.channels.createReportExport(taskId, body);
|
||||
|
||||
Reference in New Issue
Block a user