-
Notifications
You must be signed in to change notification settings - Fork 1
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 #219 from sopt-makers/sohyeon_#186
[REFACTOR] Lecture 관련 리팩토링
- Loading branch information
Showing
26 changed files
with
843 additions
and
358 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
13 changes: 0 additions & 13 deletions
13
src/main/java/org/sopt/makers/operation/config/GenerationConfig.java
This file was deleted.
Oops, something went wrong.
23 changes: 23 additions & 0 deletions
23
src/main/java/org/sopt/makers/operation/config/ValueConfig.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,23 @@ | ||
package org.sopt.makers.operation.config; | ||
|
||
import org.springframework.beans.factory.annotation.Value; | ||
import org.springframework.context.annotation.Configuration; | ||
|
||
import lombok.Getter; | ||
|
||
@Configuration | ||
@Getter | ||
public class ValueConfig { | ||
|
||
@Value("${sopt.alarm.message.title_end}") | ||
private String ALARM_MESSAGE_TITLE; | ||
@Value("${sopt.alarm.message.content_end}") | ||
private String ALARM_MESSAGE_CONTENT; | ||
@Value("${sopt.current.generation}") | ||
private int GENERATION; | ||
|
||
private final int SUB_LECTURE_MAX_ROUND = 2; | ||
private final String ETC_MESSAGE = "출석 점수가 반영되지 않아요."; | ||
private final String SEMINAR_MESSAGE = ""; | ||
private final String EVENT_MESSAGE = "행사도 참여하고, 출석점수도 받고, 일석이조!"; | ||
} |
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
18 changes: 17 additions & 1 deletion
18
src/main/java/org/sopt/makers/operation/dto/lecture/AttendanceResponseDTO.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 |
---|---|---|
@@ -1,4 +1,20 @@ | ||
package org.sopt.makers.operation.dto.lecture; | ||
|
||
public record AttendanceResponseDTO(Long lectureId, Long subLectureId) { | ||
import org.sopt.makers.operation.entity.SubLecture; | ||
import org.sopt.makers.operation.entity.lecture.Lecture; | ||
|
||
import lombok.Builder; | ||
|
||
@Builder | ||
public record AttendanceResponseDTO( | ||
Long lectureId, | ||
Long subLectureId | ||
) { | ||
|
||
public static AttendanceResponseDTO of(Lecture lecture, SubLecture subLecture) { | ||
return AttendanceResponseDTO.builder() | ||
.lectureId(lecture.getId()) | ||
.subLectureId(subLecture.getId()) | ||
.build(); | ||
} | ||
} |
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 |
---|---|---|
|
@@ -9,6 +9,7 @@ | |
|
||
import lombok.*; | ||
|
||
@Builder | ||
public record LectureRequestDTO( | ||
@NonNull Part part, | ||
@NonNull String name, | ||
|
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.