package com.kakarote.core.common;

import java.io.Serializable;

/**
 * 默认配置常量信息
 *
 * @author zhangzhiwei
 */
public class Const implements Serializable {

    /**
     * 项目版本
     */
    public static final String PROJECT_VERSION = "11.3.3";

    /**
     * 默认分隔符
     */
    public static final String SEPARATOR =",";

    /**
     * 查询数据权限递归次数,可以通过继承这个类修改
     */
    public static final int AUTH_DATA_RECURSION_NUM = 20;

    /**
     * 业务token在header中的名称
     */
    public static final String TOKEN_NAME = "Admin-Token";

    /**
     * 默认编码
     */
    public static final String DEFAULT_CONTENT_TYPE = "application/json;charset=UTF-8";

    /**
     * sql最大查询条数限制,以及字段数量限制
     */
    public static final Integer QUERY_MAX_SIZE = 100;

    /**
     * PC端登录的userKey
     */
    public static final String USER_TOKEN = "WK:USER:TOKEN:";

    /**
     * 用户token的最长过期时间
     */
    public static final Integer MAX_USER_EXIST_TIME = 3600 * 24 * 7;

    /**
     * 批量保存的条数
     */
    public static final int BATCH_SAVE_SIZE = 200;

    /**
     * 企业信息缓存KEY
     */
    public static final String COMPANY_MANAGE_CACHE_NAME = "COMPANY:MANAGE:STATUS:";

    /**
     * 用户名称缓存key
     */
    public static final String ADMIN_USER_NAME_CACHE_NAME = "ADMIN:USER:CACHE:";

    /**
     * 部门名称缓存key
     */
    public static final String ADMIN_DEPT_NAME_CACHE_NAME = "ADMIN:DEPT:CACHE:";

    /**
     * 用户ID和部门ID对应缓存key
     */
    public static final String ADMIN_USER_DEPT_CACHE_NAME = "ADMIN:USER:DEPT:CACHE:";


}
