From fe4d5061626ab85ef68ba3ae0910fa66d3554dee Mon Sep 17 00:00:00 2001 From: kseysh Date: Tue, 15 Oct 2024 22:26:25 +0900 Subject: [PATCH 01/11] =?UTF-8?q?[modify]=20part=EB=AA=85=EC=9D=B4=20?= =?UTF-8?q?=EC=95=84=EB=8B=8C=20playgroundPart=EB=A5=BC=20=EB=B0=98?= =?UTF-8?q?=ED=99=98=ED=95=98=EB=8F=84=EB=A1=9D=20=EC=88=98=20(#421)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../playground/dto/PlaygroundProfileInfo.java | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/main/java/org/sopt/app/application/playground/dto/PlaygroundProfileInfo.java b/src/main/java/org/sopt/app/application/playground/dto/PlaygroundProfileInfo.java index fce0f4bf..213a6b1a 100755 --- a/src/main/java/org/sopt/app/application/playground/dto/PlaygroundProfileInfo.java +++ b/src/main/java/org/sopt/app/application/playground/dto/PlaygroundProfileInfo.java @@ -1,11 +1,14 @@ package org.sopt.app.application.playground.dto; +import static org.sopt.app.domain.enums.PlaygroundPart.findPlaygroundPart; + import com.fasterxml.jackson.annotation.JsonProperty; import jakarta.validation.constraints.NotNull; import java.util.*; import lombok.*; import org.sopt.app.common.exception.BadRequestException; import org.sopt.app.common.response.ErrorCode; +import org.sopt.app.domain.enums.PlaygroundPart; import org.sopt.app.domain.enums.UserStatus; @NoArgsConstructor(access = AccessLevel.PRIVATE) @@ -99,7 +102,8 @@ public ActivityCardinalInfo getLatestActivity() { @AllArgsConstructor(access = AccessLevel.PUBLIC) public static class ActivityCardinalInfo { - private String cardinalInfo; + private String cardinalInfo; // "{generation},{part}" + // part = 기획, 디자인, 서버, 안드로이드, iOS, 웹 / 회장, 부회장, 총무, {team} 팀장, {part} 파트장, public Long getGeneration() { try { @@ -109,8 +113,8 @@ public Long getGeneration() { } } - public String getPart() { - return cardinalInfo.split(",")[1]; + public PlaygroundPart getPlaygroundPart() { + return findPlaygroundPart(cardinalInfo.split(",")[1]); } } From 593c892002787b64d17c626dcb9bf8d2389b0b0f Mon Sep 17 00:00:00 2001 From: kseysh Date: Tue, 15 Oct 2024 22:29:57 +0900 Subject: [PATCH 02/11] =?UTF-8?q?[feat]=20PlaygroundPart=EC=97=90=20?= =?UTF-8?q?=ED=8C=8C=ED=8A=B8=EC=9E=A5=20=EC=B6=94=EA=B0=80=20(#421)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/org/sopt/app/domain/enums/PlaygroundPart.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/main/java/org/sopt/app/domain/enums/PlaygroundPart.java b/src/main/java/org/sopt/app/domain/enums/PlaygroundPart.java index 7b23cf88..6d623538 100755 --- a/src/main/java/org/sopt/app/domain/enums/PlaygroundPart.java +++ b/src/main/java/org/sopt/app/domain/enums/PlaygroundPart.java @@ -8,11 +8,19 @@ @Getter public enum PlaygroundPart { PLAN("기획", "기획"), + PLAN_PART_LEADER("기획 파트장", "기획파트장"), DESIGN("디자인", "디자인"), + DESIGN_PART_LEADER("디자인 파트장", "디자인파트장"), ANDROID("안드로이드", "안드"), + ANDROID_PART_LEADER("안드로이드 파트장", "안드파트장"), IOS("iOS", "아요"), + IOS_PART_LEADER("iOS 파트장", "아요파트장"), WEB("웹", "웹"), + WEB_PART_LEADER("웹 파트장", "웹파트장"), SERVER("서버", "서버"), + SERVER_PART_LEADER("서버 파트장", "서버파트장"), + PRESIDENT("회장", "회장"), + VICE_PRESIDENT("부회장", "부회장"), NONE("미상", "선배"), ; final String partName; From 51348c933828596238525fb5a1920903b8eee21e Mon Sep 17 00:00:00 2001 From: kseysh Date: Tue, 15 Oct 2024 22:35:25 +0900 Subject: [PATCH 03/11] =?UTF-8?q?[feat]=20PlaygroundPart=EC=97=90=20?= =?UTF-8?q?=ED=9A=8C=EC=9E=A5,=EB=B6=80=ED=9A=8C=EC=9E=A5,=EC=B4=9D?= =?UTF-8?q?=EB=AC=B4=20=EC=B6=94=EA=B0=80=20=EB=B0=8F=20soptampNickname=20?= =?UTF-8?q?->=20shortedPartName=EC=9C=BC=EB=A1=9C=20=EB=84=A4=EC=9D=B4?= =?UTF-8?q?=EB=B0=8D=20=EB=B3=80=20(#421)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../sopt/app/domain/enums/PlaygroundPart.java | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/src/main/java/org/sopt/app/domain/enums/PlaygroundPart.java b/src/main/java/org/sopt/app/domain/enums/PlaygroundPart.java index 6d623538..2727511b 100755 --- a/src/main/java/org/sopt/app/domain/enums/PlaygroundPart.java +++ b/src/main/java/org/sopt/app/domain/enums/PlaygroundPart.java @@ -7,6 +7,9 @@ @AllArgsConstructor @Getter public enum PlaygroundPart { + PRESIDENT("회장", "회장"), + VICE_PRESIDENT("부회장", "부회장"), + GENERAL_AFFAIR("총무", "총무"), PLAN("기획", "기획"), PLAN_PART_LEADER("기획 파트장", "기획파트장"), DESIGN("디자인", "디자인"), @@ -19,16 +22,22 @@ public enum PlaygroundPart { WEB_PART_LEADER("웹 파트장", "웹파트장"), SERVER("서버", "서버"), SERVER_PART_LEADER("서버 파트장", "서버파트장"), - PRESIDENT("회장", "회장"), - VICE_PRESIDENT("부회장", "부회장"), + NONE("미상", "선배"), ; final String partName; - final String soptampNickname; + final String shortedPartName; + + public static PlaygroundPart findPlaygroundPartByPartName(String partName) { + return Arrays.stream(PlaygroundPart.values()) + .filter(playgroundPart -> playgroundPart.partName.equals(partName)) + .findAny() + .orElse(PlaygroundPart.NONE); + } - public static PlaygroundPart findPlaygroundPart(String partName) { + public static PlaygroundPart findPlaygroundPartByShortedPartName(String shortedPartName) { return Arrays.stream(PlaygroundPart.values()) - .filter(playgroundPart -> playgroundPart.soptampNickname.equals(partName)) + .filter(playgroundPart -> playgroundPart.shortedPartName.equals(shortedPartName)) .findAny() .orElse(PlaygroundPart.NONE); } From 0b6884157c52846827325f4059a89732b75eaefd Mon Sep 17 00:00:00 2001 From: kseysh Date: Tue, 15 Oct 2024 22:36:16 +0900 Subject: [PATCH 04/11] =?UTF-8?q?[feat]=20ActivityCardinalInfo.getPlaygrou?= =?UTF-8?q?ndPart=EA=B0=80=20Enum=20=EA=B0=92=EC=9D=84=20=EB=B0=98?= =?UTF-8?q?=ED=99=98=ED=95=98=EB=8F=84=EB=A1=9D=20=EC=88=98=20(#421)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../app/application/playground/dto/PlaygroundProfileInfo.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/sopt/app/application/playground/dto/PlaygroundProfileInfo.java b/src/main/java/org/sopt/app/application/playground/dto/PlaygroundProfileInfo.java index 213a6b1a..bcb28b04 100755 --- a/src/main/java/org/sopt/app/application/playground/dto/PlaygroundProfileInfo.java +++ b/src/main/java/org/sopt/app/application/playground/dto/PlaygroundProfileInfo.java @@ -1,6 +1,6 @@ package org.sopt.app.application.playground.dto; -import static org.sopt.app.domain.enums.PlaygroundPart.findPlaygroundPart; +import static org.sopt.app.domain.enums.PlaygroundPart.findPlaygroundPartByPartName; import com.fasterxml.jackson.annotation.JsonProperty; import jakarta.validation.constraints.NotNull; @@ -114,7 +114,7 @@ public Long getGeneration() { } public PlaygroundPart getPlaygroundPart() { - return findPlaygroundPart(cardinalInfo.split(",")[1]); + return findPlaygroundPartByPartName(cardinalInfo.split(",")[1]); } } From 1216be1a8a68a8c7deb738d53800adb0d490f65e Mon Sep 17 00:00:00 2001 From: kseysh Date: Tue, 15 Oct 2024 22:42:30 +0900 Subject: [PATCH 05/11] =?UTF-8?q?[feat]=20getPart=20=EB=B3=80=EA=B2=BD?= =?UTF-8?q?=EC=9C=BC=EB=A1=9C=20=EC=9D=B8=ED=95=9C=20=EB=B3=80=EA=B2=BD=20?= =?UTF-8?q?=EC=88=98=EC=A0=95=20(#421)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../org/sopt/app/application/friend/FriendRecommender.java | 2 +- src/main/java/org/sopt/app/facade/PokeFacade.java | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/org/sopt/app/application/friend/FriendRecommender.java b/src/main/java/org/sopt/app/application/friend/FriendRecommender.java index 0188d7c3..8827e265 100644 --- a/src/main/java/org/sopt/app/application/friend/FriendRecommender.java +++ b/src/main/java/org/sopt/app/application/friend/FriendRecommender.java @@ -71,7 +71,7 @@ private List makeSimplePokeProfilesForNotFriend( playgroundProfile.getProfileImage(), userProfile.getName(), playgroundProfile.getLatestActivity().getGeneration(), - playgroundProfile.getLatestActivity().getPart() + playgroundProfile.getLatestActivity().getPlaygroundPart().getPartName() ); }).toList(); } diff --git a/src/main/java/org/sopt/app/facade/PokeFacade.java b/src/main/java/org/sopt/app/facade/PokeFacade.java index fb8dca4f..bb88b48d 100755 --- a/src/main/java/org/sopt/app/facade/PokeFacade.java +++ b/src/main/java/org/sopt/app/facade/PokeFacade.java @@ -131,8 +131,8 @@ public List getFriend(User user) { friendProfile.getProfileImage(), friendProfile.getName(), "", - friendProfile.getActivities().get(0).getGeneration(), - friendProfile.getActivities().get(0).getPart(), + friendProfile.getActivities().getFirst().getGeneration(), + friendProfile.getActivities().getFirst().getPlaygroundPart().getPartName(), friendRelationInfo.getPokeNum(), friendRelationInfo.getRelationName(), createMutualFriendNames(user.getId(), friendId), @@ -245,7 +245,7 @@ private PokeInfo.PokedUserInfo getFriendUserInfo(User user, Long friendUserId) { .name(pokedUserPlaygroundProfile.getName()) .profileImage(pokedUserPlaygroundProfile.getProfileImage()) .generation(latestActivity.getGeneration()) - .part(latestActivity.getPart()) + .part(latestActivity.getPlaygroundPart().getPartName()) .relation(relationInfo) .mutualFriendNames(mutualFriendNames) .build(); From 6ada991c2c8e3c28458404b157d2bed7c7593107 Mon Sep 17 00:00:00 2001 From: kseysh Date: Tue, 15 Oct 2024 22:43:39 +0900 Subject: [PATCH 06/11] =?UTF-8?q?[fix]=20PlaygroundPart=EC=97=90=EC=84=9C?= =?UTF-8?q?=20shortedPartName=EC=9D=84=20=EC=9D=B4=EC=9A=A9=ED=95=B4=20?= =?UTF-8?q?=EB=8B=89=EB=84=A4=EC=9E=84=EC=9D=84=20=EC=83=9D=EC=84=B1?= =?UTF-8?q?=ED=95=98=EB=8F=84=EB=A1=9D=20=EC=88=98=EC=A0=95=20(#421)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../soptamp/SoptampUserService.java | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/src/main/java/org/sopt/app/application/soptamp/SoptampUserService.java b/src/main/java/org/sopt/app/application/soptamp/SoptampUserService.java index 7ab544dd..6bc20d17 100755 --- a/src/main/java/org/sopt/app/application/soptamp/SoptampUserService.java +++ b/src/main/java/org/sopt/app/application/soptamp/SoptampUserService.java @@ -1,7 +1,7 @@ package org.sopt.app.application.soptamp; import static org.sopt.app.domain.entity.soptamp.SoptampUser.createNewSoptampUser; -import static org.sopt.app.domain.enums.PlaygroundPart.findPlaygroundPart; +import static org.sopt.app.domain.enums.PlaygroundPart.findPlaygroundPartByPartName; import java.util.*; import lombok.*; @@ -10,6 +10,7 @@ import org.sopt.app.common.exception.BadRequestException; import org.sopt.app.common.response.ErrorCode; import org.sopt.app.domain.entity.soptamp.SoptampUser; +import org.sopt.app.domain.enums.PlaygroundPart; import org.sopt.app.interfaces.postgres.SoptampUserRepository; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @@ -50,19 +51,19 @@ public void upsertSoptampUser(PlaygroundProfile profile, Long userId) { private void updateSoptampUser(SoptampUser registeredUser, PlaygroundProfile profile){ ActivityCardinalInfo lastActivity = profile.getLatestActivity(); - String uniqueNickname = generateUniqueNickname(profile.getName(), lastActivity.getPart()); + String uniqueNickname = generateUniqueNickname(profile.getName(), lastActivity.getPlaygroundPart()); registeredUser.updateChangedGenerationInfo( lastActivity.getGeneration(), - findPlaygroundPart(lastActivity.getPart()), + findPlaygroundPartByPartName(lastActivity.getPlaygroundPart().getPartName()), uniqueNickname ); } private void createSoptampUser(PlaygroundProfile profile, Long userId) { ActivityCardinalInfo lastActivity = profile.getLatestActivity(); - String uniqueNickname = generateUniqueNickname(profile.getName(), lastActivity.getPart()); - SoptampUser newSoptampUser = createNewSoptampUser(userId, uniqueNickname, - lastActivity.getGeneration(), findPlaygroundPart(lastActivity.getPart())); + PlaygroundPart part = lastActivity.getPlaygroundPart(); + String uniqueNickname = generateUniqueNickname(profile.getName(), part); + SoptampUser newSoptampUser = createNewSoptampUser(userId, uniqueNickname, lastActivity.getGeneration(), part); soptampUserRepository.save(newSoptampUser); } @@ -70,8 +71,9 @@ private boolean isGenerationChanged(SoptampUser registeredUser, Long profileGene return !registeredUser.getGeneration().equals(profileGeneration); } - private String generateUniqueNickname(String nickname, String part) { - StringBuilder uniqueNickname = new StringBuilder().append(part).append(nickname); + private String generateUniqueNickname(String nickname, PlaygroundPart part) { + String prefixPartName = part.getShortedPartName(); + StringBuilder uniqueNickname = new StringBuilder().append(prefixPartName).append(nickname); if (soptampUserRepository.existsByNickname(uniqueNickname.toString())) { return addSuffixToNickname(uniqueNickname); } From d63e71f2bf97197d820c8cbff17e0743ae190c8c Mon Sep 17 00:00:00 2001 From: kseysh Date: Tue, 15 Oct 2024 22:47:44 +0900 Subject: [PATCH 07/11] =?UTF-8?q?[fix]=20=EB=B3=80=EA=B2=BD=EC=9C=BC?= =?UTF-8?q?=EB=A1=9C=20=EC=9D=B8=ED=95=B4=20=EC=88=98=EC=A0=95=EB=90=9C=20?= =?UTF-8?q?=EC=BD=94=EB=93=9C=20=EC=88=98=20(#421)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../application/SoptampUserServiceTest.java | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/src/test/java/org/sopt/app/application/SoptampUserServiceTest.java b/src/test/java/org/sopt/app/application/SoptampUserServiceTest.java index ccec1ccb..f83835ef 100755 --- a/src/test/java/org/sopt/app/application/SoptampUserServiceTest.java +++ b/src/test/java/org/sopt/app/application/SoptampUserServiceTest.java @@ -28,7 +28,6 @@ import org.sopt.app.application.soptamp.SoptampUserService; import org.sopt.app.common.exception.BadRequestException; import org.sopt.app.domain.entity.soptamp.SoptampUser; -import org.sopt.app.domain.enums.PlaygroundPart; import org.sopt.app.interfaces.postgres.SoptampUserRepository; @ExtendWith(MockitoExtension.class) @@ -124,7 +123,7 @@ void SUCCESS_upsertSoptampUserIfEmpty() { Long userId = 1L; //when soptampUserService.upsertSoptampUser(profile, userId); - String expectedNickname = profile.getLatestActivity().getPart() + profile.getName(); + String expectedNickname = profile.getLatestActivity().getPlaygroundPart().getShortedPartName()+ profile.getName(); //then ArgumentCaptor captor = ArgumentCaptor.forClass(SoptampUser.class); @@ -132,7 +131,8 @@ void SUCCESS_upsertSoptampUserIfEmpty() { verify(soptampUserRepository, times(1)).save(captor.capture()); assertThat(captor.getValue().getUserId()).isEqualTo(userId); assertThat(captor.getValue().getNickname()).isEqualTo(expectedNickname); - assertThat(captor.getValue().getPart().getPartName()).isEqualTo(profile.getLatestActivity().getPart()); + assertThat(captor.getValue().getPart().getPartName()) + .isEqualTo(profile.getLatestActivity().getPlaygroundPart().getPartName()); assertThat(captor.getValue().getGeneration()).isEqualTo(profile.getLatestActivity().getGeneration()); } @@ -145,14 +145,17 @@ void SUCCESS_upsertSoptampUserIfEmpty() { .activities(List.of(new ActivityCardinalInfo("35,서버"))) .build(); given(soptampUserRepository.findByUserId(anyLong())).willReturn(Optional.empty()); - given(soptampUserRepository.existsByNickname(profile.getLatestActivity().getPart() + profile.getName())) + given(soptampUserRepository.existsByNickname( + profile.getLatestActivity().getPlaygroundPart().getShortedPartName() + profile.getName())) .willReturn(true); - given(soptampUserRepository.existsByNickname(profile.getLatestActivity().getPart() + profile.getName() + 'A')) + given(soptampUserRepository.existsByNickname( + profile.getLatestActivity().getPlaygroundPart().getShortedPartName() + profile.getName() + 'A')) .willReturn(true); //when soptampUserService.upsertSoptampUser(profile, userId); - String expectedNickname = profile.getLatestActivity().getPart() + profile.getName() + 'B'; + String expectedNickname = + profile.getLatestActivity().getPlaygroundPart().getShortedPartName() + profile.getName() + 'B'; //then ArgumentCaptor captor = ArgumentCaptor.forClass(SoptampUser.class); @@ -160,7 +163,8 @@ void SUCCESS_upsertSoptampUserIfEmpty() { verify(soptampUserRepository, times(1)).save(captor.capture()); assertThat(captor.getValue().getUserId()).isEqualTo(userId); assertThat(captor.getValue().getNickname()).isEqualTo(expectedNickname); - assertThat(captor.getValue().getPart().getPartName()).isEqualTo(profile.getLatestActivity().getPart()); + assertThat(captor.getValue().getPart().getPartName()) + .isEqualTo(profile.getLatestActivity().getPlaygroundPart().getPartName()); assertThat(captor.getValue().getGeneration()).isEqualTo(profile.getLatestActivity().getGeneration()); } From 66742e2734cbfe9d8e98fc1fbe5fc5e59f88b170 Mon Sep 17 00:00:00 2001 From: kseysh Date: Tue, 15 Oct 2024 22:54:48 +0900 Subject: [PATCH 08/11] =?UTF-8?q?[feat]=20=ED=98=84=EC=9E=AC=20=EA=B8=B0?= =?UTF-8?q?=EC=88=98=EC=97=AC=EC=95=BC=20soptampUser=EB=A5=BC=20upsert?= =?UTF-8?q?=ED=95=98=EB=8F=84=EB=A1=9D=20=EC=88=98=EC=A0=95=20(#421)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../app/application/playground/PlaygroundAuthService.java | 4 ++++ src/main/java/org/sopt/app/facade/AuthFacade.java | 7 +++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/sopt/app/application/playground/PlaygroundAuthService.java b/src/main/java/org/sopt/app/application/playground/PlaygroundAuthService.java index 200cc1dd..c5f92678 100755 --- a/src/main/java/org/sopt/app/application/playground/PlaygroundAuthService.java +++ b/src/main/java/org/sopt/app/application/playground/PlaygroundAuthService.java @@ -154,4 +154,8 @@ public PlaygroundPost getPlaygroundHotPost(String playgroundToken) { private String convertPlaygroundWebPageUrl(Long postId) { return playgroundWebPageUrl + "/?feed=" + postId; } + + public boolean isCurrentGeneration(Long generation) { + return generation.equals(currentGeneration); + } } diff --git a/src/main/java/org/sopt/app/facade/AuthFacade.java b/src/main/java/org/sopt/app/facade/AuthFacade.java index 99fa3b86..610f9840 100755 --- a/src/main/java/org/sopt/app/facade/AuthFacade.java +++ b/src/main/java/org/sopt/app/facade/AuthFacade.java @@ -28,16 +28,19 @@ public AppAuthResponse loginWithPlayground(CodeRequest codeRequest) { PlaygroundProfile playgroundProfile = playgroundAuthService.getPlaygroundMemberProfile( playgroundToken, playgroundInfo.getId() ); + Long latestGeneration = playgroundProfile.getLatestActivity().getGeneration(); Long userId = userService.upsertUser(LoginInfo.of(playgroundInfo, playgroundToken)); - soptampUserService.upsertSoptampUser(playgroundProfile, userId); + if(playgroundAuthService.isCurrentGeneration(latestGeneration)){ + soptampUserService.upsertSoptampUser(playgroundProfile, userId); + } AppToken appToken = jwtTokenService.issueNewTokens(userId, playgroundInfo.getId()); return AppAuthResponse.builder() .playgroundToken(playgroundToken) .accessToken(appToken.getAccessToken()) .refreshToken(appToken.getRefreshToken()) - .status(playgroundAuthService.getStatus(playgroundProfile.getLatestActivity().getGeneration())) + .status(playgroundAuthService.getStatus(latestGeneration)) .build(); } From 443934a9d1f056f43b9d0e98cd1fb084bbc14f89 Mon Sep 17 00:00:00 2001 From: kseysh Date: Tue, 15 Oct 2024 23:07:33 +0900 Subject: [PATCH 09/11] =?UTF-8?q?[refactor]=20=EB=B6=88=ED=95=84=EC=9A=94?= =?UTF-8?q?=ED=95=9C=20=EB=A9=94=EC=84=9C=EB=93=9C=20=EC=82=AD=EC=A0=9C=20?= =?UTF-8?q?(#421)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/org/sopt/app/domain/enums/PlaygroundPart.java | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/main/java/org/sopt/app/domain/enums/PlaygroundPart.java b/src/main/java/org/sopt/app/domain/enums/PlaygroundPart.java index 2727511b..1349b1f5 100755 --- a/src/main/java/org/sopt/app/domain/enums/PlaygroundPart.java +++ b/src/main/java/org/sopt/app/domain/enums/PlaygroundPart.java @@ -34,11 +34,4 @@ public static PlaygroundPart findPlaygroundPartByPartName(String partName) { .findAny() .orElse(PlaygroundPart.NONE); } - - public static PlaygroundPart findPlaygroundPartByShortedPartName(String shortedPartName) { - return Arrays.stream(PlaygroundPart.values()) - .filter(playgroundPart -> playgroundPart.shortedPartName.equals(shortedPartName)) - .findAny() - .orElse(PlaygroundPart.NONE); - } } From 8438d6c6d66189d9a559d5da99bb376c37fd0904 Mon Sep 17 00:00:00 2001 From: kseysh Date: Wed, 16 Oct 2024 00:30:14 +0900 Subject: [PATCH 10/11] =?UTF-8?q?[feat]=20PlaygroundPart=EC=97=90=20?= =?UTF-8?q?=EB=AF=B8=ED=8C=80=EC=9E=A5,=20=EC=9A=B4=ED=8C=80=EC=9E=A5=20?= =?UTF-8?q?=EB=A9=94=ED=8C=80=EC=9E=A5=20=EC=B6=94=EA=B0=80(#419)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/org/sopt/app/domain/enums/PlaygroundPart.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/org/sopt/app/domain/enums/PlaygroundPart.java b/src/main/java/org/sopt/app/domain/enums/PlaygroundPart.java index 1349b1f5..a2da5765 100755 --- a/src/main/java/org/sopt/app/domain/enums/PlaygroundPart.java +++ b/src/main/java/org/sopt/app/domain/enums/PlaygroundPart.java @@ -10,6 +10,10 @@ public enum PlaygroundPart { PRESIDENT("회장", "회장"), VICE_PRESIDENT("부회장", "부회장"), GENERAL_AFFAIR("총무", "총무"), + MEDIA_TEAM_LEADER("미디어 팀장", "미팀장"), + OPERATIONS_TEAM_LEADER("운영 팀장", "운팀장"), + MAKERS_TEAM_LEADER("메이커스 팀장", "메팀장"), + PLAN("기획", "기획"), PLAN_PART_LEADER("기획 파트장", "기획파트장"), DESIGN("디자인", "디자인"), From 999880a731df934cd3e3f93fa31093b7181cab22 Mon Sep 17 00:00:00 2001 From: kseysh Date: Wed, 16 Oct 2024 00:42:18 +0900 Subject: [PATCH 11/11] =?UTF-8?q?[chore]=20=EC=9D=B4=ED=9B=84=20=EC=9D=B4?= =?UTF-8?q?=ED=95=B4=EB=A5=BC=20=EC=9C=84=ED=95=9C=20=EC=A3=BC=EC=84=9D=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80=20(#421)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/org/sopt/app/domain/enums/PlaygroundPart.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/org/sopt/app/domain/enums/PlaygroundPart.java b/src/main/java/org/sopt/app/domain/enums/PlaygroundPart.java index a2da5765..b2f67212 100755 --- a/src/main/java/org/sopt/app/domain/enums/PlaygroundPart.java +++ b/src/main/java/org/sopt/app/domain/enums/PlaygroundPart.java @@ -26,6 +26,7 @@ public enum PlaygroundPart { WEB_PART_LEADER("웹 파트장", "웹파트장"), SERVER("서버", "서버"), SERVER_PART_LEADER("서버 파트장", "서버파트장"), + // 파트장이 솝탬프 파트별 랭킹에 관여할 수 있으려면 각 파트의 shortedPartName이 접두사로 필요하다 NONE("미상", "선배"), ;