/
drobash
/
AdBoard_service
Обзор
Документация
Войти
/
drobash
/
AdBoard_service
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
src/main/java/org/example/dto/request/AdvertisementRequestDto.java
26 строк
598 B
dushesp
Создан сервис
14 апр 2025, 03:58
14 апр 2025, 03:58
568c930
Код
Авторство
О чём код?
package org.example.dto.request; import jakarta.validation.constraints.*; import lombok.Data; import java.math.BigDecimal; import org.example.model.Category; @Data public class AdvertisementRequestDto { @NotBlank(message = "Title is required") @Size(max = 100) private String title; @NotBlank(message = "Description is required") @Size(max = 1000) private String description; @NotNull(message = "Category is required") private Category category; @NotNull @DecimalMin("0.01") private BigDecimal price; @NotNull @Positive private Long sellerId; }