package org.dromara.system.domain.bo;

import org.dromara.system.domain.GameReferee;
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_referee
 *
 * @author zlt
 * @date 2025-07-30
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = GameReferee.class, reverseConvertGenerate = false)
public class GameRefereeBo extends BaseEntity {

    /**
     * 裁判ID
     */
    private Long refereeId;

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

    /**
     * 裁判姓名
     */
    private String name;

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

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

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

    /**
     * 负责的赛事项目
     */
    private String projectList;

    /**
     * 裁判码
     */
    private String refereeCode;

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

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


}
