Skip to content

Commit

Permalink
chore : 서비스 레포지토리 패키지 분리
Browse files Browse the repository at this point in the history
  • Loading branch information
GaBaljaintheroom committed May 8, 2024
1 parent b0b03dc commit 53b255d
Show file tree
Hide file tree
Showing 21 changed files with 46 additions and 54 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ public record NearbyARCapsuleSummaryResponse(
@Schema(description = "캡슐 타입")
CapsuleType capsuleType
) {

public NearbyARCapsuleSummaryResponse {
if (dueDate != null) {
dueDate = dueDate.withZoneSameInstant(ResponseMappingConstant.ZONE_ID);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import java.util.function.Function;
import site.timecapsulearchive.core.domain.capsule.entity.CapsuleType;
import site.timecapsulearchive.core.domain.capsule.secret_capsule.data.response.MySecreteCapsuleResponse;
import site.timecapsulearchive.core.global.common.response.ResponseMappingConstant;

public record MySecreteCapsuleDto(
Long capsuleId,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import java.util.function.Function;
import site.timecapsulearchive.core.domain.group.data.response.GroupDetailResponse;
import site.timecapsulearchive.core.domain.group.data.response.GroupMemberResponse;
import site.timecapsulearchive.core.domain.group.data.response.GroupMemberSummaryResponse;

public record GroupDetailDto(
String groupName,
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package site.timecapsulearchive.core.domain.group.repository;
package site.timecapsulearchive.core.domain.group.repository.groupInviteRepository;

import java.util.List;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package site.timecapsulearchive.core.domain.group.repository;
package site.timecapsulearchive.core.domain.group.repository.groupInviteRepository;

import java.sql.PreparedStatement;
import java.sql.SQLException;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package site.timecapsulearchive.core.domain.group.repository;
package site.timecapsulearchive.core.domain.group.repository.groupInviteRepository;

import org.springframework.data.repository.Repository;
import site.timecapsulearchive.core.domain.group.entity.GroupInvite;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
package site.timecapsulearchive.core.domain.group.repository.groupRepository;

import java.time.ZonedDateTime;
import java.util.Optional;
import org.springframework.data.domain.Slice;
import site.timecapsulearchive.core.domain.group.data.dto.GroupDetailDto;
import site.timecapsulearchive.core.domain.group.data.dto.GroupSummaryDto;


public interface GroupQueryRepository {

Slice<GroupSummaryDto> findGroupsSlice(
final Long memberId,
final int size,
final ZonedDateTime createdAt
);

Optional<GroupDetailDto> findGroupDetailByGroupId(final Long groupId);

}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package site.timecapsulearchive.core.domain.group.repository;
package site.timecapsulearchive.core.domain.group.repository.groupRepository;

import static com.querydsl.core.group.GroupBy.groupBy;
import static com.querydsl.core.group.GroupBy.list;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package site.timecapsulearchive.core.domain.group.repository;
package site.timecapsulearchive.core.domain.group.repository.groupRepository;

import java.util.Optional;
import org.springframework.data.repository.Repository;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package site.timecapsulearchive.core.domain.group.repository;
package site.timecapsulearchive.core.domain.group.repository.memberGroupRepository;

import java.util.Optional;
import site.timecapsulearchive.core.domain.group.data.dto.GroupOwnerSummaryDto;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package site.timecapsulearchive.core.domain.group.repository;
package site.timecapsulearchive.core.domain.group.repository.memberGroupRepository;

import static site.timecapsulearchive.core.domain.group.entity.QGroup.group;
import static site.timecapsulearchive.core.domain.group.entity.QMemberGroup.memberGroup;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
package site.timecapsulearchive.core.domain.group.repository;
package site.timecapsulearchive.core.domain.group.repository.memberGroupRepository;

import org.springframework.data.repository.Repository;
import site.timecapsulearchive.core.domain.group.entity.MemberGroup;

public interface MemberGroupRepository extends Repository<MemberGroup, Long>, MemberGroupQueryRepository{
public interface MemberGroupRepository extends Repository<MemberGroup, Long>,
MemberGroupQueryRepository {

void save(MemberGroup memberGroup);
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
package site.timecapsulearchive.core.domain.group.service;

import site.timecapsulearchive.core.domain.group.service.read.GroupReadService;
import site.timecapsulearchive.core.domain.group.service.write.GroupWriteService;

public interface GroupService extends GroupReadService, GroupWriteService {

}
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
import site.timecapsulearchive.core.domain.group.data.dto.GroupDetailDto;
import site.timecapsulearchive.core.domain.group.data.dto.GroupSummaryDto;
import site.timecapsulearchive.core.domain.group.entity.Group;
import site.timecapsulearchive.core.domain.group.service.read.GroupReadService;
import site.timecapsulearchive.core.domain.group.service.write.GroupWriteService;

@Service
@RequiredArgsConstructor
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package site.timecapsulearchive.core.domain.group.service;
package site.timecapsulearchive.core.domain.group.service.read;

import java.time.ZonedDateTime;
import org.springframework.data.domain.Slice;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package site.timecapsulearchive.core.domain.group.service;
package site.timecapsulearchive.core.domain.group.service.read;

import java.time.ZonedDateTime;
import lombok.RequiredArgsConstructor;
Expand All @@ -9,7 +9,7 @@
import site.timecapsulearchive.core.domain.group.data.dto.GroupSummaryDto;
import site.timecapsulearchive.core.domain.group.entity.Group;
import site.timecapsulearchive.core.domain.group.exception.GroupNotFoundException;
import site.timecapsulearchive.core.domain.group.repository.GroupRepository;
import site.timecapsulearchive.core.domain.group.repository.groupRepository.GroupRepository;

@Service
@RequiredArgsConstructor
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package site.timecapsulearchive.core.domain.group.service;
package site.timecapsulearchive.core.domain.group.service.write;

import site.timecapsulearchive.core.domain.group.data.dto.GroupCreateDto;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package site.timecapsulearchive.core.domain.group.service;
package site.timecapsulearchive.core.domain.group.service.write;

import java.util.List;
import lombok.RequiredArgsConstructor;
Expand All @@ -13,9 +13,9 @@
import site.timecapsulearchive.core.domain.group.entity.MemberGroup;
import site.timecapsulearchive.core.domain.group.exception.GroupNotFoundException;
import site.timecapsulearchive.core.domain.group.exception.GroupOwnerAuthenticateException;
import site.timecapsulearchive.core.domain.group.repository.GroupInviteRepository;
import site.timecapsulearchive.core.domain.group.repository.GroupRepository;
import site.timecapsulearchive.core.domain.group.repository.MemberGroupRepository;
import site.timecapsulearchive.core.domain.group.repository.groupInviteRepository.GroupInviteRepository;
import site.timecapsulearchive.core.domain.group.repository.groupRepository.GroupRepository;
import site.timecapsulearchive.core.domain.group.repository.memberGroupRepository.MemberGroupRepository;
import site.timecapsulearchive.core.domain.member.entity.Member;
import site.timecapsulearchive.core.domain.member.exception.MemberNotFoundException;
import site.timecapsulearchive.core.domain.member.repository.MemberRepository;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
import site.timecapsulearchive.core.domain.capsule.entity.Capsule;
import site.timecapsulearchive.core.domain.friend.entity.FriendInvite;
import site.timecapsulearchive.core.domain.friend.entity.MemberFriend;
import site.timecapsulearchive.core.domain.group.entity.GroupInvite;
import site.timecapsulearchive.core.domain.group.entity.MemberGroup;
import site.timecapsulearchive.core.domain.history.entity.History;
import site.timecapsulearchive.core.global.entity.BaseEntity;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@
import site.timecapsulearchive.core.domain.group.data.dto.GroupSummaryDto;
import site.timecapsulearchive.core.domain.group.entity.Group;
import site.timecapsulearchive.core.domain.group.entity.MemberGroup;
import site.timecapsulearchive.core.domain.group.repository.groupRepository.GroupQueryRepository;
import site.timecapsulearchive.core.domain.group.repository.groupRepository.GroupQueryRepositoryImpl;
import site.timecapsulearchive.core.domain.member.entity.Member;

@TestConstructor(autowireMode = AutowireMode.ALL)
Expand Down

0 comments on commit 53b255d

Please sign in to comment.