package cn.ey.biz.module.system.api.oauth2.dto;

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

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

@ApiModel("RPC 服务 - OAuth2 访问令牌创建 Request DTO")
@Data
public class OAuth2AccessTokenClientCreateReqDTO implements Serializable {

    @ApiModelProperty(value = "客户端编号", required = true, example = "hr")
    @NotNull(message = "客户端编号不能为空")
    private String clientId;

    @ApiModelProperty(value = "客户端编号", required = true, example = "xxx")
    @NotNull(message = "用户编码不能为空")
    private String appId;

    @ApiModelProperty(value = "客户端密钥", required = true, example = "xxx")
    @NotNull(message = "用户密钥不能为空")
    private String appSecret;

    @ApiModelProperty(value = "授权范围的数组", example = "user_info")
    private List<String> scopes;

}
