doum
7 小时以前 36f691267e45ca2861bed663fdcf5f2efcefdfce
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
package com.doumee.core.jiandaoyun.model.role;
 
import org.apache.commons.lang3.StringUtils;
 
public class RoleUpdateParam {
 
    private String name;
    private Integer group_no;
    private Integer role_no;
 
    public String getName() {
        return name;
    }
 
    public void setName(String name) {
        this.name = name;
    }
 
    public Integer getGroup_no() {
        return group_no;
    }
 
    public void setGroup_no(Integer group_no) {
        this.group_no = group_no;
    }
 
    public Integer getRole_no() {
        return role_no;
    }
 
    public void setRole_no(Integer role_no) {
        this.role_no = role_no;
    }
 
    public boolean isValid() {
        return StringUtils.isNotBlank(this.getName()) && this.getRole_no() != null && this.getGroup_no() != null;
    }
 
    @Override
    public String toString() {
        return "RoleUpdateParam{" +
                "name='" + name + '\'' +
                ", group_no=" + group_no +
                ", role_no=" + role_no +
                '}';
    }
}