Browse Source

web端接口调整

hxd 3 months ago
parent
commit
8a9df088ad

+ 122 - 0
portal-service-common/src/main/java/com/hfln/portal/common/dto/data/menu/MenuListDTO.java

@@ -0,0 +1,122 @@
+package com.hfln.portal.common.dto.data.menu;
+
+import com.hfln.portal.common.vo.BaseVO;
+import io.swagger.v3.oas.annotations.media.Schema;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+
+/**
+ * 菜单列表DTO
+ */
+@EqualsAndHashCode(callSuper = true)
+@Data
+public class MenuListDTO extends BaseVO {
+    
+    /**
+     * 菜单ID
+     */
+    @Schema(description = "菜单ID")
+    private Long menuId;
+    
+    /**
+     * 菜单名称
+     */
+    @Schema(description = "菜单名称")
+    private String menuName;
+    
+    /**
+     * 菜单类型:1-目录,2-菜单,3-功能点
+     */
+    @Schema(description = "菜单类型:1-目录,2-菜单,3-功能点")
+    private Long menuType;
+    
+    /**
+     * 父级ID
+     */
+    @Schema(description = "父级ID")
+    private Long parentId;
+    
+    /**
+     * 显示排序
+     */
+    @Schema(description = "显示排序")
+    private Long sort;
+    
+    /**
+     * 路由地址
+     */
+    @Schema(description = "路由地址")
+    private String path;
+    
+    /**
+     * API路径
+     */
+    @Schema(description = "API路径")
+    private String apiPath;
+    
+    /**
+     * 组件路径
+     */
+    @Schema(description = "组件路径")
+    private String component;
+    
+    /**
+     * 权限类型
+     */
+    @Schema(description = "权限类型")
+    private Long permsType;
+    
+    /**
+     * 后端权限字符串
+     */
+    @Schema(description = "后端权限字符串")
+    private String apiPerms;
+    
+    /**
+     * 前端权限字符串
+     */
+    @Schema(description = "前端权限字符串")
+    private String webPerms;
+    
+    /**
+     * 菜单图标
+     */
+    @Schema(description = "菜单图标")
+    private String icon;
+    
+    /**
+     * 功能点关联菜单ID
+     */
+    @Schema(description = "功能点关联菜单ID")
+    private Long contextMenuId;
+    
+    /**
+     * 是否外链:0-是, 1-否
+     */
+    @Schema(description = "是否外链:0-是, 1-否")
+    private Integer frameFlag;
+    
+    /**
+     * 外链地址
+     */
+    @Schema(description = "外链地址")
+    private String frameUrl;
+    
+    /**
+     * 是否缓存:0-是, 1-否
+     */
+    @Schema(description = "是否缓存:0-是, 1-否")
+    private Integer cacheFlag;
+    
+    /**
+     * 显示状态:0-显示, 1-隐藏
+     */
+    @Schema(description = "显示状态:0-显示, 1-隐藏")
+    private Integer visibleFlag;
+    
+    /**
+     * 是否禁用:0-启用, 1-禁用
+     */
+    @Schema(description = "是否禁用:0-启用, 1-禁用")
+    private Integer disabledFlag;
+} 

+ 100 - 0
portal-service-common/src/main/java/com/hfln/portal/common/dto/data/menu/MenuTreeDTO.java

@@ -0,0 +1,100 @@
+package com.hfln.portal.common.dto.data.menu;
+
+import com.hfln.portal.common.vo.BaseVO;
+import io.swagger.v3.oas.annotations.media.Schema;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+
+import java.util.List;
+
+/**
+ * 菜单树DTO
+ */
+@EqualsAndHashCode(callSuper = true)
+@Data
+public class MenuTreeDTO extends BaseVO {
+    
+    /**
+     * 菜单ID
+     */
+    @Schema(description = "菜单ID")
+    private Long menuId;
+    
+    /**
+     * 菜单名称
+     */
+    @Schema(description = "菜单名称")
+    private String menuName;
+    
+    /**
+     * 菜单类型:1-目录,2-菜单,3-功能点
+     */
+    @Schema(description = "菜单类型:1-目录,2-菜单,3-功能点")
+    private Long menuType;
+    
+    /**
+     * 父级ID
+     */
+    @Schema(description = "父级ID")
+    private Long parentId;
+    
+    /**
+     * 显示排序
+     */
+    @Schema(description = "显示排序")
+    private Long sort;
+    
+    /**
+     * 路由地址
+     */
+    @Schema(description = "路由地址")
+    private String path;
+    
+    /**
+     * 组件路径
+     */
+    @Schema(description = "组件路径")
+    private String component;
+    
+    /**
+     * 菜单图标
+     */
+    @Schema(description = "菜单图标")
+    private String icon;
+    
+    /**
+     * 是否外链:0-是, 1-否
+     */
+    @Schema(description = "是否外链:0-是, 1-否")
+    private Integer frameFlag;
+    
+    /**
+     * 外链地址
+     */
+    @Schema(description = "外链地址")
+    private String frameUrl;
+    
+    /**
+     * 是否缓存:0-是, 1-否
+     */
+    @Schema(description = "是否缓存:0-是, 1-否")
+    private Integer cacheFlag;
+    
+    /**
+     * 显示状态:0-显示, 1-隐藏
+     */
+    @Schema(description = "显示状态:0-显示, 1-隐藏")
+    private Integer visibleFlag;
+    
+    /**
+     * 是否禁用:0-启用, 1-禁用
+     */
+    @Schema(description = "是否禁用:0-启用, 1-禁用")
+    private Integer disabledFlag;
+    
+    /**
+     * 子菜单列表
+     */
+    @Schema(description = "子菜单列表")
+    private List<MenuTreeDTO> children;
+}