package com.gyee.frame.common.conf;

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

/**
 * 读取项目相关配置
 * 
 * @author gyee
 */
@Component
@ConfigurationProperties(prefix = "gyee")
public class V2Config
{
    /** 项目名称 */
    private String name;
    /** 版本 */
    private String version;
    /** 版权年份 */
    private String copyrightYear;
    /** 上传路径 */
    private static String profile;
    /** 是否开启 上传static **/
    private static String isstatic;
    /** 开启存放静态文件夹后目录 **/
    private static String isroot_dir;
    /** 邮箱发送smtp */
    private static String email_smtp;
    /** 发送邮箱端口 */
    private static String email_port;
    /** 发送邮箱登录账号 */
    private static String email_account;
    /** 发送邮箱登录密码 */
    private static String email_password;
    /** 演示模式 **/
    private static String demoEnabled;
    /** 滚动验证码 **/
    private static Boolean rollVerification;
    /** 实时数据库 **/
    private  static String realtimedataBase;

    public static String getRealtimedataBase() {
        return realtimedataBase;
    }

    public static void setRealtimedataBase(String realtimedataBase) {
        V2Config.realtimedataBase = realtimedataBase;
    }

    public String getName()
    {
        return name;
    }

    public void setName(String name)
    {
        this.name = name;
    }

    public String getVersion()
    {
        return version;
    }

    public void setVersion(String version)
    {
        this.version = version;
    }

    public String getCopyrightYear()
    {
        return copyrightYear;
    }

    public void setCopyrightYear(String copyrightYear)
    {
        this.copyrightYear = copyrightYear;
    }

    public static String getProfile()
    {
        return profile;
    }

    public void setProfile(String profile)
    {
    	V2Config.profile = profile;
    }

	public static String getIsstatic() {
		return isstatic;
	}

	public static void setIsstatic(String isstatic) {
		V2Config.isstatic = isstatic;
	}

	public static String getIsroot_dir() {
		return isroot_dir;
	}

	public static void setIsroot_dir(String isroot_dir) {
		V2Config.isroot_dir = isroot_dir;
	}

	public static String getEmail_smtp() {
		return email_smtp;
	}

	public static void setEmail_smtp(String email_smtp) {
		V2Config.email_smtp = email_smtp;
	}

	public static String getEmail_port() {
		return email_port;
	}

	public static void setEmail_port(String email_port) {
		V2Config.email_port = email_port;
	}

	public static String getEmail_account() {
		return email_account;
	}

	public static void setEmail_account(String email_account) {
		V2Config.email_account = email_account;
	}

	public static String getEmail_password() {
		return email_password;
	}

	public static void setEmail_password(String email_password) {
		V2Config.email_password = email_password;
	}

	public static String getDemoEnabled() {
		return demoEnabled;
	}

	public static void setDemoEnabled(String demoEnabled) {
		V2Config.demoEnabled = demoEnabled;
	}

	public static Boolean getRollVerification() {
		return rollVerification;
	}

	public  void setRollVerification(Boolean rollVerification) {
		V2Config.rollVerification = rollVerification;
	}
	
	
	
}
