-
Notifications
You must be signed in to change notification settings - Fork 0
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
[update] #68 - 알림 관련 API 수정 및 추가
- Loading branch information
Showing
7 changed files
with
57 additions
and
22 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
10 changes: 7 additions & 3 deletions
10
src/main/java/com/wooribound/domain/notification/dto/NotificationDTO.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,14 +1,18 @@ | ||
package com.wooribound.domain.notification.dto; | ||
|
||
|
||
import com.wooribound.global.constant.YN; | ||
import lombok.*; | ||
|
||
import java.util.Date; | ||
|
||
@Builder | ||
@Getter | ||
@Setter | ||
@AllArgsConstructor | ||
@NoArgsConstructor | ||
@Data | ||
public class NotificationDTO { | ||
private int notiId; | ||
private Long notiId; | ||
private String notice; | ||
private YN isConfirmed; | ||
private Date createdAt; | ||
} |
6 changes: 4 additions & 2 deletions
6
src/main/java/com/wooribound/domain/notification/service/NotificationService.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,13 @@ | ||
package com.wooribound.domain.notification.service; | ||
|
||
import com.wooribound.domain.notification.dto.NotificationDTO; | ||
import org.springframework.security.core.Authentication; | ||
|
||
import java.util.List; | ||
|
||
public interface NotificationService { | ||
List<NotificationDTO> getNotifications(String userId); | ||
List<NotificationDTO> getNotifications(Authentication authentication); | ||
|
||
String readNotification (Authentication authentication, Long notiId); | ||
|
||
String getNotificationDetail(long notiId); | ||
} |
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
5 changes: 5 additions & 0 deletions
5
src/main/java/com/wooribound/global/exception/NotEntityException.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,5 @@ | ||
package com.wooribound.global.exception; | ||
|
||
public class NotEntityException extends RuntimeException{ | ||
public NotEntityException() {super("존재하는 엔티티가 없습니다.");} | ||
} |