管道基础大数据平台系统开发-【后端】-Server
13693261870
2022-12-30 3bd15ca130fde30d38d63b1e343400ebebd7100e
src/main/java/com/lf/server/entity/all/StaticData.java
@@ -1,27 +1,141 @@
package com.lf.server.entity.all;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
/**
 * 静态数据
 * 静态数据类
 * @author WWW
 */
public class StaticData {
    /**
     * 权限排除路径:/proxy
     */
    public static String[] EXCLUDE_PATH = new String[]{"/swagger", "/sign/", "/error", "/floatserver"};
    /**
     * 数值:4
     */
    public final static int FOUR = 4;
    /**
     * 数值:9
     */
    public final static int NINE = 9;
    /**
     * 数值:10
     */
    public final static int TEN = 10;
    /**
     * 数值:16
     */
    public final static int SIXTEEN = 16;
    /**
     * 数值:200
     */
    public final static int TWO_HUNDRED = 200;
    /**
     * 数值:1024.0
     */
    public static final double D1024 = 1024.0;
    /**
     * 数值:1050.0
     */
    public static final double D1050 = 1050.0;
    /**
     * 16进制
     */
    public static final char[] HEX_DIGITS = { '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f' };
    /**
     * 字符点
     */
    public final static String POINT = ".";
    /**
     * 等号
     */
    public final static String EQ = "=";
    /**
     * 版本号
     */
    public final static String VERSION = "1.0.0";
    /**
     * Header中令牌键
     * 令牌键
     */
    public final static String TOKEN_HEADER_KEY = "token";
    /**
     * Request中令牌键
     */
    public final static String TOKEN_REQUEST_KEY = "token";
    public final static String TOKEN_KEY = "token";
    /**
     * Cookie中令牌键
     */
    public final static String TOKEN_COOKIE_KEY = "token";
    /**
     * Cookie中druid键
     */
    public final static String DRUID_COOKIE_KEY = "JSESSIONID";
    /**
     * 文本编码方式
     */
    public final static String TEXT_ENCODER = "UTF-8";
    /**
     * 密码正则表达式
     */
    public final static String PWD_REG = "^(?![a-zA-Z]+$)(?![A-Z0-9]+$)(?![A-Z\\W!@#$%^&*`~()\\-_+=,.?;<>]+$)(?![a-z0-9]+$)(?![a-z\\W!@#$%^&*`~()\\-_+=,.?;<>]+$)(?![0-9\\W!@#$%^&*`~()\\-_+=,.?;<>]+$)[a-zA-Z0-9\\W!@#$%^&*`~()\\-_+=,.?;<>]{12,20}$";
    /**
     * 上传文件类型
     */
    public final static String FILE_TYPES = "'xls','shp','gdb','mdb'";
    /**
     * Object对象
     */
    public final static String OBJECT = "java.lang.Object";
    /**
     * 插入排除字段
     */
    public final static List<String> INSERT_EXCLUDE_FIELDS = new ArrayList<>(Arrays.asList("gid", "objectid", "updateuser", "updatetime", "shape_leng", "shape_area", "serialVersionUID", "dirName", "depName", "verName", "createName", "updateName"));
    /**
     * 更新排除字段
     */
    public final static List<String> UPDATE_EXCLUDE_FIELDS = new ArrayList<>(Arrays.asList("objectid", "createuser", "createtime", "shape_leng", "shape_area", "serialVersionUID", "dirName", "depName", "verName", "createName", "updateName"));
    /**
     * 读取排除字段
     */
    public final static List<String> READ_EXCLUDE_FIELDS = new ArrayList<>(Arrays.asList("gid", "objectid", "dirid", "depid", "verid", "createtime", "createuser", "updateuser", "updatetime", "shape_leng", "shape_area", "serialVersionUID", "dirName", "depName", "verName", "createName", "updateName"));
    /**
     * MDB排除字段
     */
    public final static List<String> MDB_EXCLUDE_FIELDS = new ArrayList<>(Arrays.asList("Shape", "SHAPE_LENG", "Shape_Length", "Shape_Area", "OBJECTID_1"));
    /**
     * GDB排除字段
     */
    public final static List<String> GDB_EXCLUDE_FIELDS = new ArrayList<>(Arrays.asList("geom", "objectid", "shape_leng", "shape_area", "serialVersionUID", "dirName", "depName", "verName", "createName", "updateName"));
    /**
     * 管线分析表名集合
     */
    public final static List<String> PIPE_ANALYSIS_TABS = new ArrayList<>(Arrays.asList("bd.dlg_25w_hydl", "bd.dlg_25w_lrdl", "bd.dlg_25w_lrrl", "bd.dlg_25w_hyda"));
    /**
     * 管线排除字段
     */
    public final static List<String> PIPE_EXCLUDE_FIELDS = new ArrayList<>(Arrays.asList("serialVersionUID", "tabs", "pwd", "gid", "wkt"));
}