-
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.
- Loading branch information
1 parent
66e0ed5
commit e7ffe21
Showing
22 changed files
with
110 additions
and
66 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
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: 0 additions & 11 deletions
11
src/main/java/com/tukorea/planding/domain/group/dto/GroupInviteRequest.java
This file was deleted.
Oops, something went wrong.
8 changes: 0 additions & 8 deletions
8
src/main/java/com/tukorea/planding/domain/group/dto/GroupUpdateRequest.java
This file was deleted.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
.../domain/group/dto/GroupCreateRequest.java → ...group/dto/request/GroupCreateRequest.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
11 changes: 11 additions & 0 deletions
11
src/main/java/com/tukorea/planding/domain/group/dto/request/GroupInviteRequest.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,11 @@ | ||
package com.tukorea.planding.domain.group.dto.request; | ||
|
||
import lombok.Builder; | ||
|
||
@Builder | ||
public record GroupInviteRequest( | ||
Long groupId, | ||
String userCode | ||
) { | ||
|
||
} |
8 changes: 8 additions & 0 deletions
8
src/main/java/com/tukorea/planding/domain/group/dto/request/GroupUpdateRequest.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,8 @@ | ||
package com.tukorea.planding.domain.group.dto.request; | ||
|
||
public record GroupUpdateRequest( | ||
Long groupId, | ||
String name, | ||
String description | ||
) { | ||
} |
3 changes: 1 addition & 2 deletions
3
...main/group/dto/GroupFavoriteResponse.java → ...p/dto/response/GroupFavoriteResponse.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
2 changes: 1 addition & 1 deletion
2
...domain/group/dto/GroupInviteResponse.java → ...oup/dto/response/GroupInviteResponse.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
3 changes: 1 addition & 2 deletions
3
...nding/domain/group/dto/GroupResponse.java → ...ain/group/dto/response/GroupResponse.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
18 changes: 18 additions & 0 deletions
18
src/main/java/com/tukorea/planding/domain/group/dto/response/GroupUserResponse.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 com.tukorea.planding.domain.group.dto.response; | ||
|
||
import com.tukorea.planding.domain.user.entity.User; | ||
import lombok.Builder; | ||
import lombok.Getter; | ||
|
||
@Builder | ||
public record GroupUserResponse( | ||
String userCode, | ||
String userName | ||
) { | ||
public static GroupUserResponse toGroupUserResponse(User user) { | ||
return GroupUserResponse.builder() | ||
.userCode(user.getUserCode()) | ||
.userName(user.getUsername()) | ||
.build(); | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
src/main/java/com/tukorea/planding/domain/group/entity/GroupInvite.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
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
7 changes: 5 additions & 2 deletions
7
src/main/java/com/tukorea/planding/domain/group/repository/GroupRoomRepositoryCustom.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,11 +1,14 @@ | ||
package com.tukorea.planding.domain.group.repository; | ||
|
||
import com.tukorea.planding.domain.group.entity.GroupRoom; | ||
import com.tukorea.planding.domain.user.entity.User; | ||
|
||
import java.util.List; | ||
import java.util.Optional; | ||
|
||
public interface GroupRoomRepositoryCustom { | ||
List<GroupRoom> findGroupRoomsByUserId(Long userId); | ||
GroupRoom findByGroupCode(String groupCode); | ||
|
||
GroupRoom findByGroupId(Long groupId); | ||
|
||
List<User> getGroupUsers(Long groupId); | ||
} |
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
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
Oops, something went wrong.