package com.malk.guangming.config;

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

@Data
@Component
@ConfigurationProperties(prefix = "guangming")
public class GuangmingConfig {

    /** 钉钉配置 */
    private Dingtalk dingtalk = new Dingtalk();

    /** 邮箱SSO配置 */
    private MailSso mailSso = new MailSso();

    @Data
    public static class Dingtalk {
        private String appKey;
        private String appSecret;
        private String corpId;
    }

    @Data
    public static class MailSso {
        /** 德惠邮箱SSO地址 */
        private String ssoUrl;
        /** RSA公钥 */
        private String publicKey;
    }
}
