-
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
Showing
6 changed files
with
68 additions
and
0 deletions.
There are no files selected for viewing
4 changes: 4 additions & 0 deletions
4
...in/java/com/leets/team2/xclone/domain/chattingRoom/controller/ChattingRoomController.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,4 @@ | ||
package com.leets.team2.xclone.domain.chattingRoom.controller; | ||
|
||
public class ChattingRoomController { | ||
} |
9 changes: 9 additions & 0 deletions
9
src/main/java/com/leets/team2/xclone/domain/chattingRoom/dto/RequestChattingRoomDTO.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,9 @@ | ||
package com.leets.team2.xclone.domain.chattingRoom.dto; | ||
|
||
import jakarta.validation.constraints.NotBlank; | ||
|
||
public class RequestChattingRoomDTO { | ||
@NotBlank | ||
private String chatMemberTag; | ||
|
||
} |
14 changes: 14 additions & 0 deletions
14
src/main/java/com/leets/team2/xclone/domain/chattingRoom/dto/ResponseChattingRoomDTO.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,14 @@ | ||
package com.leets.team2.xclone.domain.chattingRoom.dto; | ||
|
||
import jakarta.validation.constraints.NotBlank; | ||
|
||
public class ResponseChattingRoomDTO { | ||
private Long id; | ||
|
||
@NotBlank | ||
private String participantNickname; | ||
|
||
@NotBlank | ||
private String participantTag; | ||
|
||
} |
21 changes: 21 additions & 0 deletions
21
src/main/java/com/leets/team2/xclone/domain/chattingRoom/entity/ChattingRoom.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,21 @@ | ||
package com.leets.team2.xclone.domain.chattingRoom.entity; | ||
|
||
import com.leets.team2.xclone.common.entity.AbstractEntity; | ||
import com.leets.team2.xclone.domain.member.entities.Member; | ||
import jakarta.persistence.*; | ||
|
||
public class ChattingRoom extends AbstractEntity { | ||
@Id | ||
@GeneratedValue(strategy = GenerationType.IDENTITY) | ||
@Column(name = "chatting_room_id") | ||
private Long id; | ||
|
||
@ManyToOne | ||
@JoinColumn(name = "member1_id") | ||
private Member member1; | ||
|
||
|
||
@ManyToOne | ||
@JoinColumn(name = "member2_id") | ||
private Member member2; | ||
} |
9 changes: 9 additions & 0 deletions
9
...in/java/com/leets/team2/xclone/domain/chattingRoom/repository/ChattingRoomRepository.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,9 @@ | ||
package com.leets.team2.xclone.domain.chattingRoom.repository; | ||
|
||
import com.leets.team2.xclone.domain.member.entities.Member; | ||
import org.springframework.data.jpa.repository.JpaRepository; | ||
import org.springframework.stereotype.Repository; | ||
|
||
@Repository | ||
public interface ChattingRoomRepository extends JpaRepository<Member, Long> { | ||
} |
11 changes: 11 additions & 0 deletions
11
src/main/java/com/leets/team2/xclone/domain/chattingRoom/service/ChattingRoomService.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.leets.team2.xclone.domain.chattingRoom.service; | ||
|
||
import com.leets.team2.xclone.domain.chattingRoom.repository.ChattingRoomRepository; | ||
import lombok.RequiredArgsConstructor; | ||
import org.springframework.stereotype.Service; | ||
|
||
@Service | ||
@RequiredArgsConstructor | ||
public class ChattingRoomService { | ||
private final ChattingRoomRepository chattingRoomRepository; | ||
} |