Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor [#131] 응답에서 불필요한 Validation 제거 및 속성 이름 통일 #132

Merged
merged 2 commits into from
Mar 12, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,10 @@

import org.cotato.tlinkserver.domain.homework.Homework;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;

public record HomeworkResponse(
@NotNull
Long homeworkId,
@NotBlank
String homeworkName,
@NotBlank
String createdAt,
@NotBlank
String deadline,
boolean passed
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ public record LectureFileBoxResponse
(
Long lectureFileBoxId,
String lectureFileBoxName,
String updateAt
String updatedAt
)
{
public static LectureFileBoxResponse from(final LectureFileBox lectureFileBox) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,12 @@
import org.cotato.tlinkserver.domain.room.Room;
import org.cotato.tlinkserver.domain.user.User;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Builder;

@Builder
public record RoomDataResponse
(
@NotNull
Room room,
@NotBlank
String roomName,
User user
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,26 +5,17 @@
import org.cotato.tlinkserver.domain.room.Registration;
import org.cotato.tlinkserver.domain.room.Room;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Builder;

@Builder
public record RoomModifyResponse
(
@NotNull
Long roomId,
@NotBlank
String roomName,
@NotBlank
String studentName,
@NotBlank
String subject,
@NotNull
List<LessonDayModifyResponse> lessonDays,
@NotNull
PermissionResponse parentPermission,
@NotNull
PermissionResponse studentPermission
)
{
Expand Down