点歌相关接口
This commit is contained in:
@@ -11,6 +11,8 @@ public interface RedisCst {
|
||||
String LOGIN_CODE = "login:code:";
|
||||
String SYS_LOG_KEY = "sys:log:";
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* key过期监听
|
||||
*/
|
||||
@@ -33,6 +35,10 @@ public interface RedisCst {
|
||||
|
||||
String PRINT_ORDER_DETAIL = "print:order:detail:";
|
||||
|
||||
// 点歌地址url
|
||||
String SONG_URL = "song:";
|
||||
|
||||
|
||||
static String getLockKey(String sign, Object... args) {
|
||||
StringBuilder key = new StringBuilder(LOCK_KEY + ":" + sign + ":");
|
||||
for (Object arg : args) {
|
||||
@@ -51,4 +57,8 @@ public interface RedisCst {
|
||||
static String getPrintOrderDetailKey(Long orderId, Long detailId) {
|
||||
return PRINT_ORDER_DETAIL + orderId + ":" + detailId;
|
||||
}
|
||||
|
||||
static String getSongUrlKey(Long shopId) {
|
||||
return SONG_URL + shopId;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user