| | |
| | | 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; |
| | |
| | | } |
| | | |
| | | @Operation(summary = "管理端-修改密码") |
| | | @GetMapping("/modify-pwd") |
| | | @PostMapping("/modify-pwd") |
| | | public R<?> modifyPwd(@Valid @RequestBody MgtPasswordDTO dto) { |
| | | try { |
| | | sysLoginService.modifyPwd(dto); |
| | |
| | | appUser.setAccountName(user.getAccountName()); |
| | | appUser.setPhone(user.getPhone()); |
| | | appUser.setLoginTime(System.currentTimeMillis()); |
| | | appUser.setExpireTime(appUser.getLoginTime() + CacheConstants.EXPIRATION * 60 * 1000L); |
| | | appUser.setToken(token); |
| | | |
| | | // 根据uuid将loginUser缓存 |