From a5680029ffe4f8faa29139e249c80bea60895a0a Mon Sep 17 00:00:00 2001 From: Bunny <1319900154@qq.com> Date: Sat, 28 Sep 2024 03:06:51 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E4=BF=AE=E6=94=B9):=20=E7=94=9F=E6=88=90?= =?UTF-8?q?=E8=B7=AF=E7=94=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../bunny/dao/vo/router/RouterManageVo.java | 59 ++++++++++++++++ .../main/resources/mapper/RouterMapper.xml | 69 +++++++++++++++++++ 2 files changed, 128 insertions(+) create mode 100644 dao/src/main/java/cn/bunny/dao/vo/router/RouterManageVo.java create mode 100644 service/src/main/resources/mapper/RouterMapper.xml diff --git a/dao/src/main/java/cn/bunny/dao/vo/router/RouterManageVo.java b/dao/src/main/java/cn/bunny/dao/vo/router/RouterManageVo.java new file mode 100644 index 0000000..1831e15 --- /dev/null +++ b/dao/src/main/java/cn/bunny/dao/vo/router/RouterManageVo.java @@ -0,0 +1,59 @@ +package cn.bunny.dao.vo.router; + +import cn.bunny.dao.vo.BaseVo; +import com.alibaba.fastjson2.annotation.JSONField; +import com.fasterxml.jackson.annotation.JsonFormat; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.databind.ser.std.ToStringSerializer; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.*; + +import java.util.List; + +@EqualsAndHashCode(callSuper = true) +@Data +@AllArgsConstructor +@NoArgsConstructor +@Builder +@ApiModel(value = "RouterControllerVo对象", description = "路由管理端返回对象") +public class RouterManageVo extends BaseVo { + + @ApiModelProperty("在项目中路径") + private String path; + + @ApiModelProperty("路由名称") + @JsonProperty("name") + private String routeName; + + @ApiModelProperty("父级id") + @JsonProperty("parentId") + @JsonFormat(shape = JsonFormat.Shape.STRING) + @JSONField(serializeUsing = ToStringSerializer.class) + private Long parentId; + + @ApiModelProperty("菜单类型") + private Integer menuType; + + @ApiModelProperty("路由title") + private String title; + + @ApiModelProperty("图标") + private String icon; + + @ApiModelProperty("链接地址(需要内嵌的`iframe`链接地址)") + private String frameSrc; + + @ApiModelProperty("等级") + @JsonProperty("rank") + private Integer routerRank; + + @ApiModelProperty("是否显示") + private Boolean visible; + + @ApiModelProperty("是否显示") + private Boolean frameLoading; + + @ApiModelProperty("子路由") + private List children; +} diff --git a/service/src/main/resources/mapper/RouterMapper.xml b/service/src/main/resources/mapper/RouterMapper.xml new file mode 100644 index 0000000..41300a3 --- /dev/null +++ b/service/src/main/resources/mapper/RouterMapper.xml @@ -0,0 +1,69 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + id + , path, route_name, parent_id, menu_type, title, icon, enter_transition, leave_transition, router_rank, visible, create_user, update_user, update_time, create_time, is_deleted + + + + + + + + + + +