package org.dromara.system.domain.bo;

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

    /**
     * 类型ID
     */
    private Long typeId;

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

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

    /**
     * 类型描述
     */
    private String typeDesc;

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

    /**
     * 是否启用（0是 1否）
     */
    @NotBlank(message = "是否启用（0是 1否）不能为空", groups = { AddGroup.class, EditGroup.class })
    private String isEnabled;

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

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


}
