-
-
Notifications
You must be signed in to change notification settings - Fork 8.7k
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
0af608f
commit a8232f6
Showing
4 changed files
with
70 additions
and
0 deletions.
There are no files selected for viewing
47 changes: 47 additions & 0 deletions
47
weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpTpAdmin.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,47 @@ | ||
package me.chanjar.weixin.cp.bean; | ||
|
||
import com.google.gson.annotations.SerializedName; | ||
import lombok.Data; | ||
import lombok.Getter; | ||
import lombok.Setter; | ||
import me.chanjar.weixin.common.util.json.WxGsonBuilder; | ||
import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; | ||
|
||
import java.util.List; | ||
|
||
/** | ||
* 应用的管理员 | ||
* @author huangxiaoming | ||
*/ | ||
@Data | ||
public class WxCpTpAdmin extends WxCpBaseResp { | ||
|
||
private static final long serialVersionUID = -5028321625140879571L; | ||
|
||
@SerializedName("admin") | ||
private List<Admin> admin; | ||
|
||
@Getter | ||
@Setter | ||
public static class Admin { | ||
|
||
@SerializedName("userid") | ||
private String userId; | ||
|
||
@SerializedName("auth_type") | ||
private Integer authType; | ||
|
||
public String toJson() { | ||
return WxGsonBuilder.create().toJson(this); | ||
} | ||
} | ||
|
||
public static WxCpTpAdmin fromJson(String json) { | ||
return WxCpGsonBuilder.create().fromJson(json, WxCpTpAdmin.class); | ||
} | ||
|
||
public String toJson() { | ||
return WxCpGsonBuilder.create().toJson(this); | ||
} | ||
|
||
} |
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