Updated Apis, Code, Configurations for Notification.

This commit is contained in:
piyushkag
2024-12-24 16:07:42 +05:30
parent db48cf9502
commit 96b57519fb
23 changed files with 278 additions and 201 deletions

View File

@@ -1,7 +1,9 @@
package net.gepafin.tendermanagement.model.request;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import net.gepafin.tendermanagement.entities.UserWithCompanyEntity;
import java.time.LocalDateTime;
import java.util.List;
@@ -30,8 +32,14 @@ public class NotificationReq {
private LocalDateTime updatedDate;
@JsonProperty(access = JsonProperty.Access.READ_ONLY)
String redirectUrl;
private String redirectUrl;
@JsonProperty(access = JsonProperty.Access.READ_ONLY)
List<Long> companyIds;
private String title;
@JsonProperty(access = JsonProperty.Access.READ_ONLY)
private List<Long> companyIds;
@JsonIgnore
private UserWithCompanyEntity userWithCompanyEntity;
}

View File

@@ -1,18 +1,21 @@
package net.gepafin.tendermanagement.model.response;
import lombok.Data;
import java.time.LocalDateTime;
import net.gepafin.tendermanagement.model.BaseBean;
@Data
public class NotificationResponse {
private Long id;
public class NotificationResponse extends BaseBean {
private Long userId;
private String title;
private String message;
private String notificationType;
private String status;
private LocalDateTime createdDate;
private LocalDateTime updatedDate;
private String redirectUrl;
private Long companyId;
private String redirectUrl;
private String notificationType;
}