-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#237 feat: 배달 채팅방 생성 API(createChatRoom) 구현, rabbitMQ 채팅방 exchange생성까…
…지 연결
- Loading branch information
Showing
6 changed files
with
104 additions
and
31 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
37 changes: 37 additions & 0 deletions
37
src/main/java/shop/geeksasang/dto/chat/partychatroom/PartyChatRoomRes.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,37 @@ | ||
package shop.geeksasang.dto.chat.partychatroom; | ||
|
||
import io.swagger.annotations.ApiModelProperty; | ||
import io.swagger.annotations.ApiParam; | ||
import lombok.Builder; | ||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
import shop.geeksasang.domain.chat.PartyChatRoom; | ||
|
||
@NoArgsConstructor | ||
@Getter | ||
public class PartyChatRoomRes { | ||
|
||
@ApiModelProperty(example = "637fa741bba4cf6c34bc13ef") | ||
@ApiParam(value = "배달 파티 채팅방 제목") | ||
private String partyChatRoomId; | ||
|
||
@ApiModelProperty(example = "치킨 시키실 분 구합니다.") | ||
@ApiParam(value = "배달 파티 채팅방 제목") | ||
private String title; | ||
|
||
/* | ||
연관관계 편의 메서드 | ||
*/ | ||
@Builder | ||
public PartyChatRoomRes(String partyChatRoomId, String title) { | ||
this.partyChatRoomId = partyChatRoomId; | ||
this.title = title; | ||
} | ||
|
||
public static PartyChatRoomRes toDto(PartyChatRoom partyChatRoom){ | ||
return PartyChatRoomRes.builder() | ||
.partyChatRoomId(partyChatRoom.getId()) | ||
.title(partyChatRoom.getTitle()) | ||
.build(); | ||
} | ||
} |
13 changes: 0 additions & 13 deletions
13
src/main/java/shop/geeksasang/dto/chat/partychatroom/PostPartyChatRoomReq.java
This file was deleted.
Oops, something went wrong.
39 changes: 39 additions & 0 deletions
39
src/main/java/shop/geeksasang/dto/chat/partychatroom/post/PostPartyChatRoomReq.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,39 @@ | ||
package shop.geeksasang.dto.chat.partychatroom.post; | ||
|
||
import io.swagger.annotations.ApiModelProperty; | ||
import io.swagger.annotations.ApiParam; | ||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
|
||
import javax.validation.constraints.NotBlank; | ||
import javax.validation.constraints.Size; | ||
|
||
@NoArgsConstructor | ||
@Getter | ||
public class PostPartyChatRoomReq { | ||
|
||
@ApiModelProperty(example = "치킨 시키실 분 구합니다.") | ||
@ApiParam(value = "배달 파티 채팅방 제목", required = true) | ||
@Size(min = 1, max = 20) | ||
@NotBlank(message = "배달 파티 채팅방 제목을 입력하세요.") | ||
private String title; | ||
|
||
@ApiModelProperty(example = "111-22222-33333") | ||
@ApiParam(value = "계좌번호", required = true) | ||
@NotBlank(message = "계좌번호를 입력하세요.") | ||
private String accountNumber; | ||
|
||
@ApiModelProperty(example = "신한은행") | ||
@ApiParam(value = "은행이름", required = true) | ||
@NotBlank(message = "은행이름을 입력하세요.") | ||
private String bank; | ||
|
||
@ApiModelProperty(example = "Delivery") | ||
@ApiParam(value = "채팅방 종류", required = true) | ||
@NotBlank(message = "배달 파티 채팅방 종류를 입력하세요.") | ||
private String category; | ||
|
||
@ApiModelProperty(example = "4") | ||
@ApiParam(value = "매칭 최대 인원", required = true) | ||
private Integer maxMatching; | ||
} |
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