|
1 | 1 | package com.be.sportizebe.domain.match.dto.request; |
2 | 2 |
|
3 | 3 | import com.be.sportizebe.common.enums.SportType; |
| 4 | +import io.swagger.v3.oas.annotations.media.Schema; |
4 | 5 | import jakarta.validation.constraints.*; |
5 | 6 | import lombok.Getter; |
6 | 7 | import lombok.Setter; |
|
9 | 10 | @Setter |
10 | 11 | public class MatchNearRequest { |
11 | 12 |
|
| 13 | + @Schema(description = "위도", example = "37.2662", requiredMode = Schema.RequiredMode.REQUIRED) |
12 | 14 | @NotNull(message = "위도(lat)는 필수입니다") |
13 | 15 | @DecimalMin(value = "-90.0", message = "위도는 -90.0 이상이어야 합니다") |
14 | 16 | @DecimalMax(value = "90.0", message = "위도는 90.0 이하여야 합니다") |
15 | 17 | private Double lat; |
16 | 18 |
|
| 19 | + @Schema(description = "경도", example = "127.0006", requiredMode = Schema.RequiredMode.REQUIRED) |
17 | 20 | @NotNull(message = "경도(lng)는 필수입니다") |
18 | 21 | @DecimalMin(value = "-180.0", message = "경도는 -180.0 이상이어야 합니다") |
19 | 22 | @DecimalMax(value = "180.0", message = "경도는 180.0 이하여야 합니다") |
20 | 23 | private Double lng; |
21 | 24 |
|
| 25 | + @Schema(description = "반경(미터)", example = "1000", defaultValue = "1000") |
22 | 26 | @Min(value = 100, message = "반경은 최소 100m 이상이어야 합니다") |
23 | 27 | @Max(value = 10000, message = "반경은 최대 10km까지 가능합니다") |
24 | 28 | private Integer radiusM = 1000; |
25 | 29 |
|
| 30 | + @Schema(description = "종목 필터(선택)", example = "BASKETBALL", nullable = true) |
26 | 31 | private SportType sportsName; |
27 | 32 | } |
0 commit comments