-
-
Notifications
You must be signed in to change notification settings - Fork 8.9k
face(小程序): 订单接口,新增获取订单列表,生成支付参数接口 #2650
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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
39 changes: 39 additions & 0 deletions
39
...-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/bean/shop/WxMaShopPromotionInfo.java
This file contains hidden or 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,39 @@ | ||
package cn.binarywang.wx.miniapp.bean.shop; | ||
|
||
import com.google.gson.annotations.SerializedName; | ||
import lombok.Data; | ||
|
||
import java.io.Serializable; | ||
|
||
/** | ||
* 推广员、分享员信息 | ||
* | ||
* @author zhongjun | ||
* @date 2022/5/17 | ||
**/ | ||
@Data | ||
binarywang marked this conversation as resolved.
Show resolved
Hide resolved
|
||
public class WxMaShopPromotionInfo implements Serializable { | ||
private static final long serialVersionUID = -812058443344709898L; | ||
/** | ||
* 推广员唯一ID | ||
*/ | ||
@SerializedName("promoter_id") | ||
private String promoterId; | ||
binarywang marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
/** | ||
* 推广员视频号昵称 | ||
*/ | ||
@SerializedName("finder_nickname") | ||
private String finderNickname; | ||
binarywang marked this conversation as resolved.
Show resolved
Hide resolved
|
||
/** | ||
* 推广员openid | ||
*/ | ||
@SerializedName("promoter_openid") | ||
private String promoterOpenid; | ||
binarywang marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
/** | ||
* 分享员openid | ||
*/ | ||
@SerializedName("sharer_openid") | ||
private String sharerOpenid; | ||
} |
30 changes: 30 additions & 0 deletions
30
...c/main/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopGetOrderListResponse.java
This file contains hidden or 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,30 @@ | ||
package cn.binarywang.wx.miniapp.bean.shop.response; | ||
|
||
import cn.binarywang.wx.miniapp.bean.shop.WxMaShopOrderResult; | ||
import com.google.gson.annotations.SerializedName; | ||
import lombok.Data; | ||
import lombok.EqualsAndHashCode; | ||
|
||
import java.io.Serializable; | ||
|
||
/** | ||
* @author leiin | ||
* @date 2021/3/23 | ||
*/ | ||
@Data | ||
@EqualsAndHashCode(callSuper = true) | ||
public class WxMaShopGetOrderListResponse extends WxMaShopBaseResponse implements Serializable { | ||
private static final long serialVersionUID = -81207907908726897L; | ||
|
||
/** | ||
* 订单满足条件的总数 | ||
*/ | ||
@SerializedName("total_num") | ||
private Integer totalNum; | ||
|
||
/** | ||
* 订单列表 | ||
*/ | ||
@SerializedName("order") | ||
private WxMaShopOrderResult order; | ||
} |
41 changes: 41 additions & 0 deletions
41
...in/java/cn/binarywang/wx/miniapp/bean/shop/response/WxMaShopGetPaymentParamsResponse.java
This file contains hidden or 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,41 @@ | ||
package cn.binarywang.wx.miniapp.bean.shop.response; | ||
|
||
import com.google.gson.annotations.SerializedName; | ||
import lombok.Data; | ||
import lombok.EqualsAndHashCode; | ||
import lombok.Getter; | ||
import lombok.Setter; | ||
|
||
import java.io.Serializable; | ||
|
||
/** | ||
* 生成支付参数响应 | ||
* | ||
* @author zhongjun | ||
* @date 2022/5/17 | ||
**/ | ||
@Data | ||
@EqualsAndHashCode(callSuper = true) | ||
public class WxMaShopGetPaymentParamsResponse extends WxMaShopBaseResponse implements Serializable { | ||
private static final long serialVersionUID = -8796836131438585559L; | ||
|
||
@SerializedName("payment_params") | ||
private PaymentParams paymentParams; | ||
|
||
@Getter | ||
@Setter | ||
public static class PaymentParams { | ||
|
||
private String timeStamp; | ||
|
||
private String nonceStr; | ||
|
||
@SerializedName("package") | ||
private String packageValue; | ||
|
||
private String signType; | ||
|
||
private String paySign; | ||
} | ||
|
||
} |
This file contains hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.