From d6fcca25f2979710b008502e26aeceb8993f86ae Mon Sep 17 00:00:00 2001
From: zhou zhou <3272660260@qq.com>
Date: 星期二, 06 一月 2026 20:00:28 +0800
Subject: [PATCH] #

---
 rsf-server/src/main/java/com/vincent/rsf/server/manager/entity/MenuPda.java |  258 +++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 258 insertions(+), 0 deletions(-)

diff --git a/rsf-server/src/main/java/com/vincent/rsf/server/manager/entity/MenuPda.java b/rsf-server/src/main/java/com/vincent/rsf/server/manager/entity/MenuPda.java
new file mode 100644
index 0000000..e16825f
--- /dev/null
+++ b/rsf-server/src/main/java/com/vincent/rsf/server/manager/entity/MenuPda.java
@@ -0,0 +1,258 @@
+package com.vincent.rsf.server.manager.entity;
+
+import com.baomidou.mybatisplus.annotation.*;
+
+import java.text.SimpleDateFormat;
+import java.util.Date;
+
+import com.fasterxml.jackson.annotation.JsonFormat;
+import com.vincent.rsf.server.system.entity.Menu;
+import com.vincent.rsf.server.system.entity.Tenant;
+import com.vincent.rsf.server.system.service.TenantService;
+import org.springframework.format.annotation.DateTimeFormat;
+import java.text.SimpleDateFormat;
+import java.util.Date;
+
+import com.baomidou.mybatisplus.annotation.TableLogic;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+import com.vincent.rsf.framework.common.Cools;
+import com.vincent.rsf.framework.common.SpringUtils;
+import com.vincent.rsf.server.system.service.UserService;
+import com.vincent.rsf.server.system.entity.User;
+import org.springframework.security.core.GrantedAuthority;
+
+import java.io.Serializable;
+import java.util.Date;
+import java.util.List;
+
+@Data
+@TableName("sys_menu_pda")
+public class MenuPda implements Serializable, GrantedAuthority {
+
+    private static final long serialVersionUID = 1L;
+
+    public static final int TYPE_MENU = 0; // 鑿滃崟绫诲瀷
+    public static final int TYPE_BTN = 1; // 鎸夐挳绫诲瀷
+
+    /**
+     * ID
+     */
+    @ApiModelProperty(value = "ID")
+    @TableId(value = "id", type = IdType.AUTO)
+    private Long id;
+
+    /**
+     * 鍚嶇О
+     */
+    @ApiModelProperty(value = "鍚嶇О")
+    private String name;
+
+    /**
+     * 涓婄骇鑿滃崟
+     */
+    @ApiModelProperty(value = "涓婄骇鑿滃崟")
+    private Long parentId;
+
+    /**
+     * 涓婄骇鑿滃崟鍚�
+     */
+    @ApiModelProperty(value = "涓婄骇鑿滃崟鍚�")
+    private String parentName;
+
+    /**
+     * 鍏宠仈璺緞
+     */
+    @ApiModelProperty(value = "鍏宠仈璺緞")
+    private String path;
+
+    /**
+     * 鍏宠仈璺緞鍚�
+     */
+    @ApiModelProperty(value = "鍏宠仈璺緞鍚�")
+    private String pathName;
+
+    /**
+     * 璺敱鍦板潃
+     */
+    @ApiModelProperty(value = "璺敱鍦板潃")
+    private String route;
+
+    /**
+     * 椤甸潰缁勪欢
+     */
+    @ApiModelProperty(value = "椤甸潰缁勪欢")
+    private String component;
+
+    /**
+     * 绠�杩�
+     */
+    @ApiModelProperty(value = "绠�杩�")
+    private String brief;
+
+    /**
+     * 鏍囪瘑
+     */
+    @ApiModelProperty(value = "鏍囪瘑")
+    private String code;
+
+    /**
+     * 绫诲瀷 0: 鑿滃崟 1: 鎸夐挳
+     */
+    @ApiModelProperty(value = "绫诲瀷 0: 鑿滃崟  1: 鎸夐挳  ")
+    private Integer type;
+
+    /**
+     * 鏉冮檺鏍囪瘑
+     */
+    @ApiModelProperty(value = "鏉冮檺鏍囪瘑")
+    private String authority;
+
+    /**
+     * 鑿滃崟鍥炬爣
+     */
+    @ApiModelProperty(value = "鑿滃崟鍥炬爣")
+    private String icon;
+
+    /**
+     * 鎺掑簭
+     */
+    @ApiModelProperty(value = "鎺掑簭")
+    private Integer sort;
+
+    /**
+     * 鍏冧俊鎭�
+     */
+    @ApiModelProperty(value = "鍏冧俊鎭�")
+    private String meta;
+
+    /**
+     * 鎵�灞炴満鏋�
+     */
+    @ApiModelProperty(value = "鎵�灞炴満鏋�")
+    private Long tenantId;
+
+    /**
+     * 鐘舵�� 1: 姝e父 0: 绂佺敤
+     */
+    @ApiModelProperty(value = "鐘舵�� 1: 姝e父  0: 绂佺敤  ")
+    private Integer status;
+
+    /**
+     * 鏄惁鍒犻櫎 1: 鏄� 0: 鍚�
+     */
+    @ApiModelProperty(value = "鏄惁鍒犻櫎 1: 鏄�  0: 鍚�  ")
+    @TableLogic
+    private Integer deleted;
+
+    /**
+     * 娣诲姞鏃堕棿
+     */
+    @ApiModelProperty(value = "娣诲姞鏃堕棿")
+    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
+    private Date createTime;
+
+    /**
+     * 娣诲姞浜哄憳
+     */
+    @ApiModelProperty(value = "娣诲姞浜哄憳")
+    private Long createBy;
+
+    /**
+     * 淇敼鏃堕棿
+     */
+    @ApiModelProperty(value = "淇敼鏃堕棿")
+    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
+    private Date updateTime;
+
+    /**
+     * 淇敼浜哄憳
+     */
+    @ApiModelProperty(value = "淇敼浜哄憳")
+    private Long updateBy;
+
+    /**
+     * 澶囨敞
+     */
+    @ApiModelProperty(value = "澶囨敞")
+    private String memo;
+
+    @TableField(exist = false)
+    private List<MenuPda> children;
+
+    public MenuPda() {
+    }
+
+    public String getType$() {
+        if (null == this.type) {
+            return null;
+        }
+        switch (this.type) {
+            case 0:
+                return "鑿滃崟";
+            case 1:
+                return "鎸夐挳";
+            default:
+                return String.valueOf(this.type);
+        }
+    }
+
+    public String getTenantId$() {
+        TenantService service = SpringUtils.getBean(TenantService.class);
+        Tenant tenant = service.getById(this.tenantId);
+        if (!Cools.isEmpty(tenant)) {
+            return String.valueOf(tenant.getName());
+        }
+        return null;
+    }
+
+    public String getCreateTime$() {
+        if (Cools.isEmpty(this.createTime)) {
+            return "";
+        }
+        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.createTime);
+    }
+
+    public String getCreateBy$() {
+        UserService service = SpringUtils.getBean(UserService.class);
+        User user = service.getById(this.createBy);
+        if (!Cools.isEmpty(user)) {
+            return String.valueOf(user.getNickname());
+        }
+        return null;
+    }
+
+    public String getUpdateTime$() {
+        if (Cools.isEmpty(this.updateTime)) {
+            return "";
+        }
+        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.updateTime);
+    }
+
+    public String getUpdateBy$() {
+        UserService service = SpringUtils.getBean(UserService.class);
+        User user = service.getById(this.updateBy);
+        if (!Cools.isEmpty(user)) {
+            return String.valueOf(user.getNickname());
+        }
+        return null;
+    }
+
+    public Boolean getStatusBool() {
+        if (null == this.status) {
+            return null;
+        }
+        switch (this.status) {
+            case 1:
+                return true;
+            case 0:
+                return false;
+            default:
+                return null;
+        }
+    }
+
+}

--
Gitblit v1.9.1