39 lines
1.1 KiB
Java
39 lines
1.1 KiB
Java
package com.xiang.common.enums;
|
|
|
|
|
|
import com.xiang.common.utils.DateUtils;
|
|
|
|
import java.time.LocalDate;
|
|
|
|
/**
|
|
* @Author: xiang
|
|
* @Date: 2025-12-16 10:43
|
|
*/
|
|
public class RedisKeyConstant {
|
|
|
|
public static final String JNTYZX_ORDER_CREATE_KEY = "jntyzx:order:create:orderId:";
|
|
|
|
public static final String JNTUZX_ORDER_PEEK_KEY = "jntyzx:order:peek:user:";
|
|
|
|
public static final String JNTYZX_VENUE_MSG_SEND_KEY = "jntyzx:order:venue:msg:send";
|
|
|
|
private static final String JNTYZX_VENUE_SUBSCRIBE_KEY = "jntyzx:venue:subscribe:";
|
|
|
|
private static final String JNTYZX_ORDER_CLOSE_CARD_KEY = "jntyzx:order:close:card:";
|
|
|
|
public static String getCloseCardKey(String username) {
|
|
return JNTYZX_ORDER_CLOSE_CARD_KEY + username + ":" +getDate();
|
|
}
|
|
|
|
public static String getVenueSubscribeKey(String placeName) {
|
|
return JNTYZX_VENUE_SUBSCRIBE_KEY + placeName + ":" + getDate();
|
|
}
|
|
|
|
public static final String JNTYZX_SUBSCRIBE_TIME_KEY = "jntyzx:subscribe:time";
|
|
|
|
public static String getDate() {
|
|
LocalDate now = LocalDate.now();
|
|
return ":" + DateUtils.getDateFromDate(now);
|
|
}
|
|
}
|