-
-
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
3f42a16
commit e785b1f
Showing
16 changed files
with
681 additions
and
14 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
34 changes: 34 additions & 0 deletions
34
weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaShopAfterSaleService.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 |
---|---|---|
@@ -1,10 +1,44 @@ | ||
package cn.binarywang.wx.miniapp.api; | ||
|
||
import cn.binarywang.wx.miniapp.bean.shop.request.WxMaShopAfterSaleAddRequest; | ||
import cn.binarywang.wx.miniapp.bean.shop.request.WxMaShopAfterSaleGetRequest; | ||
import cn.binarywang.wx.miniapp.bean.shop.request.WxMaShopAfterSaleUpdateRequest; | ||
import cn.binarywang.wx.miniapp.bean.shop.response.WxMaShopAfterSaleGetResponse; | ||
import cn.binarywang.wx.miniapp.bean.shop.response.WxMaShopBaseResponse; | ||
import me.chanjar.weixin.common.error.WxErrorException; | ||
|
||
/** | ||
* 小程序交易组件-售后服务 | ||
* | ||
* @author boris | ||
* @author liming1019 | ||
*/ | ||
public interface WxMaShopAfterSaleService { | ||
/** | ||
* 创建售后 | ||
* | ||
* @param request | ||
* @return WxMaShopBaseResponse | ||
* @throws WxErrorException | ||
*/ | ||
WxMaShopBaseResponse add(WxMaShopAfterSaleAddRequest request) throws WxErrorException; | ||
|
||
/** | ||
* 获取订单下售后单 | ||
* | ||
* @param request | ||
* @return WxMaShopAfterSaleGetResponse | ||
* @throws WxErrorException | ||
*/ | ||
WxMaShopAfterSaleGetResponse get(WxMaShopAfterSaleGetRequest request) throws WxErrorException; | ||
|
||
/** | ||
* 更新售后 | ||
* | ||
* @param request | ||
* @return WxMaShopBaseResponse | ||
* @throws WxErrorException | ||
*/ | ||
WxMaShopBaseResponse update(WxMaShopAfterSaleUpdateRequest request) throws WxErrorException; | ||
|
||
} |
32 changes: 32 additions & 0 deletions
32
weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaShopDeliveryService.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 |
---|---|---|
@@ -1,10 +1,42 @@ | ||
package cn.binarywang.wx.miniapp.api; | ||
|
||
import cn.binarywang.wx.miniapp.bean.shop.request.WxMaShopDeliveryRecieveRequest; | ||
import cn.binarywang.wx.miniapp.bean.shop.request.WxMaShopDeliverySendRequest; | ||
import cn.binarywang.wx.miniapp.bean.shop.response.WxMaShopBaseResponse; | ||
import cn.binarywang.wx.miniapp.bean.shop.response.WxMaShopDeliveryGetCompanyListResponse; | ||
import me.chanjar.weixin.common.error.WxErrorException; | ||
|
||
/** | ||
* 小程序交易组件-物流发货服务 | ||
* | ||
* @author boris | ||
* @author liming1019 | ||
*/ | ||
public interface WxMaShopDeliveryService { | ||
/** | ||
* 获取快递公司列表 | ||
* | ||
* @return WxMaShopDeliveryGetCompanyListResponse | ||
* @throws WxErrorException | ||
*/ | ||
WxMaShopDeliveryGetCompanyListResponse getCompanyList() throws WxErrorException; | ||
|
||
/** | ||
* 订单发货 | ||
* | ||
* @param request | ||
* @return WxMaShopBaseResponse | ||
* @throws WxErrorException | ||
*/ | ||
WxMaShopBaseResponse send(WxMaShopDeliverySendRequest request) throws WxErrorException; | ||
|
||
/** | ||
* 订单确认收货 | ||
* | ||
* @param request | ||
* @return WxMaShopBaseResponse | ||
* @throws WxErrorException | ||
*/ | ||
WxMaShopBaseResponse receive(WxMaShopDeliveryRecieveRequest request) throws WxErrorException; | ||
|
||
} |
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
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
69 changes: 69 additions & 0 deletions
69
...src/main/java/cn/binarywang/wx/miniapp/bean/shop/request/WxMaShopAfterSaleAddRequest.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,69 @@ | ||
package cn.binarywang.wx.miniapp.bean.shop.request; | ||
|
||
import com.google.gson.annotations.SerializedName; | ||
import lombok.Builder; | ||
import lombok.Data; | ||
|
||
import java.io.Serializable; | ||
import java.util.List; | ||
|
||
/** | ||
* @author liming1019 | ||
* @date 2021/8/12 | ||
*/ | ||
@Data | ||
@Builder | ||
public class WxMaShopAfterSaleAddRequest implements Serializable { | ||
private static final long serialVersionUID = 6652525413062887786L; | ||
|
||
/** | ||
* out_order_id : xxxxx | ||
* out_aftersale_id : xxxxxx | ||
* openid : oTVP50O53a7jgmawAmxKukNlq3XI | ||
* type : 1 | ||
* create_time : 2020-12-01 00:00:00 | ||
* status : 1 | ||
* finish_all_aftersale : 0 | ||
* path : /pages/aftersale.html?out_aftersale_id=xxxxx | ||
* refund : 100 | ||
* product_infos : [{"out_product_id":"234245","out_sku_id":"23424","product_cnt":5}] | ||
*/ | ||
|
||
@SerializedName("out_order_id") | ||
private String outOrderId; | ||
@SerializedName("out_aftersale_id") | ||
private String outAftersaleId; | ||
@SerializedName("openid") | ||
private String openid; | ||
@SerializedName("type") | ||
private Integer type; | ||
@SerializedName("create_time") | ||
private String createTime; | ||
@SerializedName("status") | ||
private Integer status; | ||
@SerializedName("finish_all_aftersale") | ||
private Integer finishAllAftersale; | ||
@SerializedName("path") | ||
private String path; | ||
@SerializedName("refund") | ||
private Long refund; | ||
@SerializedName("product_infos") | ||
private List<ProductInfosBean> productInfos; | ||
|
||
@Data | ||
@Builder | ||
public static class ProductInfosBean implements Serializable { | ||
/** | ||
* out_product_id : 234245 | ||
* out_sku_id : 23424 | ||
* product_cnt : 5 | ||
*/ | ||
|
||
@SerializedName("out_product_id") | ||
private String outProductId; | ||
@SerializedName("out_sku_id") | ||
private String outSkuId; | ||
@SerializedName("product_cnt") | ||
private Integer productCnt; | ||
} | ||
} |
Oops, something went wrong.