fix: decouple channel test sms records

This commit is contained in:
hectorzhao
2026-07-09 12:23:43 +08:00
parent c58a010951
commit e0579857c6
13 changed files with 190 additions and 135 deletions
@@ -13,8 +13,15 @@ export class AdminSendChainController {
}
@Get('messages')
listMessages(@Query('taskId') taskId?: string, @Query('phoneNumber') phoneNumber?: string) {
return this.sendChain.listMessages(taskId, phoneNumber);
listMessages(
@Query('tenantId') tenantId?: string,
@Query('applicationId') applicationId?: string,
@Query('channelId') channelId?: string,
@Query('taskId') taskId?: string,
@Query('phoneNumber') phoneNumber?: string,
@Query('status') status?: string,
) {
return this.sendChain.listMessages({ tenantId, applicationId, channelId, taskId, phoneNumber, status });
}
@Get('submit-records')