package com.dora.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Min;

/**
 * 推广海报排序DTO
 */
@Data
@Schema(description = "推广海报排序请求")
public class PromotionPosterSortDto {
    
    @NotNull(message = "推广海报ID不能为空")
    @Schema(description = "推广海报ID", example = "1")
    private Long id;
    
    @NotNull(message = "排序值不能为空")
    @Min(value = 0, message = "排序值不能小于0")
    @Schema(description = "排序字段", example = "1")
    private Integer sortOrder;
}
