zhou-hao hace 7 años
padre
commit
66e1327880

+ 5 - 0
hsweb-system/hsweb-system-authorization/hsweb-system-authorization-entity/src/main/java/org/hswebframework/web/entity/authorization/ActionEntity.java

@@ -3,6 +3,7 @@ package org.hswebframework.web.entity.authorization;
 import lombok.*;
 import lombok.experimental.Wither;
 import org.hswebframework.web.commons.entity.CloneableEntity;
+import org.springframework.util.StringUtils;
 
 import java.util.Arrays;
 import java.util.List;
@@ -46,4 +47,8 @@ public class ActionEntity implements CloneableEntity {
         return obj instanceof ActionEntity && obj.hashCode() == hashCode();
     }
 
+    @Override
+    public String toString() {
+        return action + (StringUtils.hasText(describe) ? "(" + describe + ")" : "");
+    }
 }