1
0
mirror of synced 2026-05-22 21:53:18 +00:00

AuthRequest 响应携带泛型,避免二次解析

This commit is contained in:
handy
2024-01-04 12:51:50 +08:00
parent 02bd057963
commit 65bb994012
25 changed files with 53 additions and 52 deletions
@@ -110,8 +110,8 @@ public class AuthMiRequest extends AuthDefaultRequest {
* @return AuthResponse
*/
@Override
public AuthResponse refresh(AuthToken authToken) {
return AuthResponse.builder()
public AuthResponse<AuthToken> refresh(AuthToken authToken) {
return AuthResponse.<AuthToken>builder()
.code(AuthResponseStatus.SUCCESS.getCode())
.data(getToken(refreshTokenUrl(authToken.getRefreshToken())))
.build();