forked from binarywang/WxJava
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
互联企业的消息推送接口返回字段类型和官网api不一致 binarywang#2148
- Loading branch information
pengg
committed
Jun 22, 2021
1 parent
6e6dab9
commit 11ee52f
Showing
3 changed files
with
41 additions
and
11 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
36 changes: 36 additions & 0 deletions
36
...a-cp/src/main/java/me/chanjar/weixin/cp/bean/message/WxCpLinkedCorpMessageSendResult.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,36 @@ | ||
package me.chanjar.weixin.cp.bean.message; | ||
|
||
import com.google.gson.annotations.SerializedName; | ||
import lombok.Getter; | ||
import lombok.Setter; | ||
import me.chanjar.weixin.cp.bean.WxCpBaseResp; | ||
import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; | ||
|
||
/** | ||
* 互联企业的消息推送接口返回实体 | ||
* | ||
* @author pg | ||
* @date 2021年6月22日 | ||
*/ | ||
@Setter | ||
@Getter | ||
public class WxCpLinkedCorpMessageSendResult extends WxCpBaseResp { | ||
private static final long serialVersionUID = 3990693822996824333L; | ||
|
||
@SerializedName("invaliduser") | ||
private String[] invaliduser; | ||
@SerializedName("invalidparty") | ||
private String[] invalidparty; | ||
@SerializedName("invalidtag") | ||
private String[] invalidtag; | ||
|
||
@Override | ||
public String toString() { | ||
return WxCpGsonBuilder.create().toJson(this); | ||
} | ||
|
||
public static WxCpLinkedCorpMessageSendResult fromJson(String json) { | ||
return WxCpGsonBuilder.create().fromJson(json, WxCpLinkedCorpMessageSendResult.class); | ||
} | ||
|
||
} |