fix: close sms scheduling and billing gaps
This commit is contained in:
@@ -2,6 +2,7 @@ import { Body, Controller, Get, Param, Post, Query } from '@nestjs/common';
|
||||
import { ApiTags } from '@nestjs/swagger';
|
||||
import {
|
||||
ChannelsService,
|
||||
ChangeChannelStatusDto,
|
||||
CreateChannelDto,
|
||||
CreateChannelGroupDto,
|
||||
CreateChannelGroupItemDto,
|
||||
@@ -11,6 +12,7 @@ import {
|
||||
CreateReportMaterialDto,
|
||||
CreateReportTaskDto,
|
||||
CreateRouteRuleDto,
|
||||
UpsertConnectionStateDto,
|
||||
} from './channels.service';
|
||||
|
||||
@ApiTags('channels')
|
||||
@@ -33,11 +35,31 @@ export class ChannelsController {
|
||||
return this.channels.testChannel(channelId);
|
||||
}
|
||||
|
||||
@Post('channels/:id/status')
|
||||
changeChannelStatus(@Param('id') channelId: string, @Body() body: ChangeChannelStatusDto) {
|
||||
return this.channels.changeChannelStatus(channelId, body);
|
||||
}
|
||||
|
||||
@Get('channels/:id/metrics')
|
||||
listChannelMetrics(@Param('id') channelId: string) {
|
||||
return this.channels.listChannelMetrics(channelId);
|
||||
}
|
||||
|
||||
@Get('channels/:id/connections')
|
||||
listChannelConnections(@Param('id') channelId: string) {
|
||||
return this.channels.listChannelConnections(channelId);
|
||||
}
|
||||
|
||||
@Get('tenants/:id/connections')
|
||||
listTenantConnections(@Param('id') tenantId: string) {
|
||||
return this.channels.listTenantConnections(tenantId);
|
||||
}
|
||||
|
||||
@Post('gateway/connections')
|
||||
upsertConnectionState(@Body() body: UpsertConnectionStateDto) {
|
||||
return this.channels.upsertConnectionState(body);
|
||||
}
|
||||
|
||||
@Get('channel-groups')
|
||||
listGroups() {
|
||||
return this.channels.listGroups();
|
||||
|
||||
Reference in New Issue
Block a user