package org.dromara.system.domain.bo;

import org.dromara.system.domain.GameEventGroup;
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.*;

/**
 * 赛事分组业务对象 game_event_group
 *
 * @author zlt
 * @date 2025-07-30
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = GameEventGroup.class, reverseConvertGenerate = false)
public class GameEventGroupBo extends BaseEntity {

    /**
     * 分组ID
     */
    private Long groupId;

    /**
     * 赛事ID
     */
    @NotNull(message = "赛事ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long eventId;

    /**
     * 项目组名称
     */
    @NotBlank(message = "项目组名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String groupName;

    /**
     * 包含项目列表
     */
    private String projectList;

    /**
     * 成员性别（0不分男女 1男 2女）
     */
    @NotBlank(message = "成员性别（0不分男女 1男 2女）不能为空", groups = { AddGroup.class, EditGroup.class })
    private String memberGender;

    /**
     * 排序字段
     */
    private String sortOrder;

    /**
     * 排序规则(0升序1降序)
     */
    private Long sortRule;

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

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


}
