# -*- encoding: utf-8 -*-
"""
@File    : RedisKeyConstant.py
@Time    : 2024/11/20 15:13
@Author  : stephen
@Email   : zhangdongming@asj6.wecom.work
@Software: PyCharm
"""
from enum import Enum


class RedisKeyConstant(Enum):
    # 设备版本信息
    ZOSI_DEVICE_VERSION_INFO = 'ZOSI:DEVICE:VERSION:'
    # 优惠券id锁
    COUPON_ID_LOCK = 'COUPON:ID:LOCK:'
    # 云存优惠券
    CLOUD_STORAGE_COUPONS = 'cloud_storage_coupons_'
    # 发放优惠券锁
    GRANT_COUPONS_LOCK = 'grant_coupons_lock_'
    # 基础模块用户优惠券
    BASIC_CLOUD_COUPON = 'BASIC:CLOUD:COUPON:'
    # 云存优惠套餐
    PACKAGE_IS_COUPON_TRUE = 'PACKAGE:IS:COUPON:TRUE:LIST'
    PACKAGE_IS_COUPON_FALSE = 'PACKAGE:IS:COUPON:FALSE:LIST'
    # 每日查询云存套餐界面访问数量
    TODAY_CLOUD_QUERY_NUMBER = 'TODAY:CLOUD:QUERY:NUMBER'
    # 基础模块用户ID
    BASIC_USER = 'BASIC:USER:'
    # APP扫码工具域名
    APP_DOMAIN_NAME = "DOMAIN:NAME"
    # 活动信息
    ACTIVITY_INFO = 'ACTIVITY:INFO'

    # Redis 过期时间常量 (秒)
    EXPIRE_TIME_60_SECONDS = 60    # 60秒
    EXPIRE_TIME_30_MINUTES = 1800  # 30分钟
    EXPIRE_TIME_1_HOUR = 3600      # 1小时
    EXPIRE_TIME_24_HOURS = 86400   # 24小时
    EXPIRE_TIME_30_DAYS = 2592000  # 30天
