|
|
@ -43,6 +43,7 @@ import org.springframework.web.multipart.MultipartFile; |
|
|
|
|
|
|
|
|
import com.fasterxml.jackson.databind.ObjectMapper; |
|
|
import com.fasterxml.jackson.databind.ObjectMapper; |
|
|
import com.gcc.flagpoles.service.RequestService; |
|
|
import com.gcc.flagpoles.service.RequestService; |
|
|
|
|
|
import com.gcc.flagpoles.service.SMSService; |
|
|
|
|
|
|
|
|
// import com.dumpregistration.configuration.AppConfig; |
|
|
// import com.dumpregistration.configuration.AppConfig; |
|
|
// import com.dumpregistration.constants.AppConstants; |
|
|
// import com.dumpregistration.constants.AppConstants; |
|
|
@ -72,8 +73,8 @@ public class ApiController { |
|
|
@Autowired |
|
|
@Autowired |
|
|
private FileUploadService fileUploadService; |
|
|
private FileUploadService fileUploadService; |
|
|
|
|
|
|
|
|
// @Autowired |
|
|
|
|
|
// private PaymentService paymentService ; |
|
|
|
|
|
|
|
|
@Autowired |
|
|
|
|
|
private SMSService smsService; |
|
|
|
|
|
|
|
|
@Autowired |
|
|
@Autowired |
|
|
private AppConfig appConfig; |
|
|
private AppConfig appConfig; |
|
|
@ -850,4 +851,24 @@ public class ApiController { |
|
|
return response; |
|
|
return response; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@GetMapping("/sendRestorationMessage") |
|
|
|
|
|
public String sendRestorationMessage(@RequestParam String mobileNo, @RequestParam String streetName, |
|
|
|
|
|
@RequestParam String amount, @RequestParam String requestId) { |
|
|
|
|
|
return smsService.restorationflagpoleSms(mobileNo, streetName, amount, requestId); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@GetMapping("/sendUnauthorizedMessage") |
|
|
|
|
|
public String sendUnauthorizedMessage(@RequestParam String mobileNo, |
|
|
|
|
|
@RequestParam String streetName, |
|
|
|
|
|
@RequestParam String fineAmount, |
|
|
|
|
|
@RequestParam String requestId) { |
|
|
|
|
|
|
|
|
|
|
|
return smsService.unauthorizedFlagPoleSms(mobileNo, streetName, fineAmount, requestId); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@GetMapping("/sentRequestRaisedPermanent") |
|
|
|
|
|
public String sentRequestRaisedPermanent(@RequestParam String mobileNo, @RequestParam String requestId) { |
|
|
|
|
|
return smsService.sendBookingSuccesssmspermanent(mobileNo, requestId); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |