package com.haha.common;

/**
 * Redis 缂撳瓨閿父閲忕被
 * 缁熶竴绠＄悊鎵€鏈?Redis 缂撳瓨鐨勯敭鍚?
 */
public class RedisConstants {

    /**
     * Sa-Token 鐢ㄦ埛浼氳瘽鐩稿叧
     */
    public static final String SA_TOKEN_USER_KEY_PREFIX = "satoken:user:";
    public static final String SA_TOKEN_USER_LOGIN_ID_KEY = "satoken:loginId:%s";
    public static final String SA_TOKEN_USER_TOKEN_KEY = "satoken:token:%s";

    /**
     * 璁惧鐘舵€佺浉鍏?
     */
    public static final String DEVICE_STATUS_KEY_PREFIX = "device_status:";
    public static final String DEVICE_STATUS_KEY = "device_status:%s";

    /**
     * 鍒嗗竷寮忛攣鐩稿叧
     */
    public static final String LOCK_DOOR_KEY_PREFIX = "lock:door:";
    public static final String LOCK_DOOR_KEY = "lock:door:%s";

    /**
     * 涓存椂璁㈠崟鐩稿叧
     */
    public static final String ORDER_TEMP_KEY_PREFIX = "order:temp:";
    public static final String ORDER_TEMP_KEY = "order:temp:%s";

    /**
     * 鐢ㄦ埛淇℃伅缂撳瓨鐩稿叧
     */
    public static final String USER_INFO_KEY_PREFIX = "user:info:";
    public static final String USER_INFO_KEY = "user:info:%s";

    /**
     * 鍟嗗搧淇℃伅缂撳瓨鐩稿叧
     */
    public static final String PRODUCT_INFO_KEY_PREFIX = "product:info:";
    public static final String PRODUCT_INFO_KEY = "product:info:%s";

    /**
     * 璁惧淇℃伅缂撳瓨鐩稿叧
     */
    public static final String DEVICE_INFO_KEY_PREFIX = "device:info:";
    public static final String DEVICE_INFO_KEY = "device:info:%s";
}
