package com.lesingle.creation.dto.work;

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

/**
 * 作品查询 DTO
 */
@Data
@Schema(description = "作品查询参数")
public class WorkQueryDTO {

    @Schema(description = "页码", example = "1")
    private Integer pageNum = 1;

    @Schema(description = "每页数量", example = "10")
    private Integer pageSize = 10;

    @Schema(description = "活动 ID")
    private Long contestId;

    @Schema(description = "报名 ID")
    private Long registrationId;

    @Schema(description = "作品标题关键字")
    private String titleKeyword;

    @Schema(description = "提交人 ID")
    private Long submitterId;

    @Schema(description = "是否仅查询最新版本", example = "true")
    private Boolean latestOnly = true;
}
