🎨 #1834 微信会员卡基本信息类增加缺少字段 use_limit

This commit is contained in:
Binary Wang 2020-10-31 20:40:49 +08:00
parent 7fdfe2ce7e
commit c584cd07d2
3 changed files with 16 additions and 3 deletions

View File

@ -14,6 +14,7 @@ import me.chanjar.weixin.mp.util.json.WxMpGsonBuilder;
*/ */
@Data @Data
public class BaseInfo implements Serializable { public class BaseInfo implements Serializable {
private static final long serialVersionUID = 4753535126193166020L;
/** /**
* 卡券的商户logo,建议像素为300*300. * 卡券的商户logo,建议像素为300*300.
@ -173,6 +174,12 @@ public class BaseInfo implements Serializable {
@SerializedName("get_limit") @SerializedName("get_limit")
private Integer getLimit = 1; private Integer getLimit = 1;
/**
* 每人可核销的数量限制,不填写默认为50.
*/
@SerializedName("use_limit")
private Integer useLimit = 50;
/** /**
* 卡券领取页面是否可分享,默认为true. * 卡券领取页面是否可分享,默认为true.
*/ */

View File

@ -14,6 +14,7 @@ import java.util.List;
*/ */
@Data @Data
public class BaseInfoUpdate implements Serializable { public class BaseInfoUpdate implements Serializable {
private static final long serialVersionUID = -7810188893073599733L;
/** /**
* 需要审核卡券名,字数上限为9个汉字 (建议涵盖卡券属性服务及金额). * 需要审核卡券名,字数上限为9个汉字 (建议涵盖卡券属性服务及金额).

View File

@ -3,16 +3,21 @@ package me.chanjar.weixin.mp.bean.card;
import com.google.gson.annotations.SerializedName; import com.google.gson.annotations.SerializedName;
import lombok.Data; import lombok.Data;
import java.io.Serializable;
/** /**
* @author yqx * @author yqx
* @date 2018/11/07 * @date 2018/11/07
*/ */
@Data @Data
public class CardUpdateResult { public class CardUpdateResult implements Serializable {
private static final long serialVersionUID = 6049989267790615497L;
private int errcode; @SerializedName("errcode")
private int errCode;
private String errmsg; @SerializedName("errmsg")
private String errMsg;
/** /**
* 此次更新是否需要提审true为需要false为不需要 * 此次更新是否需要提审true为需要false为不需要