You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
1.0 KiB
Java
31 lines
1.0 KiB
Java
|
2 weeks ago
|
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<HttpStatus> customerOnBoarding(@RequestBody SignupStep3Request signupStep3Request) {
|
||
|
|
ucoAccountService.onBoardCustomer(signupStep3Request);
|
||
|
|
return ResponseEntity.ok(HttpStatus.OK);
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
}
|