-
-
Notifications
You must be signed in to change notification settings - Fork 8.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e0f3c76
commit bac1853
Showing
8 changed files
with
536 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
95 changes: 95 additions & 0 deletions
95
weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/user/WxCpListParentResult.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
package me.chanjar.weixin.cp.bean.school.user; | ||
|
||
import com.google.gson.annotations.SerializedName; | ||
import lombok.*; | ||
import lombok.experimental.Accessors; | ||
import me.chanjar.weixin.cp.bean.WxCpBaseResp; | ||
import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; | ||
|
||
import java.io.Serializable; | ||
import java.util.List; | ||
|
||
/** | ||
* 获取部门家长详情返回结果. | ||
* | ||
* @author Wang_Wong | ||
* @date 2022-07-13 | ||
*/ | ||
@Data | ||
@Builder | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
@Accessors(chain = true) | ||
public class WxCpListParentResult extends WxCpBaseResp implements Serializable { | ||
private static final long serialVersionUID = -4960239393895754138L; | ||
|
||
@SerializedName("parents") | ||
private List<Parent> parents; | ||
|
||
@Setter | ||
@Getter | ||
@Builder | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
public static class Parent implements Serializable { | ||
|
||
@SerializedName("parent_userid") | ||
private String parentUserId; | ||
|
||
@SerializedName("mobile") | ||
private String mobile; | ||
|
||
@SerializedName("external_userid") | ||
private String externalUserId; | ||
|
||
@SerializedName("is_subscribe") | ||
private Integer isSubscribe; | ||
|
||
@SerializedName("children") | ||
private List<Children> children; | ||
|
||
public static Parent fromJson(String json) { | ||
return WxCpGsonBuilder.create().fromJson(json, Parent.class); | ||
} | ||
|
||
public String toJson() { | ||
return WxCpGsonBuilder.create().toJson(this); | ||
} | ||
|
||
} | ||
|
||
@Setter | ||
@Getter | ||
@Builder | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
public static class Children implements Serializable { | ||
|
||
@SerializedName("student_userid") | ||
private String studentUserId; | ||
|
||
@SerializedName("relation") | ||
private String relation; | ||
|
||
@SerializedName("name") | ||
private String name; | ||
|
||
public static Children fromJson(String json) { | ||
return WxCpGsonBuilder.create().fromJson(json, Children.class); | ||
} | ||
|
||
public String toJson() { | ||
return WxCpGsonBuilder.create().toJson(this); | ||
} | ||
|
||
} | ||
|
||
public static WxCpListParentResult fromJson(String json) { | ||
return WxCpGsonBuilder.create().fromJson(json, WxCpListParentResult.class); | ||
} | ||
|
||
public String toJson() { | ||
return WxCpGsonBuilder.create().toJson(this); | ||
} | ||
|
||
} |
98 changes: 98 additions & 0 deletions
98
weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/school/user/WxCpUserListResult.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,98 @@ | ||
package me.chanjar.weixin.cp.bean.school.user; | ||
|
||
import com.google.gson.annotations.SerializedName; | ||
import lombok.*; | ||
import lombok.experimental.Accessors; | ||
import me.chanjar.weixin.cp.bean.WxCpBaseResp; | ||
import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; | ||
|
||
import java.io.Serializable; | ||
import java.util.List; | ||
|
||
/** | ||
* 获取部门成员详情返回结果. | ||
* | ||
* @author Wang_Wong | ||
* @date 2022-07-13 | ||
*/ | ||
@Data | ||
@Builder | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
@Accessors(chain = true) | ||
public class WxCpUserListResult extends WxCpBaseResp implements Serializable { | ||
private static final long serialVersionUID = -4960239393895754138L; | ||
|
||
@SerializedName("students") | ||
private List<Student> students; | ||
|
||
@Setter | ||
@Getter | ||
@Builder | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
public static class Parent implements Serializable { | ||
|
||
@SerializedName("parent_userid") | ||
private String parentUserId; | ||
|
||
@SerializedName("relation") | ||
private String relation; | ||
|
||
@SerializedName("mobile") | ||
private String mobile; | ||
|
||
@SerializedName("external_userid") | ||
private String externalUserId; | ||
|
||
@SerializedName("is_subscribe") | ||
private Integer isSubscribe; | ||
|
||
public static Parent fromJson(String json) { | ||
return WxCpGsonBuilder.create().fromJson(json, Parent.class); | ||
} | ||
|
||
public String toJson() { | ||
return WxCpGsonBuilder.create().toJson(this); | ||
} | ||
|
||
} | ||
|
||
@Setter | ||
@Getter | ||
@Builder | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
public static class Student implements Serializable { | ||
|
||
@SerializedName("student_userid") | ||
private String studentUserId; | ||
|
||
@SerializedName("name") | ||
private String name; | ||
|
||
@SerializedName("department") | ||
private List<Integer> department; | ||
|
||
@SerializedName("parents") | ||
private List<Parent> parents; | ||
|
||
public static Student fromJson(String json) { | ||
return WxCpGsonBuilder.create().fromJson(json, Student.class); | ||
} | ||
|
||
public String toJson() { | ||
return WxCpGsonBuilder.create().toJson(this); | ||
} | ||
|
||
} | ||
|
||
public static WxCpUserListResult fromJson(String json) { | ||
return WxCpGsonBuilder.create().fromJson(json, WxCpUserListResult.class); | ||
} | ||
|
||
public String toJson() { | ||
return WxCpGsonBuilder.create().toJson(this); | ||
} | ||
|
||
} |
Oops, something went wrong.