Skip to content

Commit 1e2d34c

Browse files
create TaskCreateDTO.java
1 parent dd047df commit 1e2d34c

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
package hexlet.code.dto.task;
2+
3+
import com.fasterxml.jackson.annotation.JsonProperty;
4+
import jakarta.validation.constraints.NotBlank;
5+
import jakarta.validation.constraints.NotNull;
6+
import lombok.Getter;
7+
import lombok.Setter;
8+
9+
@Getter
10+
@Setter
11+
public class TaskCreateDTO {
12+
private Integer index;
13+
14+
@JsonProperty("assignee_id")
15+
private Long assigneeId;
16+
17+
@NotBlank
18+
private String title;
19+
20+
private String content;
21+
22+
@NotNull
23+
private String status;
24+
}

0 commit comments

Comments
 (0)