package cn.qinys.platform.gateway.constants;

import lombok.Getter;

/**
 * Description:
 *
 * @author tanlie
 * Date: 2024/6/17 12:02
 */
public class GatewayConstants {
    @Getter
    public enum RedisKeyEnum {
        // 行销行政编码
        MOBILE_BY_TOKEN("MOBILE_BY_TOKEN:", "根据token获取手机号", 10 * 3600),
        GAODE_LIMIT_BY_TOKEN("GAODE_LIMIT_BY_TOKEN:", "每小时限制的逆地理解析次数", 3600);

        RedisKeyEnum(String code, String msg, Integer expireTime) {
            this.code = code;
            this.msg = msg;
            this.expireTime = expireTime;
        }

        private final String code;
        private final String msg;
        private final Integer expireTime;
    }
}
