package com.dji.sample.configuration;

import com.dji.sdk.cloudapi.storage.OssTypeEnum;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author hqjiang
 * @version 0.1
 * @date 2024/7/24
 */
@ConfigurationProperties(prefix = "custom-config")
@Component
public class CustomConfiguration {

    /**
     * 航点采集频次
     */
    public static int frequency;

    /**
     * 加密密钥
     * @param frequency
     */
    public static String key;

    public void setFrequency(int frequency) {
        CustomConfiguration.frequency = frequency;
    }

    public void setKey(String key) {
        CustomConfiguration.key = key;
    }
}



