-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #544 from sopt-makers/develop
RELEASE 2024/11/09 20:56:00
- Loading branch information
Showing
15 changed files
with
187 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,3 +40,6 @@ out/ | |
|
||
### config yml ### | ||
application-**.yml | ||
|
||
### Mac OS .DS_Store ### | ||
.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
...ava/org/sopt/makers/internal/member/controller/dto/response/MemberPropertiesResponse.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package org.sopt.makers.internal.member.controller.dto.response; | ||
|
||
import org.sopt.makers.internal.member.domain.coffeechat.CoffeeChatStatus; | ||
|
||
import java.util.List; | ||
|
||
public record MemberPropertiesResponse( | ||
|
||
Long id, | ||
|
||
String major, | ||
|
||
String job, | ||
|
||
String organization, | ||
|
||
List<String> part, | ||
|
||
List<Integer> generation, | ||
|
||
CoffeeChatStatus coffeeChatStatus, | ||
|
||
Long receivedCoffeeChatCount, | ||
|
||
Long sentCoffeeChatCount | ||
) { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
src/main/java/org/sopt/makers/internal/member/domain/coffeechat/CoffeeChatStatus.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package org.sopt.makers.internal.member.domain.coffeechat; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Getter; | ||
|
||
@Getter | ||
@AllArgsConstructor | ||
public enum CoffeeChatStatus { | ||
|
||
ON(true), | ||
OFF(false), | ||
NONE(false) | ||
; | ||
|
||
private final boolean isCoffeeChatActivate; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
...va/org/sopt/makers/internal/member/repository/coffeechat/CoffeeChatHistoryRepository.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,18 @@ | ||
package org.sopt.makers.internal.member.repository.coffeechat; | ||
|
||
import org.sopt.makers.internal.domain.Member; | ||
import org.sopt.makers.internal.member.domain.coffeechat.CoffeeChatHistory; | ||
import org.springframework.data.jpa.repository.JpaRepository; | ||
|
||
public interface CoffeeChatHistoryRepository extends JpaRepository<CoffeeChatHistory, Long> { | ||
|
||
// CREATE | ||
|
||
// READ | ||
Long countBySender(Member sender); | ||
Long countByReceiver(Member receiver); | ||
|
||
// UPDATE | ||
|
||
// DELETE | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
...a/org/sopt/makers/internal/member/service/coffeechat/dto/MemberCoffeeChatPropertyDto.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package org.sopt.makers.internal.member.service.coffeechat.dto; | ||
|
||
import org.sopt.makers.internal.member.domain.coffeechat.CoffeeChatStatus; | ||
|
||
public record MemberCoffeeChatPropertyDto( | ||
|
||
CoffeeChatStatus coffeeChatStatus, | ||
|
||
Long receivedCoffeeChatCount, | ||
|
||
Long sentCoffeeChatCount | ||
) { | ||
} |
18 changes: 18 additions & 0 deletions
18
src/main/java/org/sopt/makers/internal/member/util/MemberUtil.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package org.sopt.makers.internal.member.util; | ||
|
||
import java.util.List; | ||
|
||
public class MemberUtil { | ||
|
||
public static List<Integer> extractGenerations(List<String> activitiesAndGeneration) { | ||
return activitiesAndGeneration.stream() | ||
.map(item -> Integer.parseInt(item.split(" ")[0].replaceAll("[^0-9]", ""))) | ||
.toList(); | ||
} | ||
|
||
public static List<String> extractActivities(List<String> activitiesAndGeneration) { | ||
return activitiesAndGeneration.stream() | ||
.map(item -> item.split(" ")[1]) | ||
.toList(); | ||
} | ||
} |
Oops, something went wrong.