You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
597 B
15 lines
597 B
package com.mydreamjob.auth.dto;
|
|
|
|
import io.swagger.v3.oas.annotations.media.Schema;
|
|
|
|
/**
|
|
* S02 刷新响应(白名单 DTO)。
|
|
*
|
|
* <p>只包含新 Token 对与有效期;不包含 userId、手机号、sessionId 或任何数据库字段。</p>
|
|
*/
|
|
@Schema(name = "TokenPairResponse", description = "刷新后的 Token 对")
|
|
public record TokenPairResponse(
|
|
@Schema(description = "新的 Access Token") String accessToken,
|
|
@Schema(description = "新的 Refresh Token") String refreshToken,
|
|
@Schema(description = "Access Token 有效期(秒)") long expiresIn) {
|
|
}
|
|
|