package com.jeesharp.business.modules.setting.vo;

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

import java.util.List;

/**
 * 用户端开屏总配置，免登录拉取；无可用数据时 enabled=false。
 *
 * @author jeesharp
 * @since 2026-04-21
 */
@Data
@Schema(description = "开屏广告配置包（用户端）")
public class SplashAdClientBundleVO {

    @Schema(description = "是否启用（有有效条且可展示）")
    private boolean enabled;

    @Schema(description = "配置版本号，取最近更新时间，用于端上缓存去重")
    private String configVersion;

    @Schema(description = "倒计时秒数，取首条")
    private Integer durationSec;

    @Schema(description = "是否可跳过，取首条")
    private boolean skippable;

    @Schema(description = "轮播列表，按 sort_order 排序")
    private List<SplashAdSlideClientVO> slides;
}
