import { Controller, Get, Post, Body, Patch, Param, Delete, UseGuards } from '@nestjs/common';
import { SendingSmsAppointmentCompletedService } from './sending_sms_appointment_completed.service';
import { ThrottlerGuard, SkipThrottle } from '@nestjs/throttler';

@Controller('sending-sms-appointment-completed')
export class SendingSmsAppointmentCompletedController {
  constructor(private readonly sendingSmsAppointmentCompletedService: SendingSmsAppointmentCompletedService) {}

     @UseGuards( ThrottlerGuard)
     @SkipThrottle()
  @Post()
 async sendsms(@Body('mobilenumber') mobilenumber: string,
 @Body('Patname') Patname: string,
 @Body('Date') Date: string,
 ) {
    const result = await this.sendingSmsAppointmentCompletedService.sendsms(mobilenumber,Patname,Date);
 return result
  
 }
 
}
