package com.malk.jinlun.config;

import com.malk.utils.UtilMap;
import lombok.Data;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.Map;

@Data
@Component
@ConfigurationProperties(prefix = "cloudpivot")
@Slf4j
public class CloudpivotConfig {
    private String grantType;

    private String clientId;

    private String clientSecret;

    private String redirectUri;

    private String operatorUserId;

    public static Map initTokenHeader(String access_token) {
        return UtilMap.map("Authorization", access_token);
    }
}
