点歌相关接口

This commit is contained in:
张松
2025-03-01 11:21:23 +08:00
parent 076c215278
commit 7a15a48e04
10 changed files with 476 additions and 0 deletions

View File

@@ -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;
}
}