File tree Expand file tree Collapse file tree
ewm-service/src/main/java/ru/practicum/ewm/event/dto Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33import jakarta .validation .constraints .AssertTrue ;
44import jakarta .validation .constraints .Positive ;
55import jakarta .validation .constraints .PositiveOrZero ;
6- import lombok .Builder ;
76import lombok .Data ;
87import org .springframework .format .annotation .DateTimeFormat ;
98import ru .practicum .ewm .event .util .SortType ;
1211import java .util .List ;
1312
1413@ Data
15- @ Builder
1614public class PublicEventSearchParams {
1715 private String text ;
1816 private List <Long > categories ;
@@ -23,18 +21,13 @@ public class PublicEventSearchParams {
2321
2422 @ DateTimeFormat (pattern = "yyyy-MM-dd HH:mm:ss" )
2523 private LocalDateTime rangeEnd ;
26-
27- @ Builder .Default
2824 private Boolean onlyAvailable = false ;
29-
3025 private SortType sort ;
3126
3227 @ PositiveOrZero
33- @ Builder .Default
3428 private int from = 0 ;
3529
3630 @ Positive
37- @ Builder .Default
3831 private int size = 10 ;
3932
4033 @ AssertTrue (message = "Дата начала не может быть позже даты окончания" )
You can’t perform that action at this time.
0 commit comments