Skip to content

Commit 695fe6e

Browse files
committed
feat: RankingInfo 클래스 추가 및 랭킹 정보 표현을 위한 레코드 구현
1 parent d9f23f0 commit 695fe6e

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
package com.loopers.domain.ranking;
2+
3+
public record RankingInfo(
4+
Long productId,
5+
String productName,
6+
Long price,
7+
String brandName,
8+
Long rank,
9+
Double score
10+
) {
11+
public static RankingInfo of(
12+
Long productId,
13+
String productName,
14+
Long price,
15+
String brandName,
16+
Long rank,
17+
Double score
18+
) {
19+
return new RankingInfo(productId, productName, price, brandName, rank, score);
20+
}
21+
}

0 commit comments

Comments
 (0)