| | |
| | | package com.ruoyi.company.controller; |
| | | |
| | | import com.ruoyi.common.core.domain.R; |
| | | import com.ruoyi.common.security.utils.SecurityUtils; |
| | | import com.ruoyi.company.api.domain.User; |
| | | import com.ruoyi.company.api.model.RegisterUser; |
| | | import com.ruoyi.company.api.model.UserDetail; |
| | | import com.ruoyi.company.service.UserService; |
| | | import io.swagger.v3.oas.annotations.Operation; |
| | | import lombok.RequiredArgsConstructor; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | import java.time.LocalDateTime; |
| | | |
| | | @RestController |
| | | @RequestMapping("/user") |
| | | @RequiredArgsConstructor |
| | | public class UserController { |
| | | private final UserService userService; |
| | | |
| | | @PostMapping("/register") |
| | | public R register(RegisterUser registerUser) { |
| | | userService.register(registerUser); |
| | | return R.ok(); |
| | | } |
| | | |
| | | @GetMapping("/getUserDetail") |
| | | public R<UserDetail> getUserDetail(Long userId) { |
| | | return R.ok(new UserDetail()); |
| | | } |
| | | } |