추세검색 설정 수정

This commit is contained in:
Macbook
2026-05-27 02:10:00 +09:00
parent 2e08c6b16f
commit fc06a16184
27 changed files with 1262 additions and 147 deletions
@@ -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;
}
}