admin
2022-05-19 a44f2c3b5db92069ea2813ecf8cb12a6ab3b2203
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
package com.yeshi.makemoney.app.vo.admin;
 
import com.yeshi.makemoney.app.entity.SystemEnum;
import com.yeshi.makemoney.app.entity.admin.AdminRole;
import com.yeshi.makemoney.app.entity.admin.AdminRoleRule;
 
import java.util.List;
 
public class AdminRoleRuleAdminVO {
    private String id;
    private AdminRole role;
    private String path;
    private List<String> paths;
    private Boolean navPage;
 
    public AdminRoleRule toEntity(SystemEnum system) {
        AdminRoleRule entity = new AdminRoleRule();
        entity.setId(id);
        entity.setRole(role);
        entity.setPath(path);
        entity.setNavPage(navPage);
        return entity;
    }
 
 
    public static AdminRoleRuleAdminVO create(AdminRoleRule entity) {
        AdminRoleRuleAdminVO vo = new AdminRoleRuleAdminVO();
        vo.setId(entity.getId());
        vo.setRole(entity.getRole());
        vo.setPath(entity.getPath());
        vo.setNavPage(entity.getNavPage());
        return vo;
    }
 
     public String getId() {
        return id;
     }
 
      public void setId(String id) {
        this.id = id;
      }
     public AdminRole getRole() {
        return role;
     }
 
      public void setRole(AdminRole role) {
        this.role = role;
      }
     public String getPath() {
        return path;
     }
 
      public void setPath(String path) {
        this.path = path;
      }
 
    public Boolean getNavPage() {
        return navPage;
    }
 
    public void setNavPage(Boolean navPage) {
        this.navPage = navPage;
    }
 
    public List<String> getPaths() {
        return paths;
    }
 
    public void setPaths(List<String> paths) {
        this.paths = paths;
    }
}