package com.mfsys.uco.controller; import com.mfsys.uco.constants.UCOURI; import com.mfsys.uco.request.SignupStep3Request; import com.mfsys.uco.service.UcoAccountService; import org.springframework.http.HttpStatus; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; @RestController @RequestMapping public class UserController { private final UcoAccountService ucoAccountService; public UserController(UcoAccountService ucoAccountService) { this.ucoAccountService = ucoAccountService; } @PostMapping(UCOURI.ONBOARD_CUSTOMER) public ResponseEntity customerOnBoarding(@RequestBody SignupStep3Request signupStep3Request) { ucoAccountService.onBoardCustomer(signupStep3Request); return ResponseEntity.ok(HttpStatus.OK); } }