卡券接口代码提出单独类中维护,并添加单元测试

This commit is contained in:
BinaryWang
2016-07-28 09:52:19 +08:00
parent b1f0b0787a
commit 47c8c081ba
7 changed files with 574 additions and 425 deletions

View File

@@ -1,6 +1,8 @@
package me.chanjar.weixin.mp.bean.result;
import me.chanjar.weixin.mp.bean.WxMpCard;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import java.io.Serializable;
@@ -58,14 +60,7 @@ public class WxMpCardResult implements Serializable {
@Override
public String toString() {
return "WxMpCardResult{" +
"errorCode='" + errorCode + '\'' +
", errorMsg='" + errorMsg + '\'' +
", openId='" + openId + '\'' +
", card=" + card +
", userCardStatus='" + userCardStatus + '\'' +
", canConsume=" + canConsume +
'}';
return ToStringBuilder.reflectionToString(this, ToStringStyle.JSON_STYLE);
}
public String getUserCardStatus() {