package org.dromara.system.domain.bo;

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

    /**
     * 主键
     */
    private Long configId;

    /**
     * 赛事ID（关联game_event表）
     */
    private Long eventId;

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

    /**
     * 配置键
     */
    @NotBlank(message = "配置键不能为空", groups = { AddGroup.class, EditGroup.class })
    private String configKey;

    /**
     * 配置值
     */
    private String configValue;

    /**
     * 配置描述
     */
    private String configDesc;

    /**
     * 是否启用（0是 1否）
     */
    private String isEnabled;

    /**
     * 状态（0正常 1停用）
     */
    private String status;

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


}
