-
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.
- Loading branch information
문준호
authored and
문준호
committed
Mar 19, 2024
1 parent
c4d49fa
commit 79d271c
Showing
26 changed files
with
193 additions
and
307 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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
61 changes: 0 additions & 61 deletions
61
src/main/generated/com/example/just/Dao/QNotification.java
This file was deleted.
Oops, something went wrong.
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
32 changes: 0 additions & 32 deletions
32
src/main/java/com/example/just/Controller/NotificationController.java
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,49 +1,49 @@ | ||
package com.example.just.Dao; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
import org.hibernate.annotations.OnDelete; | ||
import org.hibernate.annotations.OnDeleteAction; | ||
|
||
import javax.persistence.*; | ||
import java.io.Serializable; | ||
import java.util.Date; | ||
import java.util.List; | ||
|
||
@Entity | ||
@Table(name = "notification") | ||
@Builder | ||
@Getter | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
public class Notification implements Serializable { | ||
@Id | ||
@GeneratedValue(strategy = GenerationType.IDENTITY) | ||
private Long notId; | ||
|
||
@Column(name = "not_type") //알림 타입 | ||
private String notType; | ||
|
||
@Column(name = "not_post_id") //알림 내용 | ||
private Long notPostId; | ||
|
||
@Column(name = "not_datetime") //알림 발생 시일 | ||
private Date notDatetime; | ||
// | ||
// @Column(name = "not_read_datetime") //알림 읽은 시간 | ||
// private Date not_read_dateTime; | ||
|
||
@Column(nullable = false) | ||
private Boolean notIsRead; //알림 읽음 여부 | ||
@ManyToOne | ||
@JoinColumn(name = "id") | ||
@OnDelete(action = OnDeleteAction.CASCADE) //알림을 받을 member | ||
private Member receiver; | ||
|
||
@Column(name = "not_sender_id") //송신자 id | ||
private Long senderId; | ||
|
||
|
||
} | ||
//package com.example.just.Dao; | ||
// | ||
//import lombok.AllArgsConstructor; | ||
//import lombok.Builder; | ||
//import lombok.Getter; | ||
//import lombok.NoArgsConstructor; | ||
//import org.hibernate.annotations.OnDelete; | ||
//import org.hibernate.annotations.OnDeleteAction; | ||
// | ||
//import javax.persistence.*; | ||
//import java.io.Serializable; | ||
//import java.util.Date; | ||
//import java.util.List; | ||
// | ||
//@Entity | ||
//@Table(name = "notification") | ||
//@Builder | ||
//@Getter | ||
//@NoArgsConstructor | ||
//@AllArgsConstructor | ||
//public class Notification implements Serializable { | ||
// @Id | ||
// @GeneratedValue(strategy = GenerationType.IDENTITY) | ||
// private Long notId; | ||
// | ||
// @Column(name = "not_type") //알림 타입 | ||
// private String notType; | ||
// | ||
// @Column(name = "not_post_id") //알림 내용 | ||
// private Long notPostId; | ||
// | ||
// @Column(name = "not_datetime") //알림 발생 시일 | ||
// private Date notDatetime; | ||
//// | ||
//// @Column(name = "not_read_datetime") //알림 읽은 시간 | ||
//// private Date not_read_dateTime; | ||
// | ||
// @Column(nullable = false) | ||
// private Boolean notIsRead; //알림 읽음 여부 | ||
// @ManyToOne | ||
// @JoinColumn(name = "id") | ||
// @OnDelete(action = OnDeleteAction.CASCADE) //알림을 받을 member | ||
// private Member receiver; | ||
// | ||
// @Column(name = "not_sender_id") //송신자 id | ||
// private Long senderId; | ||
// | ||
// | ||
//} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
package com.example.just.Dto; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Getter; | ||
|
||
@Builder | ||
@AllArgsConstructor | ||
@Getter | ||
public class FCMMessageDto { | ||
private boolean validateOnly; | ||
private FCMMessage message; | ||
|
||
@Builder | ||
@AllArgsConstructor | ||
@Getter | ||
public static class FCMMessage{ | ||
private Notification notification; | ||
private String token; | ||
private Data data; | ||
} | ||
|
||
@Builder | ||
@AllArgsConstructor | ||
@Getter | ||
public static class Notification{ | ||
private String title; | ||
private String body; | ||
} | ||
|
||
@Builder | ||
@AllArgsConstructor | ||
@Getter | ||
public static class Data{ | ||
private String name; | ||
private String description; | ||
} | ||
|
||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.