package jnpf.model.authority.vo.menu;

import jnpf.base.entity.ModuleEntity;
import lombok.Data;

import java.util.List;

/**
 * @Author: peng.hao
 * @create: 2025/3/11
 */
@Data
public class FtbPermissionMenuDirectoryVO {


    private String fullName;
    /**
     * 是否已经使用
     */
    private Boolean isUse = false;
    /**
     * 子级分类
     */
    private List<FtbPermissionMenuDirectoryInfoVO> children;

    public static  FtbPermissionMenuDirectoryVO convert(ModuleEntity moduleEntity){
        FtbPermissionMenuDirectoryVO ftbPermissionMenuDirectoryVO = new FtbPermissionMenuDirectoryVO();
        ftbPermissionMenuDirectoryVO.setFullName(moduleEntity.getFullName());
        return ftbPermissionMenuDirectoryVO;
    }
    @Data
   public static class FtbPermissionMenuDirectoryInfoVO{
        /**
         * 主键
         */
        private String id;
        /**
         * 分类 web/app
         */
        private String category;
    }
}
