-
Notifications
You must be signed in to change notification settings - Fork 446
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
Kit
committed
Sep 12, 2019
1 parent
674ae6f
commit b20e09c
Showing
16 changed files
with
2,171 additions
and
41 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
183 changes: 183 additions & 0 deletions
183
weixin4j-base/src/main/java/com/foxinmy/weixin4j/model/card/CardInfo.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,183 @@ | ||
package com.foxinmy.weixin4j.model.card; | ||
|
||
import com.alibaba.fastjson.annotation.JSONField; | ||
|
||
/** | ||
* 已领取的礼品卡信息 | ||
* 用于查询用户的礼品卡信息时,作为参数或返回对象 | ||
* | ||
* @author kit (kit@muses.cc) | ||
* @date 2018-11-23 | ||
*/ | ||
public class CardInfo { | ||
/** | ||
* 礼品卡的code | ||
*/ | ||
private String code; | ||
/** | ||
* 礼品卡的card_id | ||
*/ | ||
@JSONField(name = "card_id") | ||
private String cardId; | ||
/** | ||
* 生效时间 | ||
*/ | ||
@JSONField(name = "begin_time") | ||
private long beginTime; | ||
/** | ||
* 结束时间 | ||
*/ | ||
@JSONField(name = "end_time") | ||
private long endTime; | ||
/** | ||
* 当前的余额额度 | ||
*/ | ||
private int balance; | ||
/** | ||
* 礼品卡卡面显示的卡号,若没设置则与code相同 | ||
*/ | ||
@JSONField(name = "card_number") | ||
private String cardNumber; | ||
/** | ||
* 用于支持商家激活时针对单个礼品卡分配自定义的礼品卡背景。 | ||
*/ | ||
@JSONField(name = "background_pic_url") | ||
private String backgroundPicUrl; | ||
/** | ||
* 自定义金额消耗记录,不超过14个汉字。 | ||
*/ | ||
@JSONField(name = "record_balance") | ||
private String recordBalance; | ||
/** | ||
* 创建时字段custom_field1定义类型的最新数值,限制为4个汉字,12字节。 | ||
*/ | ||
@JSONField(name = "custom_field_value1") | ||
private String customFieldValue1; | ||
/** | ||
* 创建时字段custom_field2定义类型的最新数值,限制为4个汉字,12字节。 | ||
*/ | ||
@JSONField(name = "custom_field_value2") | ||
private String customFieldValue2; | ||
/** | ||
* 创建时字段custom_field3定义类型的最新数值,限制为4个汉字,12字节。 | ||
*/ | ||
@JSONField(name = "custom_field_value3") | ||
private String customFieldValue3; | ||
/** | ||
* 控制本次积分变动后转赠入口是否出现 | ||
*/ | ||
@JSONField(name = "can_give_friend") | ||
private Boolean canGiveFriend; | ||
/** | ||
* 该卡的价格 | ||
*/ | ||
private int price; | ||
/** | ||
* 祝福语 | ||
*/ | ||
@JSONField(name = "default_gifting_msg") | ||
private String defaultGiftingMsg; | ||
|
||
public String getCode() { | ||
return code; | ||
} | ||
|
||
public void setCode(String code) { | ||
this.code = code; | ||
} | ||
|
||
public String getCardId() { | ||
return cardId; | ||
} | ||
|
||
public void setCardId(String cardId) { | ||
this.cardId = cardId; | ||
} | ||
|
||
public long getBeginTime() { | ||
return beginTime; | ||
} | ||
|
||
public void setBeginTime(long beginTime) { | ||
this.beginTime = beginTime; | ||
} | ||
|
||
public long getEndTime() { | ||
return endTime; | ||
} | ||
|
||
public void setEndTime(long endTime) { | ||
this.endTime = endTime; | ||
} | ||
|
||
public int getBalance() { | ||
return balance; | ||
} | ||
|
||
public void setBalance(int balance) { | ||
this.balance = balance; | ||
} | ||
|
||
public String getCardNumber() { | ||
return cardNumber; | ||
} | ||
|
||
public void setCardNumber(String cardNumber) { | ||
this.cardNumber = cardNumber; | ||
} | ||
|
||
public String getBackgroundPicUrl() { | ||
return backgroundPicUrl; | ||
} | ||
|
||
public void setBackgroundPicUrl(String backgroundPicUrl) { | ||
this.backgroundPicUrl = backgroundPicUrl; | ||
} | ||
|
||
public String getRecordBalance() { | ||
return recordBalance; | ||
} | ||
|
||
public void setRecordBalance(String recordBalance) { | ||
this.recordBalance = recordBalance; | ||
} | ||
|
||
public String getCustomFieldValue1() { | ||
return customFieldValue1; | ||
} | ||
|
||
public void setCustomFieldValue1(String customFieldValue1) { | ||
this.customFieldValue1 = customFieldValue1; | ||
} | ||
|
||
public String getCustomFieldValue2() { | ||
return customFieldValue2; | ||
} | ||
|
||
public void setCustomFieldValue2(String customFieldValue2) { | ||
this.customFieldValue2 = customFieldValue2; | ||
} | ||
|
||
public String getCustomFieldValue3() { | ||
return customFieldValue3; | ||
} | ||
|
||
public void setCustomFieldValue3(String customFieldValue3) { | ||
this.customFieldValue3 = customFieldValue3; | ||
} | ||
|
||
public Boolean getCanGiveFriend() { | ||
return canGiveFriend; | ||
} | ||
|
||
public void setCanGiveFriend(Boolean canGiveFriend) { | ||
this.canGiveFriend = canGiveFriend; | ||
} | ||
|
||
public void CardItem(){} | ||
|
||
public void CardItem(String code, String cardId){ | ||
this.code = code; | ||
this.cardId = cardId; | ||
} | ||
} |
77 changes: 77 additions & 0 deletions
77
weixin4j-base/src/main/java/com/foxinmy/weixin4j/model/card/CardItem.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,77 @@ | ||
package com.foxinmy.weixin4j.model.card; | ||
|
||
import com.alibaba.fastjson.annotation.JSONField; | ||
|
||
/** | ||
* 礼品卡货架主题内的礼品卡描述项 | ||
* | ||
* @author kit(kit.li@qq.com) | ||
* @date 2018年10月30日 | ||
*/ | ||
public class CardItem { | ||
/** | ||
* 待上架的card_id | ||
*/ | ||
@JSONField(name = "card_id") | ||
private String cardId; | ||
/** | ||
* 商品名,不填写默认为卡名称 | ||
*/ | ||
private String title; | ||
/** | ||
* 商品缩略图,1000像素*600像素以下 | ||
*/ | ||
@JSONField(name = "pic_url") | ||
private String picUrl; | ||
/** | ||
* 商品简介 | ||
*/ | ||
private String desc; | ||
|
||
public CardItem(){ | ||
|
||
} | ||
|
||
public CardItem(String cardId) { | ||
this.cardId = cardId; | ||
} | ||
|
||
public CardItem(String cardId, String title, String picUrl, String desc) { | ||
this.cardId = cardId; | ||
this.title = title; | ||
this.picUrl = picUrl; | ||
this.desc = desc; | ||
} | ||
|
||
public String getCardId() { | ||
return cardId; | ||
} | ||
|
||
public String getTitle() { | ||
return title; | ||
} | ||
|
||
public String getPicUrl() { | ||
return picUrl; | ||
} | ||
|
||
public String getDesc() { | ||
return desc; | ||
} | ||
|
||
public void setCardId(String cardId) { | ||
this.cardId = cardId; | ||
} | ||
|
||
public void setTitle(String title) { | ||
this.title = title; | ||
} | ||
|
||
public void setPicUrl(String picUrl) { | ||
this.picUrl = picUrl; | ||
} | ||
|
||
public void setDesc(String desc) { | ||
this.desc = desc; | ||
} | ||
} |
Oops, something went wrong.