feat: add sms send chain phase

This commit is contained in:
hectorzhao
2026-07-01 13:39:26 +08:00
parent 56f835a00f
commit 27bb2d798a
11 changed files with 981 additions and 2 deletions
@@ -0,0 +1,30 @@
import { Body, Controller, Post } from '@nestjs/common';
import { ApiTags } from '@nestjs/swagger';
import {
GatewayReceiptEventDto,
GatewaySubmitResultDto,
GatewayUplinkEventDto,
SendChainService,
} from './send-chain.service';
@ApiTags('gateway-events')
@Controller('gateway/events')
export class GatewayEventsController {
constructor(private readonly sendChain: SendChainService) {}
@Post('submit-result')
submitResult(@Body() body: GatewaySubmitResultDto) {
return this.sendChain.handleSubmitResult(body);
}
@Post('receipt')
receipt(@Body() body: GatewayReceiptEventDto) {
return this.sendChain.handleReceipt(body);
}
@Post('uplink')
uplink(@Body() body: GatewayUplinkEventDto) {
return this.sendChain.handleUplink(body);
}
}