package com.yeejoin.equipmanage.common.constant;

import io.swagger.models.auth.In;

import java.nio.charset.Charset;
import java.nio.charset.StandardCharsets;
import java.time.format.DateTimeFormatter;

/**
 * @Description: 常量类
 * @Author: duanwei
 * @Date: 2019/7/29
 */
public interface Constant {




    String RESULT_SUCCESS = "SUCCESS";

    String RESULT_FAILURE = "FAILURE";
    /**
     * 请求成功
     */
    String SUCCESS = "200";

    String NULL = "";
    
    
    /**
     * 数字换流站大小屏数据编码
     * //fireResources(资源概率);fireCAFSSys（CAFS系统）；fireAlarmSys（火灾报警系统）；
     * fireONLSys（排油系统）；fireFoamSys（泡沫灭火系统）；
     * fireWaterSys（消防给水系统）；fireFoamMistSys（细水雾涡扇炮系统）
     */


    String threeBigTopicfireResources = "threeBigTopicfireResources";
    
    String threeSmallTopicfireResources = "threeSmallTopicfireResources";
    
    String fourBigTopicfireResources = "fourBigTopicfireResources";
    
    String fourSmallTopicfireResources = "fourSmallTopicfireResources";
    
    
    String threeBigTopicfireCAFSSys = "threeBigTopicfireCAFSSys";
    
    String threeSmallTopicfireCAFSSys = "threeSmallTopicfireCAFSSys";
    
    String fourSmallTopicfireCAFSSys = "fourSmallTopicfireCAFSSys";

    
    String threeBigTopicfireAlarmSys = "threeBigTopicfireAlarmSys";
    
    String threeSmallTopicfireAlarmSys = "threeSmallTopicfireAlarmSys";
    
    String fourSmallTopicfireAlarmSys = "fourSmallTopicfireAlarmSys";
    
    
    String threeBigTopicfireONLSys = "threeBigTopicfireONLSys";
    
    String threeSmallTopicfireONLSys = "threeSmallTopicfireONLSys";
    
    String fourSmallTopicfireONLSys = "fourSmallTopicfireONLSys";

    
    String threeBigTopicfireFoamSys = "threeBigTopicfireFoamSys";
    
    String threeSmallTopicfireFoamSys = "threeSmallTopicfireFoamSys";
    
    String fourSmallTopicfireFoamSys = "fourSmallTopicfireFoamSys";

    
    String threeBigTopicfireWaterSys = "threeBigTopicfireWaterSys";
    
    String threeSmallTopicfireWaterSys = "threeSmallTopicfireWaterSys";
    
    String fourSmallTopicfireWaterSys = "fourSmallTopicfireWaterSys";

    
    String threeBigTopicfireFoamMistSys = "threeBigTopicfireFoamMistSys";
    
    String threeSmallTopicfireFoamMistSys = "threeSmallTopicfireFoamMistSys";
    
    String fourSmallTopicfireFoamMistSys = "fourSmallTopicfireFoamMistSys";
    
    
//    String SMALL_PRO_PRCODE = "SMALL_PRO_PRCODE_";

    /**
     * 任务-作业交底
     */
//    Integer JOB_TYPE = 0;

    /**
     * 任务-三交三查
     */
//    Integer HAND_QUERY = 1;


//    String JSON_NULL = "[]";


    /**
     * 违规管理
     */
//    Integer BAD_MANAGEMENT = 2;


//    Charset DEFAULT_CHARSET = StandardCharsets.UTF_8;

//    String FILE_SEPARATOR = System.getProperty("file.separator");

//    DateTimeFormatter DATE_TIME_FORMATTER = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss");


//    String PAGE_NUM = "0";
//
//    String SIZE_NUM = "20";
//
//    String PAGE = "page";
//
//    String SIZE = "size";
//
//
//    String ZERO = "0";
//
//    String ONE = "1";
//
//    String TWO = "2";
//
//    String THREE = "3";
//
//    String FOUR = "4";
//
//    String FIVE = "5";

    /**
     * 请求错误
     */
//    String ERROR = "300";

    /**
     * 无权限
     */
//    String PERMISSION = "401";
    /**
     * 请求成功，其他错误
     */
//    String DATA_NULL = "402";
    /**
     * 请求失败
     */
//    String FAILED = "999";

    /**
     * 最大值
     */
//    Integer MAX = 32767;


    /**
     * 数据请求返回码
     */
    //成功
//    public static final int RESCODE_SUCCESS = 1000;
//    //成功(有返回信息)
//    public static final int RESCODE_SUCCESS_MSG = 1001;
//    //请求抛出异常
//    public static final int RESCODE_EXCEPTION = 1002;
//    //未登陆状态
//    public static final int RESCODE_NOLOGIN = 1003;
//    //查询结果为空
//    public static final int RESCODE_NOEXIST = 1004;
//    //无操作权限
//    public static final int RESCODE_NOAUTH = 1005;
//    //登录过期
//    public static final int RESCODE_LOGINEXPIRE = 1006;
     /**
     * token
     */
//     //Token过期
//     public static final int JWT_ERRCODE_EXPIRE = 1007;
//    //验证不通过
//    public static final int JWT_ERRCODE_FAIL = 1008;

    /**
     * jwt
     */
//    public static final String JWT_ID = "jwt-black";//jwt签发者
//    public static final String JWT_SECRET = "Isi5Ob9OfvJt+4IHoMJlHkS1ttg=";//密匙
//    public static final int JWT_TTL = 60 * 60 * 1000; // 60*60*1000;  //millisecond
//    public static final int JWT_REFRESH_INTERVAL = 18 * 1000; //55*60*1000;  //millisecond
//    public static final int JWT_REFRESH_TTL = 60 * 1000; // 12*60*60*1000;  //millisecond

}
