This commit is contained in:
Viktoria committed 2022-08-31 16:35:51 +02:00
1 parent 6daa2dea77
commit 202ba23b76
11 files changed
+146 -70

No files matched your search

@@ -1,6 +1,7 @@
package site.easystartup.web.project.dto;
import lombok.Data;
import lombok.NoArgsConstructor;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
@@ -9,18 +10,19 @@ import java.time.LocalDateTime;
import java.util.List;
@Data
@NoArgsConstructor
public class ProjectDto implements Serializable {
private final Long projectId;
private final String coverLink;
private Long projectId;
private String coverLink;
@Size(min = 3, max = 100, message = "Title should be no less 3 and no more 100 signs")
@NotNull
private final String title;
private String title;
@Size(min = 50, message = "Description should be no less 50 signs")
@NotNull
private final String description;
private final int commercialStatus;
private String description;
private int commercialStatus;
@NotNull
private final String technology;
private final List<ParticipantDto> participants;
private final LocalDateTime createdDate;
private String technology;
private List<ParticipantDto> participants;
private LocalDateTime createdDate;
}