liujie
2026-07-30 fc767bf18e262b724c78b5f860b6d908d4993dcb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package com.tourguide.security;
 
import com.tourguide.modules.user.domain.ClientType;
 
public class TokenPayload {
    private final Long userId;
    private final String username;
    private final String role;
    private final ClientType clientType;
    private final String tokenId;
 
    public TokenPayload(Long userId, String username, String role, ClientType clientType, String tokenId) {
        this.userId = userId;
        this.username = username;
        this.role = role;
        this.clientType = clientType;
        this.tokenId = tokenId;
    }
    public Long getUserId() { return userId; }
    public String getUsername() { return username; }
    public String getRole() { return role; }
    public ClientType getClientType() { return clientType; }
    public String getTokenId() { return tokenId; }
}