File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed
src/main/java/com/example/log4u/domain Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change 22
33import com .example .log4u .domain .reports .entity .Report ;
44import com .example .log4u .domain .reports .reportType .ReportType ;
5+ import jakarta .validation .constraints .NotBlank ;
6+ import jakarta .validation .constraints .NotNull ;
7+ import org .hibernate .validator .constraints .Length ;
58
69public record ReportCreateRequestDto (
10+ @ NotNull
711 ReportType reportType ,
12+
13+ @ NotBlank
14+ @ Length (min = 2 )
815 String content
916) {
1017 public Report toEntity (Report .ReportTargetType reportTargetType , Long targetId ){
Original file line number Diff line number Diff line change 33import com .example .log4u .domain .supports .entity .Support ;
44import com .example .log4u .domain .supports .supportType .SupportType ;
55import jakarta .validation .constraints .NotBlank ;
6+ import jakarta .validation .constraints .NotNull ;
67import org .hibernate .validator .constraints .Length ;
78
89public record SupportCreateRequestDto (
10+ @ NotNull
911 SupportType supportType ,
1012
1113 @ NotBlank
You can’t perform that action at this time.
0 commit comments