package com.campus.activity.dto.request;

import jakarta.validation.constraints.*;
import lombok.Data;

import java.time.LocalDateTime;

@Data
public class ActivityUpdateRequest {

    @NotBlank(message = "活动名称不能为空")
    @Size(max = 100, message = "活动名称不能超过100个字符")
    private String title;

    @Size(max = 2000, message = "活动简介不能超过2000个字符")
    private String description;

    private String coverImage;

    @NotNull(message = "开始时间不能为空")
    private LocalDateTime startTime;

    @NotNull(message = "结束时间不能为空")
    private LocalDateTime endTime;

    private LocalDateTime registrationDeadline;

    @NotBlank(message = "活动地点不能为空")
    @Size(max = 200, message = "活动地点不能超过200个字符")
    private String location;

    @NotNull(message = "报名人数上限不能为空")
    @Min(value = 1, message = "报名人数上限至少为1")
    @Max(value = 10000, message = "报名人数上限不能超过10000")
    private Integer maxParticipants;

    private Integer status;

    @Size(max = 50, message = "活动分类不能超过50个字符")
    private String category;
}