| | |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.DeleteMapping; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | |
| | | return "login_tokens:" + token; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 公司校验 |
| | | */ |
| | | @PostMapping("check") |
| | | @Operation(summary = "公司校验",description = "公司校验") |
| | | public R<?> check(@RequestBody RegisterUser registerUser) |
| | | { |
| | | R<User> userR = sysLoginService.resetPwdCheck(registerUser); |
| | | if (userR == null){ |
| | | return R.fail("用户不存在"); |
| | | } |
| | | return R.ok(); |
| | | } |
| | | |
| | | /** |
| | | * 重置密码 |
| | | */ |