fix(firstleg): validate public port schedule queries with zero scope

This commit is contained in:
2026-10-02 11:16:15 +08:00
parent 8b9b135ab5
commit 0b34f99be5
2 changed files with 41 additions and 1 deletions
@@ -16,7 +16,7 @@ import java.util.List;
public final class PortScheduleDtos {
private PortScheduleDtos() {}
public record Query(@Positive Long customerId, @Positive Long oceanBookingId,
public record Query(@Min(0) Long customerId, @Positive Long oceanBookingId,
@Positive Long containerBookingId, Boolean expired,
@Size(max = 128) String keyword, @Min(1) long page,
@Min(1) @Max(200) long size) {