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

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

import javax.validation.constraints.NotBlank;


/**
 * OAuth授权请求DTO
 *
 * @author lroyia
 * @since 2025/11/21
 */
@Data
@ApiModel(value = "OAuth授权请求DTO")
public class AuthorizationRequestDTO {

    @NotBlank(message = "响应类型不能为空")
    @ApiModelProperty(value = "响应类型", example = "code")
    private String responseType;

    @NotBlank(message = "客户端ID不能为空")
    @ApiModelProperty(value = "客户端ID", example = "client123")
    private String clientId;

    @ApiModelProperty(value = "重定向URI", example = "https://client.example.com/callback")
    private String redirectUri;

    @ApiModelProperty(value = "授权范围", example = "read write")
    private String scope;

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