From 30924cb7c3f8c99336a51b71c0d712f51ef62a29 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E5=BF=A0=E6=9E=97?= <170083662@qq.com> Date: Wed, 21 Jan 2026 13:18:13 +0800 Subject: [PATCH] =?UTF-8?q?feat(navigation):=20=E6=B7=BB=E5=8A=A0=E7=BD=91?= =?UTF-8?q?=E7=AB=99=E5=AF=BC=E8=88=AA=E5=AF=BC=E5=85=A5=E5=8F=82=E6=95=B0?= =?UTF-8?q?=E7=B1=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 创建 CmsNavigationImportParam 类用于 Excel 批量导入功能 - 定义导航ID、类型、菜单名称等基础字段映射 - 添加上级id、模型、标识等关联属性配置 - 集成路径、组件、打开位置等路由相关字段 - 包含图标、颜色、隐藏设置等UI显示属性 - 实现权限控制、访问密码 --- .../cms/param/CmsNavigationImportParam.java | 123 ++++++++++++++++++ 1 file changed, 123 insertions(+) create mode 100644 src/main/java/com/gxwebsoft/cms/param/CmsNavigationImportParam.java diff --git a/src/main/java/com/gxwebsoft/cms/param/CmsNavigationImportParam.java b/src/main/java/com/gxwebsoft/cms/param/CmsNavigationImportParam.java new file mode 100644 index 0000000..7f37bd6 --- /dev/null +++ b/src/main/java/com/gxwebsoft/cms/param/CmsNavigationImportParam.java @@ -0,0 +1,123 @@ +package com.gxwebsoft.cms.param; + +import cn.afterturn.easypoi.excel.annotation.Excel; +import lombok.Data; + +import java.io.Serializable; + +/** + * 网站导航导入参数(Excel 批量导入) + */ +@Data +public class CmsNavigationImportParam implements Serializable { + private static final long serialVersionUID = 1L; + + @Excel(name = "导航ID") + private Integer navigationId; + + @Excel(name = "类型") + private Integer type; + + @Excel(name = "菜单名称") + private String title; + + @Excel(name = "上级id") + private Integer parentId; + + @Excel(name = "模型") + private String model; + + @Excel(name = "标识") + private String code; + + @Excel(name = "菜单路由地址") + private String path; + + @Excel(name = "菜单组件地址") + private String component; + + @Excel(name = "打开位置") + private String target; + + @Excel(name = "菜单图标") + private String icon; + + @Excel(name = "图标颜色") + private String color; + + @Excel(name = "是否隐藏") + private Integer hide; + + @Excel(name = "可见类型") + private Integer permission; + + @Excel(name = "访问密码") + private String password; + + @Excel(name = "位置") + private Integer position; + + @Excel(name = "仅在顶部显示") + private Integer top; + + @Excel(name = "仅在底部显示") + private Integer bottom; + + @Excel(name = "选中path") + private String active; + + @Excel(name = "其它路由元信息") + private String meta; + + @Excel(name = "css样式") + private String style; + + @Excel(name = "模型名称") + private String modelName; + + @Excel(name = "页面ID") + private Integer pageId; + + @Excel(name = "详情页ID") + private Integer itemId; + + @Excel(name = "是否微信小程序菜单") + private Boolean isMpWeixin; + + @Excel(name = "菜单间距") + private Integer gutter; + + @Excel(name = "菜单宽度") + private Integer span; + + @Excel(name = "阅读量") + private Integer readNum; + + @Excel(name = "商户ID") + private Long merchantId; + + @Excel(name = "国际化语言") + private String lang; + + @Excel(name = "设为首页") + private Integer home; + + @Excel(name = "是否推荐") + private Boolean recommend; + + @Excel(name = "排序") + private Integer sortNumber; + + @Excel(name = "备注") + private String comments; + + @Excel(name = "状态") + private Integer status; + + @Excel(name = "用户ID") + private Integer userId; + + @Excel(name = "租户ID") + private Integer tenantId; +} +