Explorar el Código

添加redis枚举

linhaohong hace 8 meses
padre
commit
b06ef866b4
Se han modificado 1 ficheros con 16 adiciones y 0 borrados
  1. 16 0
      Object/Enums/RedisKeyConstant.py

+ 16 - 0
Object/Enums/RedisKeyConstant.py

@@ -0,0 +1,16 @@
+# -*- 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:'