260826_01_ENH: notihub 수정으로 인한 후속 조치
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
package com.kri.contact.server.dto.message;
|
||||
|
||||
import com.kri.contact.server.common.external.notihub.NotiHubSendSingleResponseDto;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import java.util.Map;
|
||||
import lombok.Builder;
|
||||
import lombok.Getter;
|
||||
|
||||
@Getter
|
||||
@Builder
|
||||
@Schema(description = "Message single send response")
|
||||
public class MessageSendSingleResponseDto {
|
||||
|
||||
@Schema(description = "cmid")
|
||||
private String cmid;
|
||||
|
||||
@Schema(description = "data")
|
||||
private Map<String, Object> data;
|
||||
|
||||
public static MessageSendSingleResponseDto from(NotiHubSendSingleResponseDto response) {
|
||||
return MessageSendSingleResponseDto.builder()
|
||||
.cmid(response.getCmid())
|
||||
.data(response.getData())
|
||||
.build();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user