package com.ruoyi.system.vo;
|
|
import com.baomidou.mybatisplus.annotation.TableField;
|
import com.fasterxml.jackson.annotation.JsonInclude;
|
import io.swagger.annotations.ApiModelProperty;
|
import lombok.Data;
|
|
import java.util.ArrayList;
|
import java.util.List;
|
|
/**
|
* @author HJL
|
* @version 1.0
|
* @since 2024-06-03 11:17
|
*/
|
@Data
|
public class MenuTreeVO {
|
|
@ApiModelProperty("菜单id")
|
private Long menuId;
|
|
@ApiModelProperty("菜单名称")
|
private String menuName;
|
|
/**
|
* 父级id
|
*/
|
@TableField("parent_id")
|
private Long parentId;
|
|
/**
|
* 子集
|
*/
|
@TableField(exist = false)
|
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
@ApiModelProperty("子集")
|
private List<MenuTreeVO> children = new ArrayList<>();
|
|
public MenuTreeVO(Long menuId, String menuName, Long parentId) {
|
this.menuId = menuId;
|
this.menuName = menuName;
|
this.parentId = parentId;
|
}
|
}
|