forked from sngular/scs-multiapi-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDocumentDTO.java
More file actions
35 lines (26 loc) · 852 Bytes
/
Copy pathDocumentDTO.java
File metadata and controls
35 lines (26 loc) · 852 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
package com.sngular.multifileplugin.testsimplebuild.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import org.springframework.web.multipart.MultipartFile;
import java.util.List;
import java.util.ArrayList;
import lombok.Builder;
import lombok.Singular;
import lombok.Value;
import lombok.extern.jackson.Jacksonized;
@Value
public class DocumentDTO {
@JsonProperty(value ="description")
private String description;
@JsonProperty(value ="attachments")
@Singular("attachment")
private List<MultipartFile> attachments;
@JsonProperty(value ="document")
private MultipartFile document;
@Builder
@Jacksonized
private DocumentDTO(String description, List<MultipartFile> attachments, MultipartFile document) {
this.description = description;
this.attachments = attachments;
this.document = document;
}
}