-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: Added CustomLessonRequest class to represent API parameters * feat: Added Lesson related API * feat: Add error status enum value to describe Lesson related errors * test: Add tests for lesson related logic using Mockito * feat: 수업 관련 Api 설계 (#26) * feat: Added CustomLessonRequest class to represent API parameters * feat: Added Lesson related API * feat: Add error status enum value to describe Lesson related errors * test: Add tests for lesson related logic using Mockito * feat: Add exception and error status enum value to describe Lesson related errors * remove: remove test class files * fix: change CustomLessonRequest fields * feat: Implement delete endpoint for userlesson * test: Add tests for deleteUserLesson using Mockito * refactor: lesson 관련 dto, converter 통일화 (#67) (#75) --------- Co-authored-by: Gyuhyeok99 <[email protected]>
- Loading branch information
1 parent
1e271e8
commit 6541532
Showing
17 changed files
with
322 additions
and
242 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 was deleted.
Oops, something went wrong.
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
17 changes: 0 additions & 17 deletions
17
src/main/java/UMC/campusNote/lesson/dto/CrawlingRequest.java
This file was deleted.
Oops, something went wrong.
17 changes: 0 additions & 17 deletions
17
src/main/java/UMC/campusNote/lesson/dto/LessonDetailsDto.java
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
40 changes: 40 additions & 0 deletions
40
src/main/java/UMC/campusNote/lesson/dto/LessonRequestDTO.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,40 @@ | ||
package UMC.campusNote.lesson.dto; | ||
|
||
import jakarta.validation.constraints.NotNull; | ||
import lombok.*; | ||
|
||
public class LessonRequestDTO { | ||
@AllArgsConstructor | ||
@Getter | ||
@Setter | ||
@NoArgsConstructor | ||
@Builder | ||
public static class CreateDTO { | ||
@NotNull | ||
private String attendedSemester; | ||
@NotNull | ||
private String lessonName; | ||
@NotNull | ||
private String semester; | ||
@NotNull | ||
private String professorName; | ||
@NotNull | ||
private String location; | ||
@NotNull | ||
private String startTime; | ||
@NotNull | ||
private String runningTime; | ||
@NotNull | ||
private String dayOfWeek; | ||
} | ||
|
||
@AllArgsConstructor | ||
@Getter | ||
@Setter | ||
@NoArgsConstructor | ||
public static class CrawlingDTO { | ||
@NotNull | ||
private String url; | ||
} | ||
|
||
} |
35 changes: 35 additions & 0 deletions
35
src/main/java/UMC/campusNote/lesson/dto/LessonResponseDTO.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,35 @@ | ||
package UMC.campusNote.lesson.dto; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Data; | ||
|
||
import java.util.ArrayList; | ||
import java.util.List; | ||
|
||
public class LessonResponseDTO { | ||
@Data | ||
@AllArgsConstructor | ||
@Builder | ||
public static class FindResultDTO { | ||
private Long id; | ||
private String university; | ||
private String semester; | ||
private String lessonName; | ||
|
||
@Builder.Default | ||
private List<FindResultDetailsDTO> findResultDetailsDTOList = new ArrayList<>(); | ||
} | ||
|
||
@Data | ||
@AllArgsConstructor | ||
@Builder | ||
public static class FindResultDetailsDTO { | ||
private String professorName; | ||
private String location; | ||
private String startTime; | ||
private String runningTime; | ||
private String dayOfWeek; | ||
} | ||
|
||
} |
Oops, something went wrong.