|
@@ -0,0 +1,24 @@
|
|
|
+package com.mooctest.crowd.site.data.vo;
|
|
|
+
|
|
|
+import com.mooctest.crowd.domain.domainobject.Permission;
|
|
|
+import lombok.AllArgsConstructor;
|
|
|
+import lombok.Data;
|
|
|
+import lombok.NoArgsConstructor;
|
|
|
+
|
|
|
+/**
|
|
|
+ * @author: Diors.Po
|
|
|
+ * @Email: 171256175@qq.com
|
|
|
+ * @date 2019-09-02 14:54
|
|
|
+ */
|
|
|
+@Data
|
|
|
+@NoArgsConstructor
|
|
|
+@AllArgsConstructor
|
|
|
+public class PermissionVO {
|
|
|
+ String name;
|
|
|
+ String url;
|
|
|
+
|
|
|
+ public PermissionVO(Permission permission){
|
|
|
+ this.name = permission.getName();
|
|
|
+ this.url = permission.getOperation();
|
|
|
+ }
|
|
|
+}
|