package com.cpop.oam.business.bo;


import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.experimental.Accessors;


/**
 * 系统菜单表Bo
 *
 * @author DB.lost
 * @since 2023-05-10
 */
@Data
@Accessors(chain = true)
@Schema(description = "系统菜单表")
public class MenuBo {

    /**
     * 菜单ID
     */
    @Schema(description ="菜单ID")
    private String id;

    /**
     * 父级菜单ID
     */
    @Schema(description ="父级菜单ID")
    private String parentMenu;

    /**
     * 菜单名称
     */
    @Schema(description ="菜单名称")
    private String name;

    /**
     * 菜单图标
     */
    @Schema(description = "菜单图标")
    private String icon;

    /**
     * 菜单路由，父菜单为空
     */
    @Schema(description ="菜单路由，父菜单为空")
    private String component;

    /**
     * 标记菜单的状态  0:禁用 1：启用（根据权限正常显示）
     */
    @NotNull(message = "状态不能为空")
    @Schema(description = "标记菜单的状态 0:禁用 1：启用（根据权限正常显示）", requiredMode = Schema.RequiredMode.REQUIRED)
    private Boolean status;

    /**
     * 菜单类型，0:目录，1:菜单，2:按钮
     */
    @NotNull(message = "菜单类型不能为空")
    @Schema(description = "菜单类型，0:目录，1:菜单，2:按钮", requiredMode = Schema.RequiredMode.REQUIRED)
    private Integer type;

    /**
     * 权限
     */
    @Schema(description ="权限")
    private String permission;

    /**
     * 重定向路径，一级菜单有值
     */
    @Schema(description ="重定向路径，一级菜单有值")
    private String redirect;

    /**
     * 排序，值越小越靠前，一级菜单有值
     */
    @NotNull(message = "排序不能为空")
    @Schema(description = "排序，值越小越靠前，一级菜单有值", requiredMode = Schema.RequiredMode.REQUIRED)
    private Integer orderNo;

    /**
     * 路由地址
     */
    @Schema(description = "路由地址")
    private String path;

    /**
     * 标题
     */
    @NotBlank(message = "标题不能为空")
    @Schema(description = "标题", requiredMode = Schema.RequiredMode.REQUIRED)
    private String title;

    /**
     * 隐藏菜单
     */
    @Schema(description ="隐藏菜单")
    private Boolean hideMenu;

}
