package com.tashow.cloud.system.controller.admin.oauth2.vo.open;

import com.tashow.cloud.common.core.KeyValue;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * 管理后台 - 授权页的信息 Response VO
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class OAuth2OpenAuthorizeInfoRespVO {

    /**
     * 客户端
     */
    private Client client;

    private List<KeyValue<String, Boolean>> scopes;

    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    public static class Client {

        /**
         * 应用名", example = "土豆
         */
        private String name;

        /**
         * 应用图标"
         */
        private String logo;
    }
}
