260806_01_ENH: 파일첨부 발송 추가

This commit is contained in:
2026-08-06 14:36:13 +09:00
parent c4c57654da
commit de67433539
17 changed files with 616 additions and 69 deletions

View File

@@ -0,0 +1,16 @@
package com.kri.notihub.server.dto.email;
import java.util.Objects;
public record EmailAttachmentDto(
String fileName,
String contentType,
byte[] content
) {
public EmailAttachmentDto {
Objects.requireNonNull(fileName, "fileName is required");
Objects.requireNonNull(contentType, "contentType is required");
Objects.requireNonNull(content, "content is required");
}
}

View File

@@ -1,5 +1,6 @@
package com.kri.notihub.server.dto.template;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.kri.notihub.server.common.enums.SendType;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.persistence.Column;
@@ -52,6 +53,7 @@ public class TemplateBasicDto {
private String nationCd;
@Schema(description = "첨부 파일 (여러 개일 경우, ‘I’문자로 구분)")
@JsonProperty(access = JsonProperty.Access.READ_ONLY)
private String atchFl;
@Schema(description = "이메일 건당 발송 딜레이(단위 ms, 기본: 500ms)")