Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
临时提交
  • Loading branch information
boris.bao committed Mar 22, 2021
commit 2f6538f02a7c04a4257d811de4c3c70f93ae5ed0
Original file line number Diff line number Diff line change
Expand Up @@ -377,4 +377,29 @@ public interface WxMaService extends WxService {
*/
WxImgProcService getImgProcService();

/**
* 返回小程序交易组件-售后服务接口
* @return
*/
WxMaShopAfterSaleService getShopAfterSaleService();


/**
* 返回小程序交易组件-物流服务接口
* @return
*/
WxMaShopDeliveryService getShopDeliveryService();


/**
* 返回小程序交易组件-订单服务接口
* @return
*/
WxMaShopOrderService getShopOrderService();

/**
* 返回小程序交易组件-spu商品服务接口
* @return
*/
WxMaShopSpuService getShopSpuService();
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package cn.binarywang.wx.miniapp.api;

/**
* 小程序交易组件-售后服务
*
* @author boris
*/
public interface WxMaShopAfterSaleService {

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package cn.binarywang.wx.miniapp.api;

/**
* 小程序交易组件-物流发货服务
*
* @author boris
*/
public interface WxMaShopDeliveryService {

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package cn.binarywang.wx.miniapp.api;

/**
* 小程序交易组件-订单服务
*
* @author boris
*/
public interface WxMaShopOrderService {

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package cn.binarywang.wx.miniapp.api;

/**
* 小程序交易组件-商品服务
*
* @author boris
*/
public interface WxMaShopSpuService {

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
package cn.binarywang.wx.miniapp.api.impl;

import cn.binarywang.wx.miniapp.api.WxMaService;
import cn.binarywang.wx.miniapp.api.WxMaShopAfterSaleService;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;

/**
* @author boris
*/
@RequiredArgsConstructor
@Slf4j
public class WxMaShopAfterSaleServiceImpl implements WxMaShopAfterSaleService {
private final WxMaService service;




}
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
package cn.binarywang.wx.miniapp.api.impl;

import cn.binarywang.wx.miniapp.api.WxMaService;
import cn.binarywang.wx.miniapp.api.WxMaShopDeliveryService;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;

/**
* @author boris
*/
@RequiredArgsConstructor
@Slf4j
public class WxMaShopDeliveryServiceImpl implements WxMaShopDeliveryService {
private final WxMaService service;

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
package cn.binarywang.wx.miniapp.api.impl;

import cn.binarywang.wx.miniapp.api.WxMaService;
import cn.binarywang.wx.miniapp.api.WxMaShopOrderService;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;

/**
* @author boris
*/
@RequiredArgsConstructor
@Slf4j
public class WxMaShopOrderServiceImpl implements WxMaShopOrderService {
private final WxMaService service;

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
package cn.binarywang.wx.miniapp.api.impl;

import cn.binarywang.wx.miniapp.api.WxMaService;
import cn.binarywang.wx.miniapp.api.WxMaShopSpuService;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;

/**
* @author boris
*/
@RequiredArgsConstructor
@Slf4j
public class WxMaShopSpuServiceImpl implements WxMaShopSpuService {

private final WxMaService service;

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package cn.binarywang.wx.miniapp.bean.shop;

import java.io.Serializable;

public class WxMaShopOrderInfo implements Serializable {

private static final long serialVersionUID = -159624260640727372L;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
package cn.binarywang.wx.miniapp.bean.shop;

import com.google.gson.annotations.SerializedName;
import java.io.Serializable;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
* <pre>
* sku对象
* </pre>
*
* @author <a href="https://github.com/borisbao">boris</a>
* @since 2021-03-22
*/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class WxMaShopSkuInfo implements Serializable {


private static final long serialVersionUID = -3617077838017818865L;

/**
* 商家自定义商品ID
* <pre>
* 是否必填: 是
* </pre>
*/
@SerializedName("out_product_id")
private String productId;

/**
* 商家自定义商品ID
* <pre>
* 是否必填: 是
* </pre>
*/
@SerializedName("out_sku_id")
private String skuId;


/**
* sku小图
* <pre>
* 是否必填: 是
* </pre>
*/
@SerializedName("thumb_img")
private String thumbImg;

/**
* 售卖价格,以分为单位
* <pre>
* 是否必填: 是
* </pre>
*/
@SerializedName("sale_price")
private Integer salePrice;

/**
* 售卖价格,以分为单位
* <pre>
* 是否必填: 是
* </pre>
*/
@SerializedName("market_price")
private Integer market_price;


/**
* 条形码
* <pre>
* 是否必填: 否
* </pre>
*/
@SerializedName("barcode")
private String barcode;


/**
* 商品编码
* <pre>
* 是否必填: 否
* </pre>
*/
@SerializedName("sku_code")
private String skuCode;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
package cn.binarywang.wx.miniapp.bean.shop;

import com.google.gson.annotations.SerializedName;
import java.util.List;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
* <pre>
* 交易组件-spu商品详情图文
* </pre>
* @author <a href="https://github.com/borisbao">boris</a>
* @since 2021-03-22
*/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class WxMaShopSpuDescInfo {

/**
* 商品详情图文-描述
* <pre>
* 是否必填: 否
* </pre>
*/
@SerializedName("desc")
private String desc;

/**
* 商品详情图片
* <pre>
* 是否必填: 否
* </pre>
*/
@SerializedName("imgs")
private List<String> imgList;

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package cn.binarywang.wx.miniapp.bean.shop;

import java.io.Serializable;

public class WxMaShopSpuInfo implements Serializable {

private static final long serialVersionUID = 7237829277693177420L;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
package cn.binarywang.wx.miniapp.bean.shop.request;

import java.io.Serializable;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
* <pre>
* 生成小商店订单
* </pre>
* @author <a href="https://github.com/borisbao">boris</a>
* @since 2021-03-22
*/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class WxMaShopAddOrderRequest implements Serializable {


}
Loading