package com.seecoder.BlueWhale.Controller; import com.seecoder.BlueWhale.Service.UserService; import com.seecoder.BlueWhale.VO.ResultVO; import com.seecoder.BlueWhale.VO.UserVO; import org.springframework.beans.factory.annotation.Autowired; 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("/api/user") public class UserController { @Autowired UserService userService; @PostMapping("/register") public ResultVO register(@RequestBody UserVO userVO){ return ResultVO.buildSuccess(userService.register(userVO)); } }