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

feat: 슬랙예약알림 메시지에 교육장 정보 추가 #834

Merged
merged 3 commits into from
Aug 7, 2022
Merged
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 @@ -13,6 +13,7 @@
@Getter
@NoArgsConstructor
public class SlackResponse {
private String mapName;
private String spaceName;
private String userName;
private String reservationTime;
Expand All @@ -21,13 +22,15 @@ public class SlackResponse {
private String slackUrl;

private SlackResponse(
final String mapName,
final String spaceName,
final String userName,
final LocalDateTime startTime,
final LocalDateTime endTime,
final String description,
final String sharingMapId,
final String slackUrl) {
this.mapName = "장소 : " + mapName;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeeeeee

this.spaceName = "회의실명 : " + spaceName;
this.userName = "예약자명 : " + userName;
this.reservationTime = "예약시간 : " + startTime + " ~ " + endTime;
Expand All @@ -41,6 +44,7 @@ public static SlackResponse of(final Reservation reservation, final String shari
LocalDateTime reservationEndTimeKST = TimeZoneUtils.convert(reservation.getEndTime(), UTC, KST);

return new SlackResponse(
reservation.getSpace().getMap().getName(),
reservation.getSpace().getName(),
reservation.getUserName(),
reservationStartTimeKST,
Expand All @@ -52,7 +56,8 @@ public static SlackResponse of(final Reservation reservation, final String shari

@Override
public String toString() {
return spaceName + "\\n " +
return mapName + "\\n " +
spaceName + "\\n " +
userName + "\\n " +
reservationTime + "\\n " +
description;
Expand Down