|
@@ -3,7 +3,10 @@ package com.fdkankan.manage.vo.response;
|
|
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
|
|
import lombok.Data;
|
|
|
|
|
|
+import java.util.ArrayList;
|
|
|
+import java.util.Arrays;
|
|
|
import java.util.Date;
|
|
|
+import java.util.List;
|
|
|
|
|
|
@Data
|
|
|
public class SceneVo {
|
|
@@ -38,4 +41,18 @@ public class SceneVo {
|
|
|
|
|
|
private Integer id;
|
|
|
|
|
|
+ private Integer roleId;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 场景按钮 edit,auth,down,rebuild,copy,del,authOther
|
|
|
+ */
|
|
|
+ private List<String> buttons = new ArrayList<>();
|
|
|
+
|
|
|
+
|
|
|
+ public List<String> getButtons() {
|
|
|
+ if(roleId == 1L){
|
|
|
+ buttons = Arrays.asList("edit","auth","down","rebuild","copy","del","authOther");
|
|
|
+ }
|
|
|
+ return buttons;
|
|
|
+ }
|
|
|
}
|