추세검색 설정 수정
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
package com.goldenchart.service;
|
||||
|
||||
/**
|
||||
* 추세검색 결과 스코프 (사용자 또는 기기).
|
||||
*/
|
||||
public final class TrendSearchScope {
|
||||
|
||||
private TrendSearchScope() {}
|
||||
|
||||
public static String key(Long userId, String deviceId) {
|
||||
if (userId != null) return "u:" + userId;
|
||||
String d = (deviceId != null && !deviceId.isBlank()) ? deviceId : "anonymous";
|
||||
return "d:" + d;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user