-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
1 parent
c84ca7f
commit 608f83a
Showing
6 changed files
with
221 additions
and
1 deletion.
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
62 changes: 62 additions & 0 deletions
62
...ndar/api/admin/schedule/publicschedule/controller/response/PublicScheduleAdminResDto.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,66 @@ | ||
package gg.calendar.api.admin.schedule.publicschedule.controller.response; | ||
|
||
import java.time.LocalDateTime; | ||
|
||
import gg.data.calendar.PublicSchedule; | ||
import gg.data.calendar.type.DetailClassification; | ||
import gg.data.calendar.type.EventTag; | ||
import gg.data.calendar.type.JobTag; | ||
import gg.data.calendar.type.ScheduleStatus; | ||
import gg.data.calendar.type.TechTag; | ||
import lombok.AccessLevel; | ||
import lombok.Builder; | ||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
|
||
@Getter | ||
@NoArgsConstructor(access = AccessLevel.PROTECTED) | ||
public class PublicScheduleAdminResDto { | ||
private Long id; | ||
|
||
private DetailClassification classification; | ||
|
||
private EventTag eventTag; | ||
|
||
private JobTag jobTag; | ||
|
||
private TechTag techTag; | ||
|
||
private String author; | ||
|
||
private String title; | ||
|
||
private LocalDateTime startTime; | ||
|
||
private LocalDateTime endTime; | ||
|
||
private String link; | ||
|
||
private Integer sharedCount; | ||
|
||
private ScheduleStatus status; | ||
|
||
@Builder | ||
public PublicScheduleAdminResDto(PublicSchedule publicSchedule) { | ||
this.id = publicSchedule.getId(); | ||
this.classification = publicSchedule.getClassification(); | ||
this.eventTag = publicSchedule.getEventTag(); | ||
this.jobTag = publicSchedule.getJobTag(); | ||
this.techTag = publicSchedule.getTechTag(); | ||
this.author = publicSchedule.getAuthor(); | ||
this.title = publicSchedule.getTitle(); | ||
this.startTime = publicSchedule.getStartTime(); | ||
this.endTime = publicSchedule.getEndTime(); | ||
this.link = publicSchedule.getLink(); | ||
this.sharedCount = publicSchedule.getSharedCount(); | ||
this.status = publicSchedule.getStatus(); | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return "PublicScheduleAdminResDto{" + "id=" + id + ", classification=" + classification + ", eventTag=" | ||
+ eventTag + ", jobTag=" + jobTag + ", techTag=" + techTag + ", author='" + author + '\'' + ", title='" | ||
+ title + '\'' + ", startTime=" + startTime + ", endTime=" + endTime + ", link='" + link + '\'' | ||
+ ", sharedCount=" + sharedCount + ", status=" + status + '}'; | ||
} | ||
} |
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