package org.dromara.system.domain.bo;

import org.dromara.system.domain.GameEventMenu;
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_menu
 *
 * @author zlt
 * @date 2025-08-01
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = GameEventMenu.class, reverseConvertGenerate = false)
public class GameEventMenuBo extends BaseEntity {

    /**
     * 菜单ID
     */
//    @NotNull(message = "菜单ID不能为空", groups = { EditGroup.class })
    private Long menuId;

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

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

    /**
     * 父菜单ID（基础菜单）
     */
    @NotNull(message = "父菜单ID（基础菜单）不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long parentId;

    /**
     * 显示顺序
     */
    @NotNull(message = "显示顺序不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long orderNum;

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

    /**
     * 菜单类型（M目录 C菜单 F按钮）
     */
    @NotBlank(message = "菜单类型（M目录 C菜单 F按钮）不能为空", groups = { AddGroup.class, EditGroup.class })
    private String menuType;

    /**
     * 活动状态（0赛前 1赛中 2赛后）
     */
    @NotNull(message = "活动状态（0赛前 1赛中 2赛后）不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long activityStatus;

    /**
     * 是否为外链（0是 1否）
     */
    @NotNull(message = "是否为外链（0是 1否）不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long isFrame;

    /**
     * 图标
     */
    private String icon;

    /**
     * 颜色
     */
    private String color;


}
