-
-
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
24619d6
commit 58faf5a
Showing
5 changed files
with
93 additions
and
38 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
25 changes: 25 additions & 0 deletions
25
weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/card/BaseWxMpCardResult.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,25 @@ | ||
package me.chanjar.weixin.mp.bean.card; | ||
|
||
import java.io.Serializable; | ||
|
||
/** | ||
* @description 卡券返回结果基础类 | ||
* @author: fanxl | ||
* @date: 2019/1/22 0022 10:08 | ||
*/ | ||
public class BaseWxMpCardResult implements Serializable { | ||
|
||
/** | ||
* 错误码 | ||
*/ | ||
private Integer errcode; | ||
|
||
/** | ||
* 错误信息 | ||
*/ | ||
private String errmsg; | ||
|
||
public boolean isSuccess() { | ||
return 0 == errcode; | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/card/WxMpCardDeleteResult.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,21 @@ | ||
package me.chanjar.weixin.mp.bean.card; | ||
|
||
import me.chanjar.weixin.mp.util.json.WxMpGsonBuilder; | ||
|
||
/** | ||
* @description 删除卡券结果 | ||
* @author: fanxl | ||
* @date: 2019/1/22 0022 10:24 | ||
*/ | ||
public class WxMpCardDeleteResult extends BaseWxMpCardResult { | ||
|
||
public static WxMpCardDeleteResult fromJson(String json) { | ||
return WxMpGsonBuilder.create().fromJson(json, WxMpCardDeleteResult.class); | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return WxMpGsonBuilder.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