package com.heyu.api.gateway.util;

public class ApiConstants {
    public static final Integer Int_0 = new Integer(0);
    public static final Integer Int_1 = new Integer(1);
    public static final Integer Int_2 = new Integer(2);
    public static final Integer Int_3 = new Integer(3);

    /**
     * 不需要 注解名称
     */
    public static final String NOT_INTERCEPT_ANNOTATION_NAME = "NotIntercept";
    /**
     * token相关的所有信息
     */
    public static final String TOKEN_INFO = "TOKEN_INFO$";

    /**
     * account 信息
     */
    public static final String ACCOUNT_INFO = "ACCOUNT_INFO$";

    /**
     * token 一分钟访问次数
     */
    public static final String TOKEN_MINUTES_VISIT_COUNT = "TOKEN_MINUTES_VISIT_COUNT$";

    /**
     * account账号一分钟访问次数
     */
    public static final String ACCOUNT_MINUTES_VISIT_COUNT = "ACCOUNT_MINUTES_VISIT_COUNT$";

    /**
     * update account amount lock
     */
    public static final String UPDATE_ACCOUNT_AMOUNT_LOCK = "UPDATE_ACCOUNT_AMOUNT_LOCK$";


    public static String SYSTEM = "system";

    public static String USER_NAME = "user_name";

    public static String TOKEN = "token";



    /**
     * 任务调度参数key
     */
    public static final String JOB_PARAM_KEY = "JOB_PARAM_KEY";


    /**
     * 定时任务状态
     *
     * @author chenshun
     * @email sunlightcs@gmail.com
     * @date 2016年12月3日 上午12:07:22
     */
    public enum ScheduleStatus {
        /**
         * 正常
         */
        NORMAL(0),
        /**
         * 暂停
         */
        PAUSE(1);

        private int value;

        ScheduleStatus(int value) {
            this.value = value;
        }

        public int getValue() {
            return value;
        }
    }




    public static final String VERIFY_INTERFACE = "verifyInterface";

    public static final String ECHOBACK = "echoback";
    public static final String X_FORWARDED_PATH = "X-Forwarded-Path";

    public static final String API_INTERFACE = "api-interface";


}
