-
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.
Merge pull request #12 from BapMate/feat/imageUpload
Feat/image upload
- Loading branch information
Showing
21 changed files
with
754 additions
and
16 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
22 changes: 22 additions & 0 deletions
22
src/main/java/com/bapMate/bapMateServer/domain/meeting/dto/response/MeetUpResponseDto.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,22 @@ | ||
package com.bapMate.bapMateServer.domain.meeting.dto.response; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
|
||
import java.time.LocalDateTime; | ||
|
||
@AllArgsConstructor | ||
@Builder | ||
public class MeetUpResponseDto { | ||
private Long id; | ||
private String name; | ||
private String introduce; | ||
private String chatRoomLink; | ||
private String region; | ||
private LocalDateTime date; | ||
private String restaurant; | ||
private int numberOfPeople; | ||
private String meetUpAtmosphere; | ||
private String regionAtmosphere; | ||
private String representationImage; | ||
} |
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
7 changes: 7 additions & 0 deletions
7
...java/com/bapMate/bapMateServer/domain/meeting/exception/AlreadyParticipatedException.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,7 @@ | ||
package com.bapMate.bapMateServer.domain.meeting.exception; | ||
|
||
import com.bapMate.bapMateServer.global.exception.base.BaseException; | ||
|
||
public class AlreadyParticipatedException extends BaseException { | ||
public AlreadyParticipatedException() {super(MeetingErrorCode.ALREADY_PARTICIPATED_ERROR);} | ||
} |
9 changes: 9 additions & 0 deletions
9
src/main/java/com/bapMate/bapMateServer/domain/meeting/exception/FullCapacityException.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.bapMate.bapMateServer.domain.meeting.exception; | ||
|
||
import com.bapMate.bapMateServer.global.exception.base.BaseException; | ||
|
||
public class FullCapacityException extends BaseException { | ||
public FullCapacityException() { | ||
super(MeetingErrorCode.FULL_CAPACITY_ERROR); | ||
} | ||
} |
27 changes: 27 additions & 0 deletions
27
src/main/java/com/bapMate/bapMateServer/domain/meeting/exception/MeetingErrorCode.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,27 @@ | ||
package com.bapMate.bapMateServer.domain.meeting.exception; | ||
|
||
import com.bapMate.bapMateServer.global.exception.base.BaseErrorCode; | ||
import com.bapMate.bapMateServer.global.exception.dto.ErrorReason; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Getter; | ||
import lombok.RequiredArgsConstructor; | ||
|
||
import static com.bapMate.bapMateServer.global.constant.StaticValue.*; | ||
|
||
@Getter | ||
@AllArgsConstructor | ||
public enum MeetingErrorCode implements BaseErrorCode { | ||
FULL_CAPACITY_ERROR(BAD_REQUEST,"MEETING_404","인원이 다 찼습니다"), | ||
MEETING_NOT_FOUND(BAD_REQUEST,"MEETING_404","모임이 존재하지 않습니다"), | ||
ALREADY_PARTICIPATED_ERROR(BAD_REQUEST,"MEETING_404","이미 참여한 모임입니다"), | ||
NOT_ALLOWED_TO_PARTICIPATE_ERROR(BAD_REQUEST,"MEETING_404","생성한 모임에는 참여할 수 없습니다"); | ||
|
||
private final int status; | ||
private final String code; | ||
private final String reason; | ||
|
||
@Override | ||
public ErrorReason getErrorReason() { | ||
return ErrorReason.of(status, code, reason); | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
...ain/java/com/bapMate/bapMateServer/domain/meeting/exception/MeetingNotFoundException.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.bapMate.bapMateServer.domain.meeting.exception; | ||
|
||
import com.bapMate.bapMateServer.global.exception.base.BaseException; | ||
|
||
public class MeetingNotFoundException extends BaseException { | ||
public MeetingNotFoundException() { | ||
super(MeetingErrorCode.MEETING_NOT_FOUND); | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
.../com/bapMate/bapMateServer/domain/meeting/exception/NotAllowedToParticipateException.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,7 @@ | ||
package com.bapMate.bapMateServer.domain.meeting.exception; | ||
|
||
import com.bapMate.bapMateServer.global.exception.base.BaseException; | ||
|
||
public class NotAllowedToParticipateException extends BaseException { | ||
public NotAllowedToParticipateException() {super(MeetingErrorCode.NOT_ALLOWED_TO_PARTICIPATE_ERROR);} | ||
} |
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.