package com.lesingle.creation.dto.registration;

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

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

/**
 * 创建报名请求 DTO
 */
@Data
@Schema(description = "创建报名请求")
public class CreateRegistrationDTO {

    @NotNull(message = "活动 ID 不能为空")
    @Schema(description = "活动 ID")
    private Long contestId;

    @NotNull(message = "用户 ID 不能为空")
    @Schema(description = "用户 ID")
    private Long userId;

    @NotBlank(message = "参与类型不能为空")
    @Schema(description = "参与类型：individual/team", example = "individual")
    private String registrationType;

    @Schema(description = "团队 ID（团队参与时必填）")
    private Long teamId;
}
