Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
95 commits
Select commit Hold shift + click to select a range
bce7dbc
feat : 닉네임 중복 체크 (nickname unique), 인증코드 검사 예외처리 추가
yyytir777 Dec 8, 2025
3573613
fix : user_id IDENTITY strategy & dev redis host 이름변경 (localhost -> r…
yyytir777 Dec 8, 2025
08cfb63
test코드 생성 & swagger url 삭제 & 환경변수 중복 삭제
yyytir777 Dec 8, 2025
ac96fa0
fix : 엔드포인트 추가
yyytir777 Dec 9, 2025
43e75ed
Merge pull request #27 from tinybite-2025/feature/13-user
yyytir777 Dec 9, 2025
a70941b
Feature/26 notification (#29)
marshmallowing Dec 11, 2025
cbbf597
feat : google login 구현 완료
yyytir777 Dec 11, 2025
d03fd30
fix : main push 시에만 workflow trigger
yyytir777 Dec 11, 2025
00cc289
Merge branch 'main' of https://github.com/tinybite-2025/tinybite-serv…
yyytir777 Dec 11, 2025
729ae0a
Feature/#28 google apple login
yyytir777 Dec 16, 2025
b5c29db
Merge branch 'main' into develop
yyytir777 Dec 16, 2025
2e5da55
Merge branch 'develop' of https://github.com/tinybite-2025/tinybite-s…
yyytir777 Dec 18, 2025
1fbd896
merge main into develop : main의 핫픽스 변경사항 develop에 반영
yyytir777 Dec 18, 2025
dd9771a
workflow 줄바꿈 에러 수정
yyytir777 Dec 18, 2025
38de611
hotifx : 에러 핸들링 수정 및 무중단 배포 삭제 (리소스 너무 많이 먹음)
yyytir777 Dec 19, 2025
91b8cba
main의 핫픽스 develop에 반영
yyytir777 Dec 22, 2025
fbc5e90
수정사항 반영 (API 인증 관련, db schema, 예외 처리 등..)
yyytir777 Dec 23, 2025
7b9fb7b
main브랜치 핫픽스 반영
yyytir777 Dec 24, 2025
bbb080f
Feature/35 term (#38)
yyytir777 Dec 24, 2025
4c352aa
fix : docker compose 명령어 수정
yyytir777 Dec 24, 2025
27dfcbb
Feature : 파티 기능 (#42)
milowon Dec 27, 2025
0de3a43
Merge branch 'main' into develop
milowon Dec 31, 2025
2f27dee
hotfix : url parser 경로 제거
milowon Dec 31, 2025
6eb0d8d
Merge branch 'main' of https://github.com/tinybite-2025/tinybite-serv…
milowon Jan 1, 2026
3f69bc1
Merge branch 'main' of https://github.com/tinybite-2025/tinybite-serv…
milowon Jan 2, 2026
45191a9
hotfix : 파티 거리 계산 로직 임시 주석 처리
milowon Jan 2, 2026
3a9a6e6
Merge branch 'main' of https://github.com/tinybite-2025/tinybite-serv…
milowon Jan 2, 2026
b2ca1f4
hotfix : 파티 수정, 삭제 controller 추가
milowon Jan 2, 2026
38ab16c
hotfix : 선택 값들이 존재할때만 넣도록 수정
milowon Jan 2, 2026
037d2e4
hotfix : 위도, 경도 로직 삭제
milowon Jan 2, 2026
9d305f8
Feat : 마이페이지 참여중인 파티 조회 (#50)
milowon Jan 2, 2026
1cee657
hotfix : user service에 transactional 어노테이션 추가
milowon Jan 2, 2026
5213214
Merge branch 'main' of https://github.com/tinybite-2025/tinybite-serv…
milowon Jan 2, 2026
ed3a399
hotfix : 참여중 파티 조회 반환 형식 통일
milowon Jan 2, 2026
374f720
hotfix : 파티 생성, 조회 시, 거리 계산 로직 반영
milowon Jan 2, 2026
4ddfa39
Hotfix: 유저 좌표 입력 requestParam 형식으로 변경
milowon Jan 2, 2026
42bc4d4
Merge branch 'main' into develop
milowon Jan 2, 2026
9ee078a
Merge branch 'main' into develop
milowon Jan 2, 2026
3be9d38
hotfix : 누락된 swagger 문서 수정사항 반영
milowon Jan 2, 2026
89bbef3
Merge branch 'main' into develop
milowon Jan 2, 2026
b281a29
feat : 회원 탈퇴 및 재가입 방지, 검증 (#65)
milowon Jan 2, 2026
35a62b7
fix : 파티 수정 버그 픽스 (#67)
milowon Jan 2, 2026
a4f3582
hotfix : 탈퇴 유저 마스킹 로직 변경
milowon Jan 3, 2026
9f05a6a
Merge branch 'main' of https://github.com/tinybite-2025/tinybite-serv…
milowon Jan 3, 2026
d802e15
feat : 마이페이지에서 참여중,호스트인 파티 구분해서 조회 (#71)
milowon Jan 4, 2026
8715584
Feature/73 search party (#74)
yyytir777 Jan 4, 2026
78349d6
fix : 스웨거 description 추가
yyytir777 Jan 4, 2026
ba3d9d8
Merge branch 'main' into develop
yyytir777 Jan 4, 2026
c15e45b
Feature/73 search party (#76)
yyytir777 Jan 4, 2026
92bef29
Merge branch 'main' into develop
yyytir777 Jan 4, 2026
bd136de
Fix : 호스트만 있을때는 파티 수정할 수 있도록 변경 (#78)
milowon Jan 4, 2026
5d3e13d
fix : 파티 삭제시 호스트는 현재인원에서 제외하도록 수정 (#80)
milowon Jan 4, 2026
1e5b600
hotfix : jpa 네이밍 및 쿼리 수정
yyytir777 Jan 4, 2026
ba4ed25
hotfix : jpa 네이밍 및 쿼리 수정
yyytir777 Jan 4, 2026
c2d9465
Merge branch 'main' into develop
yyytir777 Jan 4, 2026
0b783c7
feat : 파티 카테고리, 최신순, 거리순 정렬 (#83)
milowon Jan 4, 2026
4474664
Merge branch 'main' of https://github.com/tinybite-2025/tinybite-serv…
milowon Jan 4, 2026
3353068
Feature/44 chat (#82)
yyytir777 Jan 6, 2026
6e2450c
hotfix : 파티 삭제 되지 않는 문제 수정 (#86)
milowon Jan 6, 2026
b9630cf
hotfix : 파티 수정사항이 db에 반영 되지 않는 문제 수정
milowon Jan 6, 2026
866bb84
feat : 유저 프로필 이미지 수정, 삭제 (#89)
milowon Jan 6, 2026
e1fc441
Fix : 유저 프로필 수정, 삭제 (#91)
milowon Jan 6, 2026
64449d4
Merge branch 'main' into develop
milowon Jan 6, 2026
85f9a6e
hotfix: 유저 정보 조회시 프로필 이미지 반환하도록 수정
milowon Jan 9, 2026
17485c9
Fix/party search (#94)
yyytir777 Jan 9, 2026
e77c560
feat: 파티 참여, 거절, 종료 알림 연결 (#97)
marshmallowing Jan 10, 2026
2826cae
fix : 마이페이지에서 참여중, 호스트 파티 조회시 최신순으로 조회되도록 수정 (#98)
milowon Jan 10, 2026
cf0f51d
Merge branch 'main' into develop
milowon Jan 10, 2026
f02e7eb
feat : 파티 생성시 이미지 없을 경우 디폴트 이미지 반환하도록 수정 (#100)
milowon Jan 10, 2026
72accaf
feat: 채팅 알림 단체/개인 구분 (#102)
marshmallowing Jan 10, 2026
8fa6f24
fix : 채팅방 유형 별 알림 변경
yyytir777 Jan 10, 2026
0707f62
Feat : 파티 목록 디폴트 이미지 필드 추가 (#104)
milowon Jan 10, 2026
02c3e16
Fix : 파티 썸네일 이미지 주입되도록 value값 수정 (#106)
milowon Jan 10, 2026
5c230a6
Merge branch 'main' into develop
milowon Jan 10, 2026
7611fd9
Feature/44 chat (#107)
yyytir777 Jan 10, 2026
0a416c4
hotfix: 파티 세부 조회시 디폴트 이미지 필드 수정
milowon Jan 10, 2026
69c48b8
Feature/103 파티장 리마인드 알림 (#110)
marshmallowing Jan 10, 2026
0f4ea15
Merge branch 'main' into develop
yyytir777 Jan 10, 2026
361a3ee
Feat : 파티 추가 기능(파티 목록 페이지네이션, 파티탈퇴, 파티 모집 완료) (#113)
milowon Jan 10, 2026
d55a526
Merge branch 'main' into develop
milowon Jan 10, 2026
28af054
Feature/44 chat (#115)
yyytir777 Jan 10, 2026
01fb19b
Merge branch 'main' into develop
yyytir777 Jan 10, 2026
1a0e242
Feat : host 위치 추가
milowon Jan 12, 2026
891110c
Merge branch 'main' into develop
milowon Jan 12, 2026
50b4db5
Feature/chatroom detail (#118)
yyytir777 Jan 13, 2026
a6401d0
Feature/chatroom detail (#120)
yyytir777 Jan 13, 2026
45af129
Merge branch 'main' into develop
yyytir777 Jan 13, 2026
41d9b7d
feat : 파티 정렬 항상 거리순으로 수정 + 동네 기준으로 파티 조회 (#122)
milowon Jan 13, 2026
c3748dc
Merge branch 'main' of https://github.com/tinybite-2025/tinybite-serv…
milowon Jan 14, 2026
8da39b7
Refactor: 파티 조회 시 거리 정보 반환 및 API 개선 (#124)
milowon Jan 14, 2026
f96bab4
feat: 알림 테스트용 API (#127)
marshmallowing Jan 14, 2026
566be89
hotfix : 모집 완료 파티 조회 수정
milowon Jan 15, 2026
5302408
Merge branch 'main' into develop
milowon Jan 15, 2026
258a19a
Hotfix : 참여중인 파티에 모집완료 파티 조회되도록 수정
milowon Jan 15, 2026
fce76dd
Hotfix : 정원 모집 완료시 closed가 아닌 completed로 수정
milowon Jan 15, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public ResponseEntity<Void> registerToken(@RequestBody @Valid FcmTokenRequest re
return ResponseEntity.noContent().build();
}

@PostMapping("/test")
@PostMapping("/Test")
public ResponseEntity<Void> test(@RequestParam Long userId) {
notificationFacade.notifyTest(userId);
return ResponseEntity.ok().build();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,19 @@ List<PartyParticipant> findActivePartiesByUserIdExcludingHost(
@Param("participantStatus") ParticipantStatus participantStatus
);

@Query("SELECT pp FROM PartyParticipant pp " +
"JOIN FETCH pp.party p " +
"JOIN FETCH p.host " +
"WHERE pp.user.userId = :userId " +
"AND p.host.userId != :userId " +
"AND p.status IN :partyStatuses " +
"AND pp.status = :participantStatus")
List<PartyParticipant> findActivePartiesByUserIdExcludingHostAndStatusIn(
@Param("userId") Long userId,
@Param("partyStatuses") List<PartyStatus> partyStatuses,
@Param("participantStatus") ParticipantStatus participantStatus
);

int countByPartyIdAndStatusAndUser_UserIdNot(Long partyId, ParticipantStatus participantStatus, Long userId);

List<PartyParticipant> findAllByPartyAndStatus(Party party, ParticipantStatus status);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ public interface PartyRepository extends JpaRepository<Party, Long> {

List<Party> findByHostUserIdAndStatus(Long userId, PartyStatus partyStatus);

List<Party> findByHostUserIdAndStatusIn(Long userId, List<PartyStatus> statuses);

List<Party> findByTown(String location);

List<Party> findByTownAndCategory(String location, PartyCategory category);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -580,8 +580,8 @@ public void approveParticipant(Long partyId, Long participantId, Long hostId) {
partyId
);

// 목표 인원 달성 확인
checkAndCloseIfFull(party);
// 정원이 찼으면 모집 완료 상태로 변경
checkAndCompleteIfFull(party);
}

/**
Expand Down Expand Up @@ -783,10 +783,14 @@ private void validateGroupChatRoomAccess(Party party, Long userId) {
}
}

// ??
private void checkAndCloseIfFull(Party party) {
/**
* 정원이 찼으면 모집 완료 상태로 변경
* - COMPLETED: 정원이 찼거나 모집이 완료된 상태 (파티 진행 중)
* - CLOSED: 파티가 정상적으로 종료된 상태 (결산 완료 후)
*/
private void checkAndCompleteIfFull(Party party) {
if (party.getCurrentParticipants() >= party.getMaxParticipants()) {
party.close();
party.changePartyStatus(PartyStatus.COMPLETED);
}
}

Expand Down
10 changes: 7 additions & 3 deletions src/main/java/ita/tinybite/domain/user/service/UserService.java
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,11 @@ public RejoinValidationResponse validateRejoin(String email) {
}

public List<PartyCardResponse> getHostingParties(Long userId, Double latitude, Double longitude) {
List<Party> parties = partyRepository.findByHost_UserId(userId);
List<Party> parties = partyRepository.findByHostUserIdAndStatusIn(
userId,
Arrays.asList(PartyStatus.RECRUITING, PartyStatus.COMPLETED)
);

return parties.stream()
.sorted(Comparator.comparing(Party::getCreatedAt).reversed())
.map(party -> {
Expand All @@ -194,9 +198,9 @@ public List<PartyCardResponse> getHostingParties(Long userId, Double latitude, D

public List<PartyCardResponse> getParticipatingParties(Long userId, Double latitude, Double longitude) {
List<PartyParticipant> participants = participantRepository
.findActivePartiesByUserIdExcludingHost(
.findActivePartiesByUserIdExcludingHostAndStatusIn(
userId,
PartyStatus.RECRUITING,
Arrays.asList(PartyStatus.RECRUITING, PartyStatus.COMPLETED),
ParticipantStatus.APPROVED
);

Expand Down