package com.zhangmeng.model.dto;

import com.zhangmeng.model.base.baseEntity.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * 菜单封装类
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class Menu extends BaseEntity<Long> implements Serializable {

    private String title;

    private Integer type;

    private String href;

    private String openType;

    private Long parent_id;

    private String icon;

    private List<Menu> children = new ArrayList<>();
}
