utility-service http://jira.mfd.msk:8088/browse/CLS-339 Notification новые поля

This commit is contained in:
AKurakin 2023-06-26 15:52:46 +03:00
parent 5c69305e1f
commit baa7492e99
2 changed files with 25 additions and 2 deletions

View file

@ -81,8 +81,11 @@ public class NotificationService extends QueueConsumer implements InitializingBe
notification.setObjectType(request.getObjectType());
notification.setObjectId(request.getObjectId());
notification.setNotificationStatus(PEND.getKey());
notification.setCreated(Instant.now());
notification.setUpdated(Instant.now());
notification.setComment(request.getComment());
notification.setPriority(request.getPriority());
Instant now = Instant.now();
notification.setCreated(now);
notification.setUpdated(now);
return notification;
}

View file

@ -11,6 +11,10 @@ public class NotificationNewRequest {
public String objectType;
@JsonProperty
public Long objectId;
@JsonProperty
public String comment;
@JsonProperty
public String priority;
public Long getSenderId() {
return senderId;
@ -43,4 +47,20 @@ public class NotificationNewRequest {
public void setObjectId(Long objectId) {
this.objectId = objectId;
}
public String getComment() {
return comment;
}
public void setComment(String comment) {
this.comment = comment;
}
public String getPriority() {
return priority;
}
public void setPriority(String priority) {
this.priority = priority;
}
}