forked from EveryUniv/next-student-council-backend
-
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 #13 from gutanbug/fix/study
fix: 단터디 게시판 신청 기능 추가 및 엔티티 클래스 수정, 오픈채팅방 링크 제거
- Loading branch information
Showing
26 changed files
with
223 additions
and
56 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
11 changes: 11 additions & 0 deletions
11
src/main/java/com/dku/council/domain/with_dankook/exception/AlreadyEnteredException.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.dku.council.domain.with_dankook.exception; | ||
|
||
import com.dku.council.global.error.exception.LocalizedMessageException; | ||
import org.springframework.http.HttpStatus; | ||
|
||
public class AlreadyEnteredException extends LocalizedMessageException { | ||
|
||
public AlreadyEnteredException() { | ||
super(HttpStatus.BAD_REQUEST, "already.entered"); | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
...ain/java/com/dku/council/domain/with_dankook/exception/AlreadyFullRecruitedException.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.dku.council.domain.with_dankook.exception; | ||
|
||
import com.dku.council.global.error.exception.LocalizedMessageException; | ||
import org.springframework.http.HttpStatus; | ||
|
||
public class AlreadyFullRecruitedException extends LocalizedMessageException { | ||
|
||
public AlreadyFullRecruitedException() { | ||
super(HttpStatus.BAD_REQUEST, "already.full-recruited"); | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
...main/java/com/dku/council/domain/with_dankook/exception/InvalidMinStudentIdException.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.dku.council.domain.with_dankook.exception; | ||
|
||
import com.dku.council.global.error.exception.LocalizedMessageException; | ||
import org.springframework.http.HttpStatus; | ||
|
||
public class InvalidMinStudentIdException extends LocalizedMessageException { | ||
|
||
public InvalidMinStudentIdException() { | ||
super(HttpStatus.BAD_REQUEST, "invalid.student-id"); | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
src/main/java/com/dku/council/domain/with_dankook/exception/InvalidStatusException.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.dku.council.domain.with_dankook.exception; | ||
|
||
import com.dku.council.global.error.exception.LocalizedMessageException; | ||
import org.springframework.http.HttpStatus; | ||
|
||
public class InvalidStatusException extends LocalizedMessageException { | ||
|
||
public InvalidStatusException() { | ||
super(HttpStatus.BAD_REQUEST, "invalid.status"); | ||
} | ||
} |
24 changes: 24 additions & 0 deletions
24
src/main/java/com/dku/council/domain/with_dankook/model/dto/RecruitedUsersDto.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,24 @@ | ||
package com.dku.council.domain.with_dankook.model.dto; | ||
|
||
import com.dku.council.domain.with_dankook.model.entity.WithDankookUser; | ||
import io.swagger.v3.oas.annotations.media.Schema; | ||
import lombok.Getter; | ||
|
||
@Getter | ||
public class RecruitedUsersDto { | ||
|
||
@Schema(description = "닉네임", example = "닉네임") | ||
private final String nickname; | ||
|
||
@Schema(description = "학과", example = "컴퓨터공학과") | ||
private final String majorName; | ||
|
||
@Schema(description = "학번", example = "19") | ||
private final String studentId; | ||
|
||
public RecruitedUsersDto(WithDankookUser user) { | ||
this.nickname = user.getParticipant().getNickname(); | ||
this.majorName = user.getParticipant().getMajor().getName(); | ||
this.studentId = user.getParticipant().getStudentId(); | ||
} | ||
} |
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
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
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
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.