Skip to content

Commit

Permalink
fix: relationship 반환값
Browse files Browse the repository at this point in the history
  • Loading branch information
kimchijinju committed Nov 22, 2024
1 parent 351424e commit b086409
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/main/java/mejai/mejaigg/app/user/domain/AppUser.java
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,8 @@ public void addWatchSummoner(Summoner summoner, Relationship relationship) {
this.watchSummoner = summoner;
this.relationship = relationship;
}

public String getRelationship() {
return relationship.getRelationship();
}
}
3 changes: 3 additions & 0 deletions src/main/java/mejai/mejaigg/app/user/domain/Relationship.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

import com.fasterxml.jackson.annotation.JsonCreator;

import lombok.Getter;

@Getter
public enum Relationship {
LOVER("애인"),
FRIEND("친구"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ public class WatchController {
@Operation(summary = "소환사 감시 등록", description = """
소환사를 감시합니다.
소환사명과 태그, 관계를 입력하세요.
해당 소환사의 최근 100개의 전적을 불러옵니다.
관계 목록:
애인, 친구, 동료, 자녀, 라이벌, 스트리머
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public WatchSummoner(AppUser user, String resourceUrl) {
this.summonerName = summoner.getSummonerName();
this.tag = summoner.getTagLine();
this.profileIcon = resourceUrl + "profileIcon/" + summoner.getProfileIconId() + ".png";
this.relationship = "비밀임";
this.relationship = user.getRelationship();
this.soloRankTier = soloRank.getTier() + " " + soloRank.getRank();
this.soloRankIconUrl = soloRank.getIconUrl(resourceUrl);
this.flexRankTier = flexRank.getTier() + " " + flexRank.getRank();
Expand Down

0 comments on commit b086409

Please sign in to comment.