package com.dbnt.faisp.main.userInfo;

import com.dbnt.faisp.main.userInfo.model.UserInfo;
import com.dbnt.faisp.main.userInfo.service.UserInfoService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequiredArgsConstructor
@RequestMapping("/user")
public class UserInfoController {

  private final UserInfoService userInfoService;

  @PostMapping("/insertUserInfo")
  public String insertUserInfo(UserInfo insertReqInfo) {
    return userInfoService.insertUserInfo(insertReqInfo);
  }

}
