-
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 #241 from sopt-makers/yongtaek_#238
[REFACTOR] 2차 기능 리팩토링
- Loading branch information
Showing
14 changed files
with
106 additions
and
65 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
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
12 changes: 0 additions & 12 deletions
12
...c/main/java/org/sopt/makers/operation/app/attendance/dto/response/AttendanceResponse.java
This file was deleted.
Oops, something went wrong.
18 changes: 18 additions & 0 deletions
18
...ain/java/org/sopt/makers/operation/app/attendance/dto/response/LectureAttendResponse.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,18 @@ | ||
package org.sopt.makers.operation.app.attendance.dto.response; | ||
|
||
import static lombok.AccessLevel.*; | ||
|
||
import lombok.Builder; | ||
|
||
import org.sopt.makers.operation.attendance.domain.SubAttendance; | ||
|
||
@Builder(access = PRIVATE) | ||
public record LectureAttendResponse( | ||
long subLectureId | ||
) { | ||
public static LectureAttendResponse of(SubAttendance subAttendance) { | ||
return LectureAttendResponse.builder() | ||
.subLectureId(subAttendance.getSubLecture().getId()) | ||
.build(); | ||
} | ||
} |
6 changes: 3 additions & 3 deletions
6
.../src/main/java/org/sopt/makers/operation/app/attendance/service/AppAttendanceService.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,8 +1,8 @@ | ||
package org.sopt.makers.operation.app.attendance.service; | ||
|
||
import org.sopt.makers.operation.app.attendance.dto.request.AttendanceRequest; | ||
import org.sopt.makers.operation.app.attendance.dto.response.AttendanceResponse; | ||
import org.sopt.makers.operation.app.attendance.dto.request.LectureAttendRequest; | ||
import org.sopt.makers.operation.app.attendance.dto.response.LectureAttendResponse; | ||
|
||
public interface AppAttendanceService { | ||
AttendanceResponse attend(long memberId, AttendanceRequest request); | ||
LectureAttendResponse attend(long memberId, LectureAttendRequest request); | ||
} |
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
14 changes: 9 additions & 5 deletions
14
.../java/org/sopt/makers/operation/app/lecture/dto/response/LectureCurrentRoundResponse.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,15 +1,19 @@ | ||
package org.sopt.makers.operation.app.lecture.dto.response; | ||
|
||
import lombok.Builder; | ||
import org.sopt.makers.operation.lecture.domain.SubLecture; | ||
|
||
import static lombok.AccessLevel.PRIVATE; | ||
|
||
@Builder(access = PRIVATE) | ||
public record LectureCurrentRoundResponse( | ||
Long id, | ||
long id, | ||
int round | ||
) { | ||
public static LectureCurrentRoundResponse of(SubLecture subLecture){ | ||
return new LectureCurrentRoundResponse( | ||
subLecture.getId(), | ||
subLecture.getRound() | ||
); | ||
return LectureCurrentRoundResponse.builder() | ||
.id(subLecture.getId()) | ||
.round(subLecture.getRound()) | ||
.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
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
2 changes: 1 addition & 1 deletion
2
...dance/dto/response/AttendanceTotalVO.java → ...ember/dto/response/AttendanceTotalVO.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
11 changes: 8 additions & 3 deletions
11
...c/main/java/org/sopt/makers/operation/app/member/dto/response/MemberScoreGetResponse.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,11 +1,16 @@ | ||
package org.sopt.makers.operation.app.member.dto.response; | ||
|
||
import static lombok.AccessLevel.PRIVATE; | ||
|
||
import lombok.Builder; | ||
|
||
@Builder(access = PRIVATE) | ||
public record MemberScoreGetResponse( | ||
float score | ||
) { | ||
public static MemberScoreGetResponse of(float score){ | ||
return new MemberScoreGetResponse( | ||
score | ||
); | ||
return MemberScoreGetResponse.builder() | ||
.score(score) | ||
.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