package com.dora.dto;

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

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

/**
 * 更新推广海报DTO
 */
@Data
@Schema(description = "更新推广海报请求")
public class PromotionPosterUpdateDto {
    
    @NotNull(message = "推广海报ID不能为空")
    @Schema(description = "推广海报ID", example = "1")
    private Long id;
    
    @NotBlank(message = "海报标题不能为空")
    @Schema(description = "海报标题", example = "1818AI推广海报")
    private String title;
    
    @Schema(description = "海报描述", example = "精美推广海报，助您分享获利")
    private String description;
    
    @NotBlank(message = "海报图片URL不能为空")
    @Schema(description = "海报图片URL", example = "https://example.com/poster.jpg")
    private String imageUrl;
    
    @Min(value = 0, message = "排序值不能小于0")
    @Schema(description = "排序字段", example = "1")
    private Integer sortOrder;
    
    @Schema(description = "是否启用", example = "true")
    private Boolean isEnabled;
}
