package com.lightinit.hsdataplatformresdir.common;

import java.io.File;

/**
 * @author WangYao
 * @date 2018/6/12 14:20
 * @description 常量类
 */
public class SysContants {

    //Property文件路径
    public static class PropertyFilePath{
        public final static String CONFIG = "config.properties";
    }

    //属性键
    public static class PropertyKey{
        public final static String UPLOAD_FILE_ROOT_DIR = "uploadFileRootDir"; //上传文件存放目录key
        public final static String UPLOAD_IMAGE_ROOT_DIR = "uploadImageRootDir"; //上传图片存放目录key
        public final static String IMAGE_CONTEXT_PATH = "imageContextPath"; // 该key用于获取tomcat中配置的用于显示外部目录中图片的Context的Path值
        public final static String PAAS_PATH = "paasPath"; // 获取paas平台前缀地址

        //新路由规则
        public final static String NEWGATEWAYPATH = "newGatewayPath"; // 获取新网关前缀地址
        public final static String APPLICATIONID = "applicationId";
        public final static String SIGNAPPID = "signAppId" ;

        //短信属性
        public final static String REGIONID = "regionId" ;
        public final static String ACCESSKEYID = "accessKeyId" ;
        public final static String SECRET = "secret" ;

        //接收短信
        public final static String PHONEPEOPLE = "phonePeople" ;

        //监控网络流量
        public final static String FLUXURL = "fluxUrl" ;
        public final static String FLUXTOKEN = "fluxToken" ;
        public final static String DB = "db" ;
        public final static String Q = "q" ;
    }

    public static class UploadFilePath{
        public static final String DATA_REGISTER_ROOT_DIR = "DataRegister" + File.separator;
        public static final String DATA_REGISTER_DATA_DIR = "DataFile" + File.separator;
        public static final String DATA_REGISTER_DEMO_DIR = "DemoFile" + File.separator;
        public static final String MICROAPP_REGISTER_ROOT_DIR = "MicroappRegister" + File.separator;
        public static final String MICROAPP_REGISTER_SCREENSHOT_DIR = "Screenshot" + File.separator;
        public static final String MICROAPP_PUBLISH_ROOT_DIR = "MicroappPublish" + File.separator;
        public static final String MICROAPP_PUBLISH_RESOURCE_IMG_DIR = "ResourceImg" + File.separator;
        public static final String DATA_PUBLISH_ROOT_DIR = "DataPublish" + File.separator;
        public static final String DATA_PUBLISH_RESOURCE_IMG_DIR = "ResourceImg" + File.separator;
        public static final String API_PUBLISH_ROOT_DIR = "ApiPublish" + File.separator;
        public static final String API_PUBLISH_RESOURCE_IMG_DIR = "ResourceImg" + File.separator;
        public static final String CONSULT_ROOT_DIR = "consult" + File.separator;//咨询
        public static final String CONSULT_RESOURCE_IMG_DIR = "consultImg" + File.separator;
        public static final String CONSULT_RESOURCE_VIDEO_DIR = "consultVideo" + File.separator;
        public static final String RESOURCE_CATELOG_ROOT_DIR = "ResourceCatelog" + File.separator;
        public static final String RESOURCE_Tag_ROOT_DIR = "ResourceTag" + File.separator;
        public static final String RESOURCE_CATELOG_IMG_DIR = "CatelogImg" + File.separator;
        public static final String CONTRACT_ATTACHMENT = "contractAttachment" + File.separator;
        public static final String CONTRACT_ATTACHMENT_DIR = "contractAtt" + File.separator;
    }

    /**
     * 缓存名称
     */
    public static class CacheName {
        public static final String MODULE_ACTION_CACHE = "moduleActionCache";
        public static final String ROLE_PERMISSION_CACHE = "rolePermissionCache";
    }

    public static class CacheKey {
        public static final String LIST = "list";
    }

}
