-
-
Notifications
You must be signed in to change notification settings - Fork 9.1k
Expand file tree
/
Copy pathWxCpDepart.java
More file actions
32 lines (25 loc) · 691 Bytes
/
WxCpDepart.java
File metadata and controls
32 lines (25 loc) · 691 Bytes
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
package me.chanjar.weixin.cp.bean;
import lombok.Data;
import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
import java.io.Serializable;
/**
* 企业微信的部门.
*
* @author Daniel Qian
*/
@Data
public class WxCpDepart implements Serializable {
private static final long serialVersionUID = -5028321625140879571L;
private Long id;
private String name;
private String enName;
private String[] departmentLeader;
private Long parentId;
private Long order;
public static WxCpDepart fromJson(String json) {
return WxCpGsonBuilder.create().fromJson(json, WxCpDepart.class);
}
public String toJson() {
return WxCpGsonBuilder.create().toJson(this);
}
}