Skip to content

Commit

Permalink
Merge pull request #233 from SKY-HORSE-MAN-POWER/develop
Browse files Browse the repository at this point in the history
[DEPLOYMENT] 알람 메시지에 uuid 필드 추가
  • Loading branch information
chanchanwoong authored Jun 27, 2024
2 parents db7e78a + c2e68c5 commit 810d96d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ public void auctionClose(String auctionUuid) {
AlarmDto alarmDto = AlarmDto.builder().receiverUuids(memberUuids.stream().toList())
.message(MessageEnum.Constant.AUCTION_CLOSE_MESSAGE)
.eventType("경매")
.uuid(auctionUuid)
.build();
log.info("Auction Close Message To Alarm Service >>> {}", alarmDto.toString());

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,13 @@ public class AlarmDto {
private List<String> receiverUuids;
private String message;
private String eventType;
private String uuid;

@Builder
public AlarmDto(List<String> receiverUuids, String message, String eventType) {
public AlarmDto(List<String> receiverUuids, String message, String eventType, String uuid) {
this.receiverUuids = receiverUuids;
this.message = message;
this.eventType = eventType;
this.uuid = uuid;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ public void execute(JobExecutionContext context) throws JobExecutionException {
AlarmDto alarmDto = AlarmDto.builder().receiverUuids(memberUuids.stream().toList())
.message(MessageEnum.Constant.AUCTION_CLOSE_MESSAGE)
.eventType("경매")
.uuid(auctionUuid)
.build();
log.info("Auction Close Message To Alarm Service >>> {}", alarmDto.toString());

Expand Down

0 comments on commit 810d96d

Please sign in to comment.