package com.reading.platform.dto.response;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * 重置密码响应
 */
@Data
@Schema(description = "重置密码响应")
public class ResetPasswordResponse {

    @Schema(description = "临时密码", example = "Temp123456")
    private String tempPassword;

    @Schema(description = "提示信息", example = "请通知用户及时修改密码")
    private String message;

    public static ResetPasswordResponse of(String tempPassword, String message) {
        ResetPasswordResponse response = new ResetPasswordResponse();
        response.setTempPassword(tempPassword);
        response.setMessage(message);
        return response;
    }
}
