-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
๐ :: v0.1.5
- Loading branch information
Showing
19 changed files
with
360 additions
and
196 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
34 changes: 34 additions & 0 deletions
34
...knockknockbackend/domain/group/presentation/dto/response/GroupInfoForNotificationDto.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,34 @@ | ||
package io.github.depromeet.knockknockbackend.domain.group.presentation.dto.response; | ||
|
||
|
||
import io.github.depromeet.knockknockbackend.domain.group.domain.GroupType; | ||
import io.github.depromeet.knockknockbackend.domain.group.domain.vo.GroupBaseInfoVo; | ||
import io.swagger.v3.oas.annotations.media.Schema; | ||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
|
||
@Getter | ||
@NoArgsConstructor | ||
public class GroupInfoForNotificationDto { | ||
private Long groupId; | ||
|
||
private String title; | ||
|
||
private String description; | ||
|
||
private String thumbnailPath; | ||
|
||
@Schema(description = "๊ณต๊ฐ ๊ทธ๋ฃน ์ฌ๋ถ ture ๋ฉด ๊ณต๊ฐ์") | ||
private Boolean publicAccess; | ||
|
||
private GroupType groupType; | ||
|
||
public GroupInfoForNotificationDto(GroupBaseInfoVo groupBaseInfoVo) { | ||
groupId = groupBaseInfoVo.getGroupId(); | ||
title = groupBaseInfoVo.getTitle(); | ||
description = groupBaseInfoVo.getDescription(); | ||
publicAccess = groupBaseInfoVo.getPublicAccess(); | ||
thumbnailPath = groupBaseInfoVo.getThumbnailPath(); | ||
groupType = groupBaseInfoVo.getGroupType(); | ||
} | ||
} |
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
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
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
18 changes: 18 additions & 0 deletions
18
...omeet/knockknockbackend/domain/notification/service/NotificationReservationScheduler.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 io.github.depromeet.knockknockbackend.domain.notification.service; | ||
|
||
|
||
import lombok.RequiredArgsConstructor; | ||
import org.springframework.scheduling.annotation.Scheduled; | ||
import org.springframework.stereotype.Service; | ||
|
||
@RequiredArgsConstructor | ||
@Service | ||
public class NotificationReservationScheduler { | ||
|
||
private final ReservationService reservationService; | ||
|
||
@Scheduled(cron = "0 0/1 * * * *") | ||
public void reservationNotification() { | ||
reservationService.processScheduledReservation(); | ||
} | ||
} |
Oops, something went wrong.