From 4d02466fed4f3ea012a80c3359cde9af0737141f Mon Sep 17 00:00:00 2001
From: 疯狂的狮子li <15040126243@163.com>
Date: 星期一, 21 十一月 2022 20:01:12 +0800
Subject: [PATCH] add 增加 skywalking 集成 默认注释不开启

---
 ruoyi-common/src/main/java/com/ruoyi/common/core/domain/entity/SysRole.java |   58 ++++++++++------------------------------------------------
 1 files changed, 10 insertions(+), 48 deletions(-)

diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/core/domain/entity/SysRole.java b/ruoyi-common/src/main/java/com/ruoyi/common/core/domain/entity/SysRole.java
index ff9275a..5268289 100644
--- a/ruoyi-common/src/main/java/com/ruoyi/common/core/domain/entity/SysRole.java
+++ b/ruoyi-common/src/main/java/com/ruoyi/common/core/domain/entity/SysRole.java
@@ -10,7 +10,6 @@
 import com.ruoyi.common.constant.UserConstants;
 import com.ruoyi.common.convert.ExcelDictConvert;
 import com.ruoyi.common.core.domain.BaseEntity;
-import io.swagger.annotations.ApiModelProperty;
 import lombok.Data;
 import lombok.EqualsAndHashCode;
 import lombok.NoArgsConstructor;
@@ -18,6 +17,7 @@
 import javax.validation.constraints.NotBlank;
 import javax.validation.constraints.NotNull;
 import javax.validation.constraints.Size;
+import java.util.Set;
 
 /**
  * 瑙掕壊琛� sys_role
@@ -35,7 +35,6 @@
     /**
      * 瑙掕壊ID
      */
-    @ApiModelProperty(value = "瑙掕壊ID")
     @ExcelProperty(value = "瑙掕壊搴忓彿")
     @TableId(value = "role_id")
     private Long roleId;
@@ -43,7 +42,6 @@
     /**
      * 瑙掕壊鍚嶇О
      */
-    @ApiModelProperty(value = "瑙掕壊鍚嶇О")
     @ExcelProperty(value = "瑙掕壊鍚嶇О")
     @NotBlank(message = "瑙掕壊鍚嶇О涓嶈兘涓虹┖")
     @Size(min = 0, max = 30, message = "瑙掕壊鍚嶇О闀垮害涓嶈兘瓒呰繃30涓瓧绗�")
@@ -52,7 +50,6 @@
     /**
      * 瑙掕壊鏉冮檺
      */
-    @ApiModelProperty(value = "瑙掕壊鏉冮檺")
     @ExcelProperty(value = "瑙掕壊鏉冮檺")
     @NotBlank(message = "鏉冮檺瀛楃涓嶈兘涓虹┖")
     @Size(min = 0, max = 100, message = "鏉冮檺瀛楃闀垮害涓嶈兘瓒呰繃100涓瓧绗�")
@@ -61,7 +58,6 @@
     /**
      * 瑙掕壊鎺掑簭
      */
-    @ApiModelProperty(value = "瑙掕壊鎺掑簭")
     @ExcelProperty(value = "瑙掕壊鎺掑簭")
     @NotNull(message = "鏄剧ず椤哄簭涓嶈兘涓虹┖")
     private Integer roleSort;
@@ -69,7 +65,6 @@
     /**
      * 鏁版嵁鑼冨洿锛�1锛氭墍鏈夋暟鎹潈闄愶紱2锛氳嚜瀹氫箟鏁版嵁鏉冮檺锛�3锛氭湰閮ㄩ棬鏁版嵁鏉冮檺锛�4锛氭湰閮ㄩ棬鍙婁互涓嬫暟鎹潈闄愶紱5锛氫粎鏈汉鏁版嵁鏉冮檺锛�
      */
-    @ApiModelProperty(value = "鏁版嵁鑼冨洿锛�1锛氭墍鏈夋暟鎹潈闄愶紱2锛氳嚜瀹氫箟鏁版嵁鏉冮檺锛�3锛氭湰閮ㄩ棬鏁版嵁鏉冮檺锛�4锛氭湰閮ㄩ棬鍙婁互涓嬫暟鎹潈闄愶紱5锛氫粎鏈汉鏁版嵁鏉冮檺锛�")
     @ExcelProperty(value = "鏁版嵁鑼冨洿", converter = ExcelDictConvert.class)
     @ExcelDictFormat(readConverterExp = "1=鎵�鏈夋暟鎹潈闄�,2=鑷畾涔夋暟鎹潈闄�,3=鏈儴闂ㄦ暟鎹潈闄�,4=鏈儴闂ㄥ強浠ヤ笅鏁版嵁鏉冮檺,5=浠呮湰浜烘暟鎹潈闄�")
     private String dataScope;
@@ -77,93 +72,60 @@
     /**
      * 鑿滃崟鏍戦�夋嫨椤规槸鍚﹀叧鑱旀樉绀猴紙 0锛氱埗瀛愪笉浜掔浉鍏宠仈鏄剧ず 1锛氱埗瀛愪簰鐩稿叧鑱旀樉绀猴級
      */
-    @ApiModelProperty(value = "鑿滃崟鏍戦�夋嫨椤规槸鍚﹀叧鑱旀樉绀猴紙 0锛氱埗瀛愪笉浜掔浉鍏宠仈鏄剧ず 1锛氱埗瀛愪簰鐩稿叧鑱旀樉绀猴級")
-    private Integer menuCheckStrictly;
+    private Boolean menuCheckStrictly;
 
     /**
      * 閮ㄩ棬鏍戦�夋嫨椤规槸鍚﹀叧鑱旀樉绀猴紙0锛氱埗瀛愪笉浜掔浉鍏宠仈鏄剧ず 1锛氱埗瀛愪簰鐩稿叧鑱旀樉绀� 锛�
      */
-    @ApiModelProperty(value = "閮ㄩ棬鏍戦�夋嫨椤规槸鍚﹀叧鑱旀樉绀猴紙0锛氱埗瀛愪笉浜掔浉鍏宠仈鏄剧ず 1锛氱埗瀛愪簰鐩稿叧鑱旀樉绀� 锛�")
-    private Integer deptCheckStrictly;
+    private Boolean deptCheckStrictly;
 
     /**
      * 瑙掕壊鐘舵�侊紙0姝e父 1鍋滅敤锛�
      */
-    @ApiModelProperty(value = "瑙掕壊鐘舵�侊紙0姝e父 1鍋滅敤锛�")
     @ExcelProperty(value = "瑙掕壊鐘舵��", converter = ExcelDictConvert.class)
-    @ExcelDictFormat(dictType = "sys_common_status")
+    @ExcelDictFormat(dictType = "sys_normal_disable")
     private String status;
 
     /**
      * 鍒犻櫎鏍囧織锛�0浠h〃瀛樺湪 2浠h〃鍒犻櫎锛�
      */
-    @ApiModelProperty(value = "鍒犻櫎鏍囧織锛�0浠h〃瀛樺湪 2浠h〃鍒犻櫎锛�")
     @TableLogic
     private String delFlag;
 
     /**
      * 澶囨敞
      */
-    @ApiModelProperty(value = "澶囨敞")
     private String remark;
 
     /**
      * 鐢ㄦ埛鏄惁瀛樺湪姝よ鑹叉爣璇� 榛樿涓嶅瓨鍦�
      */
-    @ApiModelProperty(value = "鐢ㄦ埛鏄惁瀛樺湪姝よ鑹叉爣璇� 榛樿涓嶅瓨鍦�")
     @TableField(exist = false)
     private boolean flag = false;
 
     /**
      * 鑿滃崟缁�
      */
-    @ApiModelProperty(value = "鑿滃崟缁�")
     @TableField(exist = false)
     private Long[] menuIds;
 
     /**
      * 閮ㄩ棬缁勶紙鏁版嵁鏉冮檺锛�
      */
-    @ApiModelProperty(value = "閮ㄩ棬缁勶紙鏁版嵁鏉冮檺锛�")
     @TableField(exist = false)
     private Long[] deptIds;
+
+    /**
+     * 瑙掕壊鑿滃崟鏉冮檺
+     */
+    @TableField(exist = false)
+    private Set<String> permissions;
 
     public SysRole(Long roleId) {
         this.roleId = roleId;
     }
 
-    @ApiModelProperty(value = "鏄惁绠$悊鍛�")
     public boolean isAdmin() {
         return UserConstants.ADMIN_ID.equals(this.roleId);
-    }
-
-    public Boolean getMenuCheckStrictly() {
-        if (menuCheckStrictly == null) {
-            return null;
-        }
-        return menuCheckStrictly == 1;
-    }
-
-    public void setMenuCheckStrictly(Boolean menuCheckStrictly) {
-        if (menuCheckStrictly == null) {
-            this.menuCheckStrictly = null;
-            return;
-        }
-        this.menuCheckStrictly = menuCheckStrictly ? 1 : 0;
-    }
-
-    public Boolean getDeptCheckStrictly() {
-        if (deptCheckStrictly == null) {
-            return null;
-        }
-        return deptCheckStrictly == 1;
-    }
-
-    public void setDeptCheckStrictly(Boolean deptCheckStrictly) {
-        if (deptCheckStrictly == null) {
-            this.deptCheckStrictly = null;
-            return;
-        }
-        this.deptCheckStrictly = deptCheckStrictly ? 1 : 0;
     }
 }

--
Gitblit v1.9.3