package com.ghb.base.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Lazy;
import org.springframework.stereotype.Component;

/**
 * 设置静态参数初始化
 * @author: Ghb-boot
 */
@Lazy(false)
@Component
@Data
public class StaticConfig {

    @Value("${ghb.oss.accessKey:}")
    private String accessKeyId;

    @Value("${ghb.oss.secretKey:}")
    private String accessKeySecret;

    @Value(value = "${spring.mail.username:}")
    private String emailFrom;

    /**
     * 是否开启定时发送
     */
    @Value(value = "${spring.mail.timeJobSend:false}")
    private Boolean timeJobSend;

//    /**
//     * 签名密钥串
//     */
//    @Value(value = "${ghb.signatureSecret}")
//    private String signatureSecret;


    /*@Bean
    public void initStatic() {
       DySmsHelper.setAccessKeyId(accessKeyId);
       DySmsHelper.setAccessKeySecret(accessKeySecret);
       EmailSendMsgHandle.setEmailFrom(emailFrom);
    }*/

}
