package com.chinaweal.aiccs.org.entity.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * OAuth错误响应DTO
 *
 * @author lroyia
 * @since 2025/11/21
 */
@Data
@ApiModel(value = "OAuth错误响应DTO")
public class OAuthErrorResponseDTO {

    @ApiModelProperty(value = "错误类型", example = "invalid_request")
    private String error;

    @ApiModelProperty(value = "错误描述", example = "The access token provided has expired.")
    private String errorDescription;

    @ApiModelProperty(value = "错误URI", example = "https://tools.ietf.org/html/rfc6749#section-5.2")
    private String errorUri;

    @ApiModelProperty(value = "状态参数", example = "xyz123")
    private String state;

    public OAuthErrorResponseDTO(String error, String errorDescription) {
        this.error = error;
        this.errorDescription = errorDescription;
    }

    public OAuthErrorResponseDTO(String error, String errorDescription, String state) {
        this.error = error;
        this.errorDescription = errorDescription;
        this.state = state;
    }
}