package com.fs.xiaoshouyi.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Data
@Component
@ConfigurationProperties(prefix = "xiaoshouyi")
public class XiaoShouYiProperties {

    /**
     * OAuth授权地址
     */
    private String authUrl;

    /**
     * Token接口地址
     */
    private String tokenUrl;

    /**
     * 默认业务API地址
     */
    private String defaultApiBaseUrl;


    /**
     * scope
     */
    private String scope = "all";

    /**
     * oauth类型
     */
    private String oauthType = "standard";

    /**
     * offline时返回refresh_token
     */
    private String accessType = "offline";
}