审查视图

src/main/java/com/tianbo/warehouse/model/ROLE.java 1.6 KB
朱兆平 authored
1 2
package com.tianbo.warehouse.model;
3
import lombok.Data;
4 5
import org.springframework.security.core.GrantedAuthority;
朱兆平 authored
6 7
import java.util.List;
8
@Data
9
public class ROLE implements GrantedAuthority {
shenhailong authored
10
11 12
    private static final long serialVersionUID = 1L;
13
    private Integer roleId;
朱兆平 authored
14
15 16
    private Integer parentid;
朱兆平 authored
17 18 19 20 21 22
    private String roleName;

    private String roleSign;

    private String description;
shenhailong authored
23 24
    private String departmentId;
25
    private String type;
shenhailong authored
26
朱兆平 authored
27 28
    private List<PERMISSION> permissions;
29 30 31 32 33 34 35 36
    private Integer rsort;

    private String customsRegCode;

    private String businessLicense;

    private String departmentid;
37 38
    private String mqcode;
39
    private List<ROLE> children;
shenhailong authored
40 41

42
    public Integer getRoleId() {
朱兆平 authored
43 44 45
        return roleId;
    }
46
    public void setRoleId(Integer roleId) {
朱兆平 authored
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
        this.roleId = roleId;
    }

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName == null ? null : roleName.trim();
    }

    public String getRoleSign() {
        return roleSign;
    }

    public void setRoleSign(String roleSign) {
        this.roleSign = roleSign == null ? null : roleSign.trim();
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description == null ? null : description.trim();
    }
73
74 75
    public String getType() {
        return type;
shenhailong authored
76 77
    }
78 79
    public void setType(String type) {
        this.type = type == null ? null : type.trim();
shenhailong authored
80 81
    }
朱兆平 authored
82
83 84 85 86
    @Override
    public String getAuthority(){
        return this.getRoleName();
    }
朱兆平 authored
87
}