package org.dromara.system.domain.bo;

import org.dromara.system.domain.GameEvent;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import org.dromara.common.translation.annotation.Translation;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.dromara.common.translation.constant.TransConstant;

/**
 * 赛事基本信息业务对象 game_event
 *
 * @author zlt
 * @date 2025-07-30
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = GameEvent.class, reverseConvertGenerate = false)
public class GameEventBo extends BaseEntity {

    /**
     * 赛事ID
     */
    private Long eventId;

    /**
     * 赛事编号
     */
    private String eventCode;

    /**
     * 赛事名称
     */
    private String eventName;

    /**
     * 赛事类型
     */
    @NotBlank(message = "赛事类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private String eventType;

    /**
     * 举办地点
     */
//    @NotBlank(message = "举办地点不能为空", groups = { AddGroup.class, EditGroup.class })
    private String location;

    /**
     * 用途
     */
    @NotBlank(message = "用途不能为空", groups = { AddGroup.class, EditGroup.class })
    private String purpose;

    /**
     * 开始时间
     */
    @NotNull(message = "开始时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date startTime;

    /**
     * 结束时间
     */
    @NotNull(message = "结束时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date endTime;

    /**
     * 赛事链接
     */
    @NotBlank(message = "赛事链接不能为空", groups = { AddGroup.class, EditGroup.class })
    private String eventUrl;

    /**
     * 裁判码
     */
    @NotBlank(message = "裁判码不能为空", groups = { AddGroup.class, EditGroup.class })
    private String refereeUrl;

    /**
     * 签到码
     */
//    @NotBlank(message = "签到码不能为空", groups = { AddGroup.class, EditGroup.class })
    private String registerUrl;

    /**
     * 举办单位
     */
//    @NotBlank(message = "举办单位不能为空", groups = { AddGroup.class, EditGroup.class })
    private String unit;

    /**
     * 是否默认赛事
     */
    @NotBlank(message = "是否默认赛事不能为空", groups = { AddGroup.class, EditGroup.class })
    private String isDefault;

    /**
     * 状态（0正常 1停用）
     */
    @NotBlank(message = "状态（0正常 1停用）不能为空", groups = { AddGroup.class, EditGroup.class })
    private String status;

    /**
     * 备注
     */
    private String remark;


}
