Skip to content

Commit

Permalink
refactor: MemberRoom 디렉터리 구조 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
yooooonshine committed Jan 15, 2025
1 parent 80f371f commit be4a270
Show file tree
Hide file tree
Showing 14 changed files with 25 additions and 19 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package middle_point_search.backend.domains.memberRoom;
package middle_point_search.backend.domains.memberRoom.controller;

import java.util.List;

Expand All @@ -19,8 +19,9 @@
import middle_point_search.backend.common.dto.ErrorResponse;
import middle_point_search.backend.common.util.MemberLoader;
import middle_point_search.backend.domains.member.domain.Member;
import middle_point_search.backend.domains.memberRoom.MemberRoomDTO.MemberRoomExistsResponse;
import middle_point_search.backend.domains.memberRoom.MemberRoomDTO.RoomsByMemberIdFindResponse;
import middle_point_search.backend.domains.memberRoom.dto.MemberRoomDTO.MemberRoomExistsResponse;
import middle_point_search.backend.domains.memberRoom.dto.MemberRoomDTO.RoomsByMemberIdFindResponse;
import middle_point_search.backend.domains.memberRoom.service.MemberRoomService;

@Tag(name = "MEMBER_ROOM API", description = "회원방에 대한 API입니다.")
@RestController
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package middle_point_search.backend.domains.memberRoom;
package middle_point_search.backend.domains.memberRoom.domain;

import jakarta.persistence.Entity;
import jakarta.persistence.GeneratedValue;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package middle_point_search.backend.domains.memberRoom;
package middle_point_search.backend.domains.memberRoom.dto;

import jakarta.validation.constraints.NotNull;
import lombok.AccessLevel;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
package middle_point_search.backend.domains.memberRoom;
package middle_point_search.backend.domains.memberRoom.repository;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;

import middle_point_search.backend.domains.memberRoom.domain.MemberRoom;

public interface MemberRoomRepository extends JpaRepository<MemberRoom, Long> {

Boolean existsByMember_IdAndRoom_Id(Long memberId, String roomId);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package middle_point_search.backend.domains.memberRoom;
package middle_point_search.backend.domains.memberRoom.service;

import static middle_point_search.backend.common.exception.errorCode.UserErrorCode.*;

Expand All @@ -10,8 +10,10 @@
import lombok.RequiredArgsConstructor;
import middle_point_search.backend.common.exception.CustomException;
import middle_point_search.backend.domains.member.domain.Member;
import middle_point_search.backend.domains.memberRoom.MemberRoomDTO.MemberRoomExistsResponse;
import middle_point_search.backend.domains.memberRoom.MemberRoomDTO.RoomsByMemberIdFindResponse;
import middle_point_search.backend.domains.memberRoom.repository.MemberRoomRepository;
import middle_point_search.backend.domains.memberRoom.dto.MemberRoomDTO.MemberRoomExistsResponse;
import middle_point_search.backend.domains.memberRoom.dto.MemberRoomDTO.RoomsByMemberIdFindResponse;
import middle_point_search.backend.domains.memberRoom.domain.MemberRoom;
import middle_point_search.backend.domains.room.domain.Room;
import middle_point_search.backend.domains.room.service.RoomService;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package middle_point_search.backend.domains.memberRoom;
package middle_point_search.backend.domains.memberRoom.service;

import static middle_point_search.backend.common.exception.errorCode.UserErrorCode.*;

Expand All @@ -8,6 +8,7 @@
import lombok.RequiredArgsConstructor;
import middle_point_search.backend.common.exception.CustomException;
import middle_point_search.backend.domains.member.domain.Member;
import middle_point_search.backend.domains.memberRoom.repository.MemberRoomRepository;
import middle_point_search.backend.domains.room.domain.Room;

@Service
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
import middle_point_search.backend.common.exception.CustomException;
import middle_point_search.backend.domains.google.dto.DistanceMatrixResponse;
import middle_point_search.backend.domains.google.service.GoogleService;
import middle_point_search.backend.domains.memberRoom.MemberRoomValidateService;
import middle_point_search.backend.domains.memberRoom.service.MemberRoomValidateService;
import middle_point_search.backend.domains.midPoint.dto.MidPointDTO.AddressDTO;
import middle_point_search.backend.domains.midPoint.dto.MidPointDTO.MidPointsFindResponse;
import middle_point_search.backend.domains.midPoint.dto.MidPointDTO.TravelTimesFindResponse;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
import middle_point_search.backend.common.exception.CustomException;
import middle_point_search.backend.domains.google.service.GoogleService;
import middle_point_search.backend.domains.member.domain.Member;
import middle_point_search.backend.domains.memberRoom.MemberRoomValidateService;
import middle_point_search.backend.domains.memberRoom.service.MemberRoomValidateService;
import middle_point_search.backend.domains.place.domain.Place;
import middle_point_search.backend.domains.place.dto.request.SavePlaceRequest;
import middle_point_search.backend.domains.place.dto.request.UpdatePlaceRequest;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

import lombok.RequiredArgsConstructor;
import middle_point_search.backend.common.exception.CustomException;
import middle_point_search.backend.domains.memberRoom.MemberRoomValidateService;
import middle_point_search.backend.domains.memberRoom.service.MemberRoomValidateService;
import middle_point_search.backend.domains.placeVoteRoom.domain.PlaceVoteCandidate;
import middle_point_search.backend.domains.placeVoteRoom.domain.PlaceVoteRoom;
import middle_point_search.backend.domains.placeVoteRoom.dto.PlaceVoteDTO;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import lombok.RequiredArgsConstructor;
import middle_point_search.backend.common.exception.CustomException;
import middle_point_search.backend.domains.member.domain.Member;
import middle_point_search.backend.domains.memberRoom.MemberRoomValidateService;
import middle_point_search.backend.domains.memberRoom.service.MemberRoomValidateService;
import middle_point_search.backend.domains.placeVoteRoom.domain.PlaceVoteCandidate;
import middle_point_search.backend.domains.placeVoteRoom.domain.PlaceVoteCandidateMember;
import middle_point_search.backend.domains.placeVoteRoom.domain.PlaceVoteRoom;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import lombok.Getter;
import lombok.NoArgsConstructor;
import middle_point_search.backend.common.baseEntity.BaseEntity;
import middle_point_search.backend.domains.memberRoom.MemberRoom;
import middle_point_search.backend.domains.memberRoom.domain.MemberRoom;
import middle_point_search.backend.domains.place.domain.Place;

@Entity
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@

import lombok.RequiredArgsConstructor;
import middle_point_search.backend.common.exception.CustomException;
import middle_point_search.backend.domains.memberRoom.MemberRoomRepository;
import middle_point_search.backend.domains.memberRoom.MemberRoomValidateService;
import middle_point_search.backend.domains.memberRoom.repository.MemberRoomRepository;
import middle_point_search.backend.domains.memberRoom.service.MemberRoomValidateService;
import middle_point_search.backend.domains.room.domain.Room;
import middle_point_search.backend.domains.room.dto.RoomDTO.FindRoomDetailResponse;
import middle_point_search.backend.domains.room.dto.RoomDTO.RoomCreateRequest;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

import lombok.RequiredArgsConstructor;
import middle_point_search.backend.common.exception.CustomException;
import middle_point_search.backend.domains.memberRoom.MemberRoomValidateService;
import middle_point_search.backend.domains.memberRoom.service.MemberRoomValidateService;
import middle_point_search.backend.domains.room.domain.Room;
import middle_point_search.backend.domains.room.service.RoomService;
import middle_point_search.backend.domains.timeVoteRoom.domain.MeetingDate;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
import lombok.RequiredArgsConstructor;
import middle_point_search.backend.common.exception.CustomException;
import middle_point_search.backend.domains.member.domain.Member;
import middle_point_search.backend.domains.memberRoom.MemberRoomValidateService;
import middle_point_search.backend.domains.memberRoom.service.MemberRoomValidateService;
import middle_point_search.backend.domains.timeVoteRoom.domain.MeetingDate;
import middle_point_search.backend.domains.timeVoteRoom.domain.TimeVote;
import middle_point_search.backend.domains.timeVoteRoom.domain.TimeVoteRoom;
Expand Down

0 comments on commit be4a270

Please sign in to comment.