| 1234567891011121314151617181920212223 |
- 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<Boolean> register(@RequestBody UserVO userVO){
- return ResultVO.buildSuccess(userService.register(userVO));
- }
- }
|