package com.cf.imes.module.system.api.oauth2.dto;

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

import java.io.Serializable;
import java.util.List;

@Schema(description = "RPC 服务 - OAuth2 访问令牌的校验 Response DTO")
@Data
public class OAuth2AccessTokenCheckRespDTO implements Serializable {

    @Schema(description = "用户编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "10")
    private Long userId;

    @Schema(description = "用户类型，参见 UserTypeEnum 枚举", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    private Integer userType;

    @Schema(description = "组织编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024")
    private Long organId;

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

    @Schema(description = "是否大型组织")
    private Boolean large;
    @Schema(description = "数据库编号")
    private Integer dbNo;
    @Schema(description = "数据表编号")
    private Integer tableNo;
    @Schema(description = "数据源编码")
    private String dataCode;
    @Schema(description = "用户昵称")
    private String nickname;
    @Schema(description = "是否超级管理员")
    private Boolean isSupAdmin;

}
