liujie
2026-08-14 92a75a7b157e6fd6423df17cfd32015017bdb8c9
1
2
3
4
5
6
7
8
9
10
11
12
package com.tourguide.modules.user.dto;
 
/** 登录成功后返回的分端令牌与对应端用户信息。 */
public class AuthResponse<T> {
    private final String token;
    private final long expiresIn;
    private final T user;
    public AuthResponse(String token, long expiresIn, T user) { this.token = token; this.expiresIn = expiresIn; this.user = user; }
    public String getToken() { return token; }
    public long getExpiresIn() { return expiresIn; }
    public T getUser() { return user; }
}