diff --git a/.gitignore b/.gitignore
index 84e9aa9132f0c0265e2392819ea119109f5da22a..fec6cd2a0fac6089b747672bdbc9e52f32618cea 100644
--- a/.gitignore
+++ b/.gitignore
@@ -30,3 +30,4 @@ build/
### VS Code ###
.vscode/
+/target/
diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml
index 6560a98983ec708cf9d8b5c5c3776d7bd39c475b..71b8943f02cbbca19c2a44cc6e787b1991c2a6a1 100644
--- a/.idea/inspectionProfiles/Project_Default.xml
+++ b/.idea/inspectionProfiles/Project_Default.xml
@@ -32,5 +32,9 @@
+
+
+
+
\ No newline at end of file
diff --git a/pom.xml b/pom.xml
index 4d8128e3087dac4c014e9de0e3c04d27756cb84a..0e53d1f37248048a84110322950d71d2a88208f2 100644
--- a/pom.xml
+++ b/pom.xml
@@ -15,6 +15,8 @@
2.3.1.RELEASE
+ jar
+
1.8
1.8
diff --git a/src/main/java/com/moming/douapisdk/Constants.java b/src/main/java/com/moming/douapisdk/Constants.java
index 4dca901ceb8f94ba57e4e97186a52fb7952fbae1..67ddf27aff401b729f6a0a6fd0523c587b8fa128 100644
--- a/src/main/java/com/moming/douapisdk/Constants.java
+++ b/src/main/java/com/moming/douapisdk/Constants.java
@@ -4,50 +4,58 @@ package com.moming.douapisdk;
* @author tianzong
* @date 2020/7/21
*/
-public class Constants {
+public interface Constants {
/** 协议入参共享参数 **/
- public static final String APP_KEY = "app_key";
- public static final String METHOD = "method";
- public static final String TIMESTAMP = "timestamp";
- public static final String VERSION = "v";
- public static final String SIGN = "sign";
- public static final String ACCESS_TOKEN = "access_token";
- public static final String PARAM_JSON = "param_json";
+ String APP_KEY = "app_key";
+ String METHOD = "method";
+ String TIMESTAMP = "timestamp";
+ String VERSION = "v";
+ String SIGN = "sign";
+ String ACCESS_TOKEN = "access_token";
+ String PARAM_JSON = "param_json";
- public static final String AUTHORIZATION_CODE = "authorization_code";
+ /**
+ * 授权类型:工具型授权
+ */
+ String AUTHORIZATION_CODE = "authorization_code";
+
+ /**
+ * 授权类型:自用型授权
+ */
+ String AUTHORIZATION_SELF = "authorization_self";
- public static final String REFRESH_GRANT_TYPE = "refresh_token";
+ String REFRESH_GRANT_TYPE = "refresh_token";
/**
* 授权访问地址
*/
- public static final String AUTHORIZATION_PATH = "/oauth2/access_token";
+ String AUTHORIZATION_PATH = "/oauth2/access_token";
/**
* 刷新token的地址
*/
- public static final String REFRESH_TOKEN_PATH = "/oauth2/refresh_token";
+ String REFRESH_TOKEN_PATH = "/oauth2/refresh_token";
/** 协议出参共享参数 */
- public static final String ERROR_CODE = "err_no";
- public static final String ERROR_MSG = "message";
+ String ERROR_CODE = "err_no";
+ String ERROR_MSG = "message";
/** 默认时间格式 **/
- public static final String DATE_TIME_FORMAT = "yyyy-MM-dd HH:mm:ss";
+ String DATE_TIME_FORMAT = "yyyy-MM-dd HH:mm:ss";
/** Date默认时区 **/
- public static final String DATE_TIMEZONE = "GMT+8";
+ String DATE_TIMEZONE = "GMT+8";
/** UTF-8字符集 **/
- public static final String CHARSET_UTF8 = "UTF-8";
+ String CHARSET_UTF8 = "UTF-8";
/** HTTP请求相关 **/
- public static final String METHOD_POST = "POST";
- public static final String METHOD_GET = "GET";
- public static final String CTYPE_FORM_DATA = "application/x-www-form-urlencoded";
- public static final String CTYPE_FILE_UPLOAD = "multipart/form-data";
- public static final String CTYPE_TEXT_XML = "text/xml";
- public static final String CTYPE_APPLICATION_XML = "application/xml";
- public static final String CTYPE_TEXT_PLAIN = "text/plain";
- public static final String CTYPE_APP_JSON = "application/json";
+ String METHOD_POST = "POST";
+ String METHOD_GET = "GET";
+ String C_TYPE_FORM_DATA = "application/x-www-form-urlencoded";
+ String C_TYPE_FILE_UPLOAD = "multipart/form-data";
+ String C_TYPE_TEXT_XML = "text/xml";
+ String C_TYPE_APPLICATION_XML = "application/xml";
+ String C_TYPE_TEXT_PLAIN = "text/plain";
+ String C_TYPE_APP_JSON = "application/json";
}
diff --git a/src/main/java/com/moming/douapisdk/DefaultDouYinClient.java b/src/main/java/com/moming/douapisdk/DefaultDouYinClient.java
index 1cebe083208d1d6e5d5c927cbf7c387d2b12c6c3..53e71b41713a6a8243db763b1ff9ae1e987d0d66 100644
--- a/src/main/java/com/moming/douapisdk/DefaultDouYinClient.java
+++ b/src/main/java/com/moming/douapisdk/DefaultDouYinClient.java
@@ -10,7 +10,6 @@ import com.moming.douapisdk.internal.util.RequestParametersHolder;
import com.moming.douapisdk.response.OauthResponse;
import lombok.Data;
import lombok.extern.log4j.Log4j2;
-import org.yaml.snakeyaml.scanner.Constant;
import java.io.IOException;
import java.util.Date;
@@ -19,6 +18,8 @@ import java.util.Map;
import java.util.Objects;
/**
+ * 抖音客户端
+ *
* @author tianzong
* @date 2020/7/21
*/
@@ -76,30 +77,40 @@ public class DefaultDouYinClient implements DouYinClient {
*/
@Override
public T execute(DouYinRequest request, String accessToken) throws ApiException {
- return _execute(request, accessToken);
+ return executeInternal(request, accessToken);
}
/**
- * oauth2.0授权
+ * 工具型应用授权
+ * code换token
+ *
+ *
+ * @link https://op.jinritemai.com/docs/guide-docs/9/22
* @param code code授权码
- * @return
+ * @return 获取token
*/
public OauthResponse code2Access(String code) throws ApiException {
DouYinHashMap appParams = new DouYinHashMap();
appParams.put("app_id", this.appKey);
appParams.put("app_secret", this.appSecret);
- appParams.put("code", code);
- appParams.put("grant_type", Constants.AUTHORIZATION_CODE);
+ if (code != null) {
+ appParams.put("code", code);
+ }
+ appParams.put("grant_type", code == null
+ ? Constants.AUTHORIZATION_SELF
+ : Constants.AUTHORIZATION_CODE);
OauthResponse tsr;
String url = null;
try {
- url = resolveApiUrl(Constants.AUTHORIZATION_PATH, appParams);
+ url = buildApiUrl(Constants.AUTHORIZATION_PATH, appParams);
log.info(" 换取token的url : {} ", url);
String body = HttpClientHelper.httpGet(url);
tsr = JSONObject.parseObject(body, OauthResponse.class);
if (tsr == null) {
tsr = new OauthResponse();
}
+ tsr.setBody(body);
+ tsr.setParams(appParams);
tsr.setRequestUrl(url);
} catch (Exception e) {
log.error("code2Access出现异常,url--{}", url == null ? "" : url, e);
@@ -109,12 +120,22 @@ public class DefaultDouYinClient implements DouYinClient {
}
+ /**
+ * 自用型应用授权
+ *
+ * @link https://op.jinritemai.com/docs/guide-docs/9/21
+ * @return 获取token
+ */
+ public OauthResponse code2Access() {
+ return code2Access(null);
+ }
+
/**
* 刷新AccessToken
*
- * @param refreshToken
- * @return
- * @throws ApiException
+ * @param refreshToken 刷新token
+ * @return 新的oauth信息
+ * @throws ApiException api结果
*/
public OauthResponse refreshAccessToken(String refreshToken) throws ApiException {
Objects.requireNonNull(refreshToken);
@@ -126,7 +147,7 @@ public class DefaultDouYinClient implements DouYinClient {
OauthResponse tsr;
String url = null;
try {
- url = resolveApiUrl(Constants.REFRESH_TOKEN_PATH, appParams);
+ url = buildApiUrl(Constants.REFRESH_TOKEN_PATH, appParams);
log.info(" 刷新AccessToken的url : {} ", url);
String body = HttpClientHelper.httpGet(url);
tsr = JSONObject.parseObject(body, OauthResponse.class);
@@ -141,17 +162,27 @@ public class DefaultDouYinClient implements DouYinClient {
return tsr;
}
- private T _execute(DouYinRequest request, String accessToken) throws ApiException {
- long start = System.currentTimeMillis();
-
- // 构建响应解释器
+ /**
+ * 执行调用
+ *
+ * @param request 请求类型
+ * @param accessToken token
+ * @param 具体请求接口
+ * @return 返回数据
+ * @throws ApiException api调用异常
+ */
+ private T executeInternal(DouYinRequest request, String accessToken)
+ throws ApiException {
// 调用api
- RequestParametersHolder requestHolder = invokeApi(request, accessToken, start);
+ RequestParametersHolder requestHolder = invokeApiInternal(request, accessToken);
T tsr = null;
+
// 解析结果
try {
+
+ // 构建响应解释器
tsr = parseBody(requestHolder, request);
if (tsr.hasError()) {
@@ -159,10 +190,13 @@ public class DefaultDouYinClient implements DouYinClient {
}
} catch (Exception e) {
- log.error("调用api接口发生错误,错误ErrorNo---{}, 错误Message---{}, 请求的Url--{}",
- tsr.getErrNo(),
- tsr.getMessage(),
- tsr.getRequestUrl());
+
+ if (tsr != null) {
+ log.error("调用api接口发生错误,错误ErrorNo---{}, 错误Message---{}, 请求的Url--{}",
+ tsr.getErrNo(),
+ tsr.getMessage(),
+ tsr.getRequestUrl());
+ }
throw new ApiException(e);
}
@@ -170,7 +204,17 @@ public class DefaultDouYinClient implements DouYinClient {
return tsr;
}
- private T parseBody(RequestParametersHolder requestHolder, DouYinRequest request) throws IllegalAccessException, InstantiationException {
+ /**
+ * 解析接口返回数据
+ * @param requestHolder 请求参数
+ * @param request 请求数据
+ * @param 返回对象
+ * @return 结果
+ * @throws IllegalAccessException 异常
+ * @throws InstantiationException 异常
+ */
+ private T parseBody(RequestParametersHolder requestHolder, DouYinRequest request)
+ throws IllegalAccessException, InstantiationException {
T tsr = JSONObject.parseObject(requestHolder.getResponseBody(), request.getResponseClass());
@@ -185,15 +229,18 @@ public class DefaultDouYinClient implements DouYinClient {
return tsr;
}
- private RequestParametersHolder invokeApi(DouYinRequest request, String session, long start) throws ApiException {
+ private RequestParametersHolder invokeApiInternal(
+ DouYinRequest request, String session)
+ throws ApiException {
RequestDTO requestDTO = new RequestDTO();
requestDTO.setTextParams(request.getTextParams());
requestDTO.setApiMethodName(request.getApiMethodName());
requestDTO.setApiUrl(request.getApiUrl());
- return invokeApi(requestDTO, session, start);
+ return invokeApiInternal(requestDTO, session);
}
- protected RequestParametersHolder invokeApi(RequestDTO request, String accessToken, long start) throws ApiException{
+ protected RequestParametersHolder invokeApiInternal(RequestDTO request, String accessToken)
+ throws ApiException{
RequestParametersHolder requestHolder = new RequestParametersHolder();
if (request.getTextParams() == null) {
@@ -226,7 +273,7 @@ public class DefaultDouYinClient implements DouYinClient {
protocolParams.put(Constants.ACCESS_TOKEN, accessToken);
try {
// 调用httpClient处理
- String url = resolveApiUrl(request.getApiUrl(), requestHolder.getProtocolParams());
+ String url = buildApiUrl(request.getApiUrl(), requestHolder.getProtocolParams());
log.info(" 请求API接口; url : {} ", url);
requestHolder.setRequestUrl(url);
String body = HttpClientHelper.httpGet(url);
@@ -240,7 +287,15 @@ public class DefaultDouYinClient implements DouYinClient {
return requestHolder;
}
- private String resolveApiUrl(String apiUrl, Map params) throws IOException {
+ /**
+ * 组合请求api
+ *
+ * @param apiUrl api地址
+ * @param params 参数
+ * @return url
+ * @throws IOException io异常
+ */
+ private String buildApiUrl(String apiUrl, Map params) throws IOException {
return this.serverUrl
+ apiUrl
+ "?"
diff --git a/src/main/java/com/moming/douapisdk/DouYinRequest.java b/src/main/java/com/moming/douapisdk/DouYinRequest.java
index dfdf662a257c8a455f568db73f65dd8871e92d56..ce6e1294da5464951f639cf9546182b02dcddca4 100644
--- a/src/main/java/com/moming/douapisdk/DouYinRequest.java
+++ b/src/main/java/com/moming/douapisdk/DouYinRequest.java
@@ -4,6 +4,7 @@ import java.util.Map;
/**
* Api请求接口
+ *
* @author tianzong
* @date 2020/7/23
*/
@@ -13,13 +14,13 @@ public interface DouYinRequest {
* 获取api的url地址
* @return url地址
*/
- public String getApiUrl();
+ String getApiUrl();
/**
* 获取API的名称
* @return API名称
*/
- public String getApiMethodName();
+ String getApiMethodName();
/**
* 获取所有的key-value形式的文本请求参数集合,其中:
@@ -29,11 +30,11 @@ public interface DouYinRequest {
*
* @return 文本请求参数集合
*/
- public Map getTextParams();
+ Map getTextParams();
/**
* 获取具体响应实现类的定义。
* @return 获取具体响应实现类的定义。
*/
- public Class getResponseClass();
+ Class getResponseClass();
}
diff --git a/src/main/java/com/moming/douapisdk/domain/AfterSale.java b/src/main/java/com/moming/douapisdk/domain/AfterSale.java
new file mode 100644
index 0000000000000000000000000000000000000000..f837fc2f0f0a37db9f18b6ea56fcf11b1cf1b509
--- /dev/null
+++ b/src/main/java/com/moming/douapisdk/domain/AfterSale.java
@@ -0,0 +1,389 @@
+package com.moming.douapisdk.domain;
+
+import com.alibaba.fastjson.annotation.JSONField;
+import lombok.Data;
+
+import java.io.Serializable;
+import java.util.List;
+
+/**
+ * @author lujingpo
+ * @date 2021/2/1
+ */
+@Data
+public class AfterSale implements Serializable {
+ private static final long serialVersionUID = -1628730831208323973L;
+ /**
+ * 订单号
+ */
+ @JSONField(name = "order_id")
+ private Long orderId;
+
+ /**
+ * 售后单号
+ */
+ @JSONField(name = "aftersale_id")
+ private Long afterSaleId;
+
+ /**
+ * 申请售后时间
+ */
+ @JSONField(name = "apply_time")
+ private String applyTime;
+
+ /**
+ * 售后类型
+ *
+ * 0 售后退货退款
+ * 1 售后退款
+ * 2 售前退款
+ * 3 换货
+ */
+ @JSONField(name = "aftersale_type")
+ private int afterSaleType;
+
+ /**
+ * 超时自动流转截止时间
+ */
+ @JSONField(name = "status_deadline")
+ private String statusDeadline;
+
+ /**
+ * 自动流转类型
+ */
+ @JSONField(name = "deadline_type")
+ private int deadlineType;
+
+ /**
+ * 售后流程描述:仅退款,退货退款等
+ */
+ @JSONField(name = "aftersale_process_desc")
+ private String afterSaleProcessDesc;
+
+ /**
+ * 售后状态描述:待卖家发货,待买家退货等
+ */
+ @JSONField(name = "aftersale_status_desc")
+ private String afterSaleStatusDesc;
+
+ /**
+ * 退货物流状态描述:未发货,已发货等
+ */
+ @JSONField(name = "return_status_desc")
+ private String returnStatusDesc;
+
+ /**
+ * 售后原因描述:买错了等
+ */
+ @JSONField(name = "reason_desc")
+ private String reasonDesc;
+
+ /**
+ * 全额部分退款
+ * 0 全额退款
+ * 1 部分退款
+ */
+ @JSONField(name = "part_type")
+ private int partType;
+
+ /**
+ * 店铺订单id(主订单id)
+ */
+ private Long pid;
+
+ /**
+ * 退款类型描述:线下退款等
+ */
+ @JSONField(name = "aftersale_refund_type_desc")
+ private String afterSaleRefundTypeDesc;
+
+ /**
+ * 售后退款类型
+ *
+ * 0 原路退回
+ * 1 货到付款线下退款
+ * 2 备用金退款
+ * 3 保证金退款
+ * 4 无需退款
+ */
+ @JSONField(name = "aftersale_refund_type")
+ private int aftersaleRefundType;
+
+ /**
+ * 退款状态
+ *
+ * 0 无需退款
+ * 1 待退款
+ * 2 退款中
+ * 3 退款成功
+ * 4 退款失败
+ */
+ @JSONField(name = "refund_status")
+ private int refundStatus;
+
+ /**
+ * 售后状态
+ *
+ * 0 售后初始
+ * 6 售后申请
+ * 27 拒绝售后申请
+ * 12 售后成功
+ * 28 售后失败
+ * 7 售后退货中
+ * 11 售后已发货
+ * 29 售后退货拒绝
+ * 13 售后换货商家发货
+ * 14 售后换货用户收货
+ */
+ @JSONField(name = "aftersale_status")
+ private int afterSaleStatus;
+
+ /**
+ * 买家收件人名
+ */
+ @JSONField(name = "post_receiver")
+ private String postReceiver;
+
+ /**
+ * 仲裁状态
+ *
+ * 0 无仲裁记录
+ * 1 仲裁中
+ * 2 客服同意
+ * 3 客服拒绝
+ */
+ @JSONField(name = "arbitrate_status")
+ private int arbitrateStatus;
+
+ /**
+ * 退款类型
+ * 0: Origin, 原路退回
+ * 1: Offline, 线下退款
+ * 2: Impurest,预付款退款
+ * 3: Pledge,保证金退款
+ * 4: None,无需退款
+ * 5: RefundTypeAll, 所有
+ */
+ @JSONField(name = "refund_type")
+ private int refundType;
+
+ /**
+ * 剩余的催发货短信次数
+ */
+ @JSONField(name = "urge_sms_cnt")
+ private int urgeSmsCnt;
+
+ /**
+ * 售后申请的子订单信息
+ */
+ @JSONField(name = "aftersale_items")
+ private List afterSaleItems;
+
+ /**
+ * 售后申请历史记录
+ */
+ @JSONField(name = "aftersale_record_items")
+ private List afterSaleRecordItems;
+
+
+ /**
+ * 售后申请的子订单信息
+ */
+ @Data
+ private static class AfterSaleItems {
+
+ /**
+ * 商品名称
+ */
+ @JSONField(name = "product_name")
+ private String productName;
+
+ /**
+ * 商品id
+ */
+ @JSONField(name = "product_id")
+ private int productId;
+
+ /**
+ * 商品图片
+ */
+ @JSONField(name = "product_img")
+ private String productImg;
+
+ /**
+ * 商品数量
+ */
+ private int num;
+
+ /**
+ * 支付金额 单位分
+ */
+ @JSONField(name = "pay_amount")
+ private int payAmount;
+
+ /**
+ * 邮费 单位分
+ */
+ @JSONField(name = "post_amount")
+ private int postAmount;
+
+ /**
+ * 退款金额 单位分
+ */
+ @JSONField(name = "refund_amount")
+ private int refundAmount;
+
+ /**
+ * 退货运费 单位分
+ */
+ @JSONField(name = "refund_post_amount")
+ private int refundPostAmount;
+
+ /**
+ * 售后标签:七天无理由,极速退等
+ */
+ @JSONField(name = "aftersale_service")
+ private List afterSaleService;
+
+ /**
+ * 商品规格
+ */
+ @JSONField(name = "sku_spec")
+ private List skuSpec;
+
+ /**
+ * 订单id
+ */
+ @JSONField(name = "order_id")
+ private Long orderId;
+
+ /**
+ * 创建时间
+ */
+ @JSONField(name = "create_time")
+ private String createTime;
+
+ /**
+ * 全额部分退款
+ *
+ * 0 全额退款
+ * 1 部分退款
+ */
+ @JSONField(name = "part_type")
+ private int partType;
+ }
+
+ /**
+ * 商品规格
+ */
+ @Data
+ private static class SkuSpec {
+
+ private String name;
+
+ private String value;
+ }
+
+ /**
+ * 售后申请历史记录
+ */
+ @Data
+ private static class AfterSaleRecordItems {
+
+ /**
+ * 售后单号
+ */
+ @JSONField(name = "aftersale_id")
+ private Long afterSaleId;
+
+ /**
+ * 订单号
+ */
+ @JSONField(name = "order_id")
+ private Long orderId;
+
+ /**
+ * 操作角色,system:系统、
+ * service:平台客服、
+ * user:用户、
+ * shop:商家
+ */
+ private String role;
+
+ /**
+ * 操作类型
+ */
+ @JSONField(name = "op_type")
+ private String opType;
+
+ /**
+ * 操作人名称
+ */
+ @JSONField(name = "op_name")
+ private String opName;
+
+ /**
+ * 操作结果,1:同意
+ * 2:拒绝
+ * 3:立即退款
+ */
+ private int conclusion;
+
+ /**
+ * 操作时间
+ */
+ @JSONField(name = "op_time")
+ private String opTime;
+
+ /**
+ * 操作意见 原因
+ */
+ private String comment;
+
+ /**
+ * 凭证
+ */
+ private List evidence;
+
+ /**
+ * 说明/备注
+ */
+ private String remark;
+
+ /**
+ * 收到货物说明,0代表未收到货,1代表已收到货
+ */
+ @JSONField(name = "got_pkg")
+ private int gotPkg;
+
+ /**
+ * 物流单号
+ */
+ @JSONField(name = "logistics_code")
+ private String logisticsCode;
+
+ /**
+ * 物流公司编码
+ */
+ @JSONField(name = "company_code")
+ private String companyCode;
+
+ /**
+ * 物流公司名称
+ */
+ @JSONField(name = "company_name")
+ private String companyName;
+
+ /**
+ * 退款类型
+ * 0: Origin, 原路退回
+ * 1: Offline, 线下退款
+ * 2: Impurest,预付款退款
+ * 3: Pledge,保证金退款
+ * 4: None,无需退款
+ * 5: RefundTypeAll, 所有
+ */
+ @JSONField(name = "refund_type")
+ private Integer refundType;
+ }
+}
diff --git a/src/main/java/com/moming/douapisdk/domain/DouYinProduct.java b/src/main/java/com/moming/douapisdk/domain/DouYinProduct.java
index 418e868cd340cc871a75fd60bcd4807253d6eb91..8e20239ece320b2034a2be80cbf7cd657f1a5306 100644
--- a/src/main/java/com/moming/douapisdk/domain/DouYinProduct.java
+++ b/src/main/java/com/moming/douapisdk/domain/DouYinProduct.java
@@ -6,6 +6,8 @@ import lombok.Data;
import org.springframework.boot.jackson.JsonComponent;
/**
+ * 抖音商品
+ *
* @author lujingpo
*/
@Data
@@ -21,38 +23,94 @@ public class DouYinProduct {
*/
@JSONField(name = "open_user_id")
private long openUserId;
+
+ /**
+ * 商品名称
+ */
private String name;
+
+ /**
+ * 详情html
+ */
private String description;
+
+ /**
+ * 头图,主图第一张
+ */
private String img;
/**
- * 市场价格
+ * 划线价,单位分
*/
@JSONField(name = "market_price")
private int marketPrice;
+
+ /**
+ * 售价,单位分
+ */
@JSONField(name = "discount_price")
private int discountPrice;
- @JSONField(name = "settlement_price")
- private int settlementPrice;
+
+ /**
+ * 商品上下架状态:0上架 1下架 2已删除
+ */
private int status;
+
+ /**
+ * 规格id
+ */
@JSONField(name = "spec_id")
- private int specId;
+ private Long specId;
+
+ /**
+ * 商品审核状态:1未提审 2审核中 3审核通过 4审核驳回 5封禁
+ */
@JSONField(name = "check_status")
private int checkStatus;
+
+ /**
+ * 手机号
+ */
private String mobile;
+
+ /**
+ * 一级类目
+ */
@JSONField(name = "first_cid")
private int firstCid;
+
+ /**
+ * 二级类目
+ */
@JSONField(name = "second_cid")
private int secondCid;
+
+ /**
+ * 三级类目
+ */
@JSONField(name = "third_cid")
private int thirdCid;
+
+ /**
+ * 支持的支付方式:0货到付款 1在线支付 2两者都支持
+ */
@JSONField(name = "pay_type")
private int payType;
+
+ /**
+ * 商家推荐语
+ */
@JSONField(name = "recommend_remark")
private String recommendRemark;
- @JSONField(name = "is_create")
- private int isCreate;
+
+ /**
+ * 创建时间
+ */
@JSONField(name = "create_time")
private String createTime;
+
+ /**
+ * 更新时间
+ */
@JSONField(name = "update_time")
private String updateTime;
diff --git a/src/main/java/com/moming/douapisdk/domain/OrderChild.java b/src/main/java/com/moming/douapisdk/domain/OrderChild.java
index 636c07038d944970c5d1c3770e9ba5788b242ac6..a7dee2d61543dda075058106892d0b2d66bd3fcf 100644
--- a/src/main/java/com/moming/douapisdk/domain/OrderChild.java
+++ b/src/main/java/com/moming/douapisdk/domain/OrderChild.java
@@ -15,6 +15,13 @@ import java.util.List;
@Data
public class OrderChild {
+
+ @JSONField(name = "alliance_info")
+ private AllianceInfo allianceInfo;
+
+ @JSONField(name = "author_id")
+ private Long authorId;
+
@JSONField(name = "buyer_words")
private String buyerWords;
@@ -36,7 +43,7 @@ public class OrderChild {
private int comboAmount;
@JSONField(name = "combo_id")
- private int comboId;
+ private long comboId;
@JSONField(name = "combo_num")
private int comboNum;
@@ -78,7 +85,7 @@ public class OrderChild {
private int outProductId;
@JSONField(name = "out_sku_id")
- private int outSkuId;
+ private long outSkuId;
@JSONField(name = "pay_type")
private int payType;
@@ -177,4 +184,23 @@ public class OrderChild {
private String value;
}
+
+ @Data
+ @ToString
+ private static class AllianceInfo {
+ @JSONField(name = "author_account")
+ private String authorAccount;
+
+ @JSONField(name = "commission_rate")
+ private int commissionRate;
+
+ @JSONField(name = "short_id")
+ private String shortId;
+
+ @JSONField(name = "estimated_commission")
+ private int estimatedCommission;
+
+ @JSONField(name = "real_commission")
+ private int realCommission;
+ }
}
diff --git a/src/main/java/com/moming/douapisdk/internal/util/RequestParametersHolder.java b/src/main/java/com/moming/douapisdk/internal/util/RequestParametersHolder.java
index 289b903fc1eda156a79839c8bdf6e88273ebe9ef..e0303f332d6cddfd486f0a322a5d3304e8c43a5f 100644
--- a/src/main/java/com/moming/douapisdk/internal/util/RequestParametersHolder.java
+++ b/src/main/java/com/moming/douapisdk/internal/util/RequestParametersHolder.java
@@ -6,6 +6,10 @@ import lombok.Data;
import java.util.TreeMap;
/**
+ * 请求参数 存储结构体
+ *
+ * 存放请求url,请求参数,返回值
+ *
* @author tianzong
* @date 2020/7/21
*/
diff --git a/src/main/java/com/moming/douapisdk/request/OrderDetailRequest.java b/src/main/java/com/moming/douapisdk/request/OrderDetailRequest.java
index 00ec0de9afbe3879ffe201d168678f0787af2e45..b7d269e60c85d93ae51e43a3aad870ec61c99137 100644
--- a/src/main/java/com/moming/douapisdk/request/OrderDetailRequest.java
+++ b/src/main/java/com/moming/douapisdk/request/OrderDetailRequest.java
@@ -9,10 +9,9 @@ import java.util.Map;
/**
* @author yangyang
- * @Date 2020/8/29 16:44
- * @Desc
+ * @date 2020/8/29 16:44
*/
-@EqualsAndHashCode
+@EqualsAndHashCode(callSuper = false)
@AllArgsConstructor
@NoArgsConstructor
@Setter
diff --git a/src/main/java/com/moming/douapisdk/request/TradeRefundListSearchRequest.java b/src/main/java/com/moming/douapisdk/request/TradeRefundListSearchRequest.java
new file mode 100644
index 0000000000000000000000000000000000000000..07a2d8781f3b9eaacacfd8bee608254156af61df
--- /dev/null
+++ b/src/main/java/com/moming/douapisdk/request/TradeRefundListSearchRequest.java
@@ -0,0 +1,190 @@
+package com.moming.douapisdk.request;
+
+import com.moming.douapisdk.BaseDouYinRequest;
+import com.moming.douapisdk.internal.util.DouYinHashMap;
+import com.moming.douapisdk.response.TradeRefundListSearchResponse;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+
+import java.time.LocalDateTime;
+import java.util.Map;
+
+/**
+ * @author lujingpo
+ * @date 2021/2/1
+ */
+@EqualsAndHashCode(callSuper = true)
+@Data
+public class TradeRefundListSearchRequest extends BaseDouYinRequest {
+
+ /**
+ * 订单号
+ */
+ private Long orderId;
+
+ /**
+ * 页数(默认值为0,第一页从0开始)
+ */
+ private Integer page;
+
+ /**
+ * 订单排序方式:最近的在前,1;最近的在后,0 默认1
+ */
+ private Integer isDesc;
+
+ /**
+ * 排序字段,apply_time 售后申请时间
+ * update_time 售后信息更新时间
+ * 默认apply_time
+ */
+ private String orderBy;
+
+ /**
+ * 每页订单数(默认为10,最大100)
+ */
+ private Integer size;
+
+ /**
+ * 售后申请开始时间
+ */
+ private LocalDateTime startTime;
+
+ /**
+ * 售后申请结束时间
+ */
+ private LocalDateTime endTime;
+
+ /**
+ * 售后状态 1: 所有,
+ * 2: PreSaleAllAudit,发货前退款待处理
+ * 3: RefundAudit,发货后仅退款待处理
+ * 4: ReturnAudit,退货待处理
+ * 5: ExchangeAudit,换货待处理
+ * 6: RefundFail,同意退款、
+ * 退款失败 7: AuditRefund,同意退款、退款成功
+ * 8: AfterSaleAudit,待商家处理
+ * 9: ReturnReceive,待商家收货
+ * 10: AuditRefunding,同意退款,退款中
+ * 11: ArbitratePending,仲裁中
+ * 12: Close,售后关闭
+ * 13: ReturnShip,待买家退货
+ * 14: WaitBuyerReceive,换货待用户收货
+ * 15: ExchangeSuccess,换货成功
+ * 16: Refuse,拒绝售后
+ * 17: ReceiveRefuse,退货后拒绝退款
+ * 18: UploadRefund,待商家上传退款凭证
+ */
+ private Integer status;
+
+ /**
+ * 0: TypeReturn, 退货
+ * 1: TypeRefund, 售后仅退款
+ * 2: TypePreSaleAll, 售前退款
+ * 3: TypeExchange, 换货
+ * 5: TypeAll, 所有
+ */
+ private Integer type;
+
+ /**
+ * 1: LogisticsStatusAll, 所有
+ * 2: Shipped, 已发货
+ * 3: NotShipped, 未发货
+ */
+ private Integer logisticsStatus;
+
+ /**
+ * 售后id
+ */
+ private Long afterSaleId;
+
+ /**
+ * 支付方式 1: PayTpeAll, 所有
+ * 2: Cod, 货到付款
+ * 3: Online, 在线支付
+ */
+ private Integer payType;
+
+ /**
+ * 仲裁状态 1: ArbitrationStatusAll, 所有
+ * 2: ArbitrationStatusNone, 无仲裁
+ * 3: Pending, 仲裁中
+ * 4: Finished,仲裁结束
+ */
+ private Integer arbitrateStatus;
+
+ /**
+ * 退款类型 0: Origin, 原路退回
+ * 1: Offline, 线下退款
+ * 2: Impurest,预付款退款
+ * 3: Pledge,保证金退款
+ * 4: None,无需退款
+ * 5: RefundTypeAll, 所有
+ */
+ private Integer refundType;
+
+ /**
+ * 物流单号
+ */
+ private Long logisticsCode;
+
+
+ /**
+ * 获取api的url地址
+ *
+ * @return url地址
+ */
+ @Override
+ public String getApiUrl() {
+ return "/trade/refundListSearch";
+ }
+
+ /**
+ * 获取API的名称
+ *
+ * @return API名称
+ */
+ @Override
+ public String getApiMethodName() {
+ return "shop.refundListSearch";
+ }
+
+ /**
+ * 获取所有的key-value形式的文本请求参数集合,其中:
+ *
+ * - Key: 请求参数名
+ * - Value: 请求参数值
+ *
+ *
+ * @return 文本请求参数集合
+ */
+ @Override
+ public Map getTextParams() {
+ DouYinHashMap textParams = new DouYinHashMap();
+ textParams.put("order_id", this.orderId);
+ textParams.put("page", this.page);
+ textParams.put("is_desc", this.isDesc);
+ textParams.put("order_by", this.orderBy);
+ textParams.put("size", this.size);
+ textParams.put("start_time", this.startTime);
+ textParams.put("end_time", this.endTime);
+ textParams.put("status", this.status);
+ textParams.put("type", this.type);
+ textParams.put("logistics_status", this.logisticsStatus);
+ textParams.put("aftersale_id", this.afterSaleId);
+ textParams.put("pay_type", this.payType);
+ textParams.put("arbitrate_status", this.arbitrateStatus);
+ textParams.put("refund_type", this.refundType);
+ textParams.put("logistics_code", this.logisticsCode);
+ return textParams;
+ }
+
+ /**
+ * 获取具体响应实现类的定义。
+ *
+ * @return 获取具体响应实现类的定义。
+ */
+ @Override
+ public Class getResponseClass() {
+ return TradeRefundListSearchResponse.class;
+ }
+}
diff --git a/src/main/java/com/moming/douapisdk/response/TradeRefundListSearchResponse.java b/src/main/java/com/moming/douapisdk/response/TradeRefundListSearchResponse.java
new file mode 100644
index 0000000000000000000000000000000000000000..5dbdb1aed71f529c06902abbec138075674269ae
--- /dev/null
+++ b/src/main/java/com/moming/douapisdk/response/TradeRefundListSearchResponse.java
@@ -0,0 +1,29 @@
+package com.moming.douapisdk.response;
+
+import com.alibaba.fastjson.annotation.JSONField;
+import com.moming.douapisdk.BaseDouYinResponse;
+import com.moming.douapisdk.domain.AfterSale;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+
+import java.util.List;
+
+/**
+ * 售后订单列表查询
+ *
+ * @author lujingpo
+ * @date 2021/2/1
+ */
+@EqualsAndHashCode(callSuper = true)
+@Data
+public class TradeRefundListSearchResponse extends BaseDouYinResponse {
+
+
+ private static final long serialVersionUID = 9057716152652845184L;
+
+ private Long total;
+
+ @JSONField(name = "aftersale_list")
+ private List afterSaleList;
+
+}
diff --git a/src/test/java/com/moming/douapisdk/DefaultDouYinClientTest.java b/src/test/java/com/moming/douapisdk/DefaultDouYinClientTest.java
index 54102c96eedc198a17f939dbc5affada586da642..4bc5f38b0cde569c5bbbc4df9067b7dabf6213b2 100644
--- a/src/test/java/com/moming/douapisdk/DefaultDouYinClientTest.java
+++ b/src/test/java/com/moming/douapisdk/DefaultDouYinClientTest.java
@@ -1,14 +1,21 @@
package com.moming.douapisdk;
import com.moming.douapisdk.domain.LogisticsCompany;
+import com.moming.douapisdk.request.OrderDetailRequest;
+import com.moming.douapisdk.request.OrderListRequest;
import com.moming.douapisdk.request.OrderLogisticsCompanyListRequest;
+import com.moming.douapisdk.response.OauthResponse;
+import com.moming.douapisdk.response.OrderDetailResponse;
+import com.moming.douapisdk.response.OrderListResponse;
import com.moming.douapisdk.response.OrderLogisticsCompanyListResponse;
+import org.junit.Assert;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.ActiveProfiles;
+import java.time.LocalDateTime;
import java.util.List;
@@ -31,4 +38,27 @@ class DefaultDouYinClientTest {
List data = companyListResponse.getData();
System.out.println(data.size());
}
+
+ @Test
+ void testToken() {
+ OrderDetailRequest orderDetailRequest = new OrderDetailRequest();
+ orderDetailRequest.setMainOrderId("4759199947270901633");
+ OrderDetailResponse response = defaultDouYinClient.execute(orderDetailRequest, "28b3d993-a54c-4952-a371-b9feb232f628");
+
+ Assert.assertNotNull(response.getData());
+ }
+
+
+ @Test
+ void testOrderList() {
+ OrderListRequest request = new OrderListRequest();
+ request.setStartTime(LocalDateTime.now().minusDays(1));
+ request.setEndTime(LocalDateTime.now());
+ request.setOrderBy(OrderListRequest.ORDER_BY_FIELD_CREATE);
+ request.setSize("100");
+ OrderListResponse execute = defaultDouYinClient.execute(request, "28b3d993-a54c-4952-a371-b9feb232f628");
+
+ Assert.assertTrue(execute.getData().getCount() > 0);
+
+ }
}
\ No newline at end of file
diff --git a/src/test/resources/application.yml b/src/test/resources/application.yml
index cd39450e07da916109375082eb93022ba6f2617f..07beeeda91148a73f4ad725ca67a9131572aaf44 100644
--- a/src/test/resources/application.yml
+++ b/src/test/resources/application.yml
@@ -1,6 +1,6 @@
spring:
dou-yin:
- app-key: 6841298079006967303
- app-secret: 9c8108dc-d72b-43cf-b87f-4ffdbc545ee6
+ app-key: 6920517213913089551
+ app-secret: 96423902-a1f9-46f5-81b2-39732c792e7c
version: 2
app-host: https://openapi-fxg.jinritemai.com
\ No newline at end of file
diff --git a/target/classes/META-INF/spring-configuration-metadata.json b/target/classes/META-INF/spring-configuration-metadata.json
deleted file mode 100644
index be89d32d19e53b0fb6b504ee6299ff849379be57..0000000000000000000000000000000000000000
--- a/target/classes/META-INF/spring-configuration-metadata.json
+++ /dev/null
@@ -1,33 +0,0 @@
-{
- "groups": [
- {
- "name": "spring.dou-yin",
- "type": "com.moming.douapisdk.properties.DouYinProperties",
- "sourceType": "com.moming.douapisdk.properties.DouYinProperties"
- }
- ],
- "properties": [
- {
- "name": "spring.dou-yin.app-host",
- "type": "java.lang.String",
- "sourceType": "com.moming.douapisdk.properties.DouYinProperties"
- },
- {
- "name": "spring.dou-yin.app-key",
- "type": "java.lang.String",
- "sourceType": "com.moming.douapisdk.properties.DouYinProperties"
- },
- {
- "name": "spring.dou-yin.app-secret",
- "type": "java.lang.String",
- "sourceType": "com.moming.douapisdk.properties.DouYinProperties"
- },
- {
- "name": "spring.dou-yin.version",
- "type": "java.lang.String",
- "sourceType": "com.moming.douapisdk.properties.DouYinProperties",
- "defaultValue": "2"
- }
- ],
- "hints": []
-}
\ No newline at end of file
diff --git a/target/classes/com/moming/douapisdk/ApiException.class b/target/classes/com/moming/douapisdk/ApiException.class
deleted file mode 100644
index 7f3cc424470f8ed3e21e71af1187c7ba496fe897..0000000000000000000000000000000000000000
Binary files a/target/classes/com/moming/douapisdk/ApiException.class and /dev/null differ
diff --git a/target/classes/com/moming/douapisdk/BaseDouYinRequest.class b/target/classes/com/moming/douapisdk/BaseDouYinRequest.class
deleted file mode 100644
index c843ab6f87cff9e82ed9af76f528f590e3689276..0000000000000000000000000000000000000000
Binary files a/target/classes/com/moming/douapisdk/BaseDouYinRequest.class and /dev/null differ
diff --git a/target/classes/com/moming/douapisdk/BaseDouYinResponse.class b/target/classes/com/moming/douapisdk/BaseDouYinResponse.class
deleted file mode 100644
index 6667d5f79e0d5ba3ea8c742b890be56dd35504c3..0000000000000000000000000000000000000000
Binary files a/target/classes/com/moming/douapisdk/BaseDouYinResponse.class and /dev/null differ
diff --git a/target/classes/com/moming/douapisdk/Constants.class b/target/classes/com/moming/douapisdk/Constants.class
deleted file mode 100644
index 4b40186049085a68f7322a3c326decfdcc0980e1..0000000000000000000000000000000000000000
Binary files a/target/classes/com/moming/douapisdk/Constants.class and /dev/null differ
diff --git a/target/classes/com/moming/douapisdk/DefaultDouYinClient.class b/target/classes/com/moming/douapisdk/DefaultDouYinClient.class
deleted file mode 100644
index c0af5303f5a4487ce4fc2485ade10db5e72f44cd..0000000000000000000000000000000000000000
Binary files a/target/classes/com/moming/douapisdk/DefaultDouYinClient.class and /dev/null differ
diff --git a/target/classes/com/moming/douapisdk/DouYinClient.class b/target/classes/com/moming/douapisdk/DouYinClient.class
deleted file mode 100644
index d3a316d757a6cd811cda21815a3cf8ecabfc8c7b..0000000000000000000000000000000000000000
Binary files a/target/classes/com/moming/douapisdk/DouYinClient.class and /dev/null differ
diff --git a/target/classes/com/moming/douapisdk/DouYinRequest.class b/target/classes/com/moming/douapisdk/DouYinRequest.class
deleted file mode 100644
index bda5ca2886626203cdd3684c4e880c243c04e334..0000000000000000000000000000000000000000
Binary files a/target/classes/com/moming/douapisdk/DouYinRequest.class and /dev/null differ
diff --git a/target/classes/com/moming/douapisdk/config/DefaultDouYinClientConfig.class b/target/classes/com/moming/douapisdk/config/DefaultDouYinClientConfig.class
deleted file mode 100644
index bd60919eda258804221f06c183dc51086569de15..0000000000000000000000000000000000000000
Binary files a/target/classes/com/moming/douapisdk/config/DefaultDouYinClientConfig.class and /dev/null differ
diff --git a/target/classes/com/moming/douapisdk/domain/CouponInfo.class b/target/classes/com/moming/douapisdk/domain/CouponInfo.class
deleted file mode 100644
index 39ae4fbb6ef25da3026d5d5f08b3d5b5f1c3a7e2..0000000000000000000000000000000000000000
Binary files a/target/classes/com/moming/douapisdk/domain/CouponInfo.class and /dev/null differ
diff --git a/target/classes/com/moming/douapisdk/domain/DouYinProduct.class b/target/classes/com/moming/douapisdk/domain/DouYinProduct.class
deleted file mode 100644
index e0e1c64945d28ce6d1e4d40e492d3de13a4c5512..0000000000000000000000000000000000000000
Binary files a/target/classes/com/moming/douapisdk/domain/DouYinProduct.class and /dev/null differ
diff --git a/target/classes/com/moming/douapisdk/domain/DouYinProductPage.class b/target/classes/com/moming/douapisdk/domain/DouYinProductPage.class
deleted file mode 100644
index b3e63bbc5b874bd84e08a179570afeb698513dff..0000000000000000000000000000000000000000
Binary files a/target/classes/com/moming/douapisdk/domain/DouYinProductPage.class and /dev/null differ
diff --git a/target/classes/com/moming/douapisdk/domain/LogisticsCompany.class b/target/classes/com/moming/douapisdk/domain/LogisticsCompany.class
deleted file mode 100644
index d7f6b725f66c3534693b921a1538969c27927933..0000000000000000000000000000000000000000
Binary files a/target/classes/com/moming/douapisdk/domain/LogisticsCompany.class and /dev/null differ
diff --git a/target/classes/com/moming/douapisdk/domain/Order.class b/target/classes/com/moming/douapisdk/domain/Order.class
deleted file mode 100644
index 8835df4d82632df127b0ba0458a44458bda6dd6c..0000000000000000000000000000000000000000
Binary files a/target/classes/com/moming/douapisdk/domain/Order.class and /dev/null differ
diff --git a/target/classes/com/moming/douapisdk/domain/OrderChild$CampaignInfo.class b/target/classes/com/moming/douapisdk/domain/OrderChild$CampaignInfo.class
deleted file mode 100644
index b77236b4e71365e08e063d4deed9672be0ba384d..0000000000000000000000000000000000000000
Binary files a/target/classes/com/moming/douapisdk/domain/OrderChild$CampaignInfo.class and /dev/null differ
diff --git a/target/classes/com/moming/douapisdk/domain/OrderChild$SpecDesc.class b/target/classes/com/moming/douapisdk/domain/OrderChild$SpecDesc.class
deleted file mode 100644
index 9719665b7c3072547f45cf7d65699805ebf10eeb..0000000000000000000000000000000000000000
Binary files a/target/classes/com/moming/douapisdk/domain/OrderChild$SpecDesc.class and /dev/null differ
diff --git a/target/classes/com/moming/douapisdk/domain/OrderChild.class b/target/classes/com/moming/douapisdk/domain/OrderChild.class
deleted file mode 100644
index 9944af3e7d7a444fbca833c86404bb7cf64e0a4c..0000000000000000000000000000000000000000
Binary files a/target/classes/com/moming/douapisdk/domain/OrderChild.class and /dev/null differ
diff --git a/target/classes/com/moming/douapisdk/domain/OrderPage.class b/target/classes/com/moming/douapisdk/domain/OrderPage.class
deleted file mode 100644
index f0ea861575492d437d3737b7380aa008b2c5d6f8..0000000000000000000000000000000000000000
Binary files a/target/classes/com/moming/douapisdk/domain/OrderPage.class and /dev/null differ
diff --git a/target/classes/com/moming/douapisdk/domain/PostAddr$City.class b/target/classes/com/moming/douapisdk/domain/PostAddr$City.class
deleted file mode 100644
index c151f1f11e179492f04080fc0d30db6e7b90db1d..0000000000000000000000000000000000000000
Binary files a/target/classes/com/moming/douapisdk/domain/PostAddr$City.class and /dev/null differ
diff --git a/target/classes/com/moming/douapisdk/domain/PostAddr$Province.class b/target/classes/com/moming/douapisdk/domain/PostAddr$Province.class
deleted file mode 100644
index 9f549e1b901ea1c0d0c553007da272cda300be5e..0000000000000000000000000000000000000000
Binary files a/target/classes/com/moming/douapisdk/domain/PostAddr$Province.class and /dev/null differ
diff --git a/target/classes/com/moming/douapisdk/domain/PostAddr$Town.class b/target/classes/com/moming/douapisdk/domain/PostAddr$Town.class
deleted file mode 100644
index dc009c8ac3101c63a16622d38ad681a2659fcdc2..0000000000000000000000000000000000000000
Binary files a/target/classes/com/moming/douapisdk/domain/PostAddr$Town.class and /dev/null differ
diff --git a/target/classes/com/moming/douapisdk/domain/PostAddr.class b/target/classes/com/moming/douapisdk/domain/PostAddr.class
deleted file mode 100644
index 0e1d738e059b5c7f5649c8870eb1b42d66374e84..0000000000000000000000000000000000000000
Binary files a/target/classes/com/moming/douapisdk/domain/PostAddr.class and /dev/null differ
diff --git a/target/classes/com/moming/douapisdk/internal/dto/RequestDTO.class b/target/classes/com/moming/douapisdk/internal/dto/RequestDTO.class
deleted file mode 100644
index e8970359e94fc812b6f40d7c98d133129ec48c91..0000000000000000000000000000000000000000
Binary files a/target/classes/com/moming/douapisdk/internal/dto/RequestDTO.class and /dev/null differ
diff --git a/target/classes/com/moming/douapisdk/internal/util/HttpClientHelper$1.class b/target/classes/com/moming/douapisdk/internal/util/HttpClientHelper$1.class
deleted file mode 100644
index a9cf32ff6095aa1c594cf7f4367967a9d5f34616..0000000000000000000000000000000000000000
Binary files a/target/classes/com/moming/douapisdk/internal/util/HttpClientHelper$1.class and /dev/null differ
diff --git a/target/classes/com/moming/douapisdk/internal/util/HttpClientHelper.class b/target/classes/com/moming/douapisdk/internal/util/HttpClientHelper.class
deleted file mode 100644
index ed0bc58f5703c74973f0e93831ea6982c6d80da4..0000000000000000000000000000000000000000
Binary files a/target/classes/com/moming/douapisdk/internal/util/HttpClientHelper.class and /dev/null differ
diff --git a/target/classes/com/moming/douapisdk/internal/util/RequestParametersHolder.class b/target/classes/com/moming/douapisdk/internal/util/RequestParametersHolder.class
deleted file mode 100644
index 199cc5623464eb7b9d1c8cc603ab9551f1aed3f3..0000000000000000000000000000000000000000
Binary files a/target/classes/com/moming/douapisdk/internal/util/RequestParametersHolder.class and /dev/null differ
diff --git a/target/classes/com/moming/douapisdk/internal/util/StringUtils.class b/target/classes/com/moming/douapisdk/internal/util/StringUtils.class
deleted file mode 100644
index a36d1d37d0729d85ab3e800b8ce24580d7f644e8..0000000000000000000000000000000000000000
Binary files a/target/classes/com/moming/douapisdk/internal/util/StringUtils.class and /dev/null differ
diff --git a/target/classes/com/moming/douapisdk/properties/DouYinProperties.class b/target/classes/com/moming/douapisdk/properties/DouYinProperties.class
deleted file mode 100644
index 18be9275194ee5d98d862e2f038356be4ef47e58..0000000000000000000000000000000000000000
Binary files a/target/classes/com/moming/douapisdk/properties/DouYinProperties.class and /dev/null differ
diff --git a/target/classes/com/moming/douapisdk/request/OrderDetailRequest.class b/target/classes/com/moming/douapisdk/request/OrderDetailRequest.class
deleted file mode 100644
index 31d5be3861c204f7055698e0d8d850b076302c43..0000000000000000000000000000000000000000
Binary files a/target/classes/com/moming/douapisdk/request/OrderDetailRequest.class and /dev/null differ
diff --git a/target/classes/com/moming/douapisdk/request/OrderListRequest.class b/target/classes/com/moming/douapisdk/request/OrderListRequest.class
deleted file mode 100644
index b43bee62c16443b4c8c2f5d73e1c61648d77e69f..0000000000000000000000000000000000000000
Binary files a/target/classes/com/moming/douapisdk/request/OrderListRequest.class and /dev/null differ
diff --git a/target/classes/com/moming/douapisdk/request/OrderLogisticsCompanyListRequest.class b/target/classes/com/moming/douapisdk/request/OrderLogisticsCompanyListRequest.class
deleted file mode 100644
index 80847069254e3d12b40cbbca601347d41455435a..0000000000000000000000000000000000000000
Binary files a/target/classes/com/moming/douapisdk/request/OrderLogisticsCompanyListRequest.class and /dev/null differ
diff --git a/target/classes/com/moming/douapisdk/request/ProductListRequest.class b/target/classes/com/moming/douapisdk/request/ProductListRequest.class
deleted file mode 100644
index 4a889b49b72877122371324b1b3b9512c3a881a5..0000000000000000000000000000000000000000
Binary files a/target/classes/com/moming/douapisdk/request/ProductListRequest.class and /dev/null differ
diff --git a/target/classes/com/moming/douapisdk/response/OauthResponse$ShopAccess.class b/target/classes/com/moming/douapisdk/response/OauthResponse$ShopAccess.class
deleted file mode 100644
index 705c00c6dab9a855d6bdf354d86993fb5c9955ff..0000000000000000000000000000000000000000
Binary files a/target/classes/com/moming/douapisdk/response/OauthResponse$ShopAccess.class and /dev/null differ
diff --git a/target/classes/com/moming/douapisdk/response/OauthResponse.class b/target/classes/com/moming/douapisdk/response/OauthResponse.class
deleted file mode 100644
index b0dfff931b7fbf34b2938ccb09840e0f777f92b9..0000000000000000000000000000000000000000
Binary files a/target/classes/com/moming/douapisdk/response/OauthResponse.class and /dev/null differ
diff --git a/target/classes/com/moming/douapisdk/response/OrderDetailResponse.class b/target/classes/com/moming/douapisdk/response/OrderDetailResponse.class
deleted file mode 100644
index f889cf09a026ade8534bf29ed0d2ba415c5f32a7..0000000000000000000000000000000000000000
Binary files a/target/classes/com/moming/douapisdk/response/OrderDetailResponse.class and /dev/null differ
diff --git a/target/classes/com/moming/douapisdk/response/OrderListResponse.class b/target/classes/com/moming/douapisdk/response/OrderListResponse.class
deleted file mode 100644
index 270ba90b72f6abf3157b042217d84169da309872..0000000000000000000000000000000000000000
Binary files a/target/classes/com/moming/douapisdk/response/OrderListResponse.class and /dev/null differ
diff --git a/target/classes/com/moming/douapisdk/response/OrderLogisticsCompanyListResponse.class b/target/classes/com/moming/douapisdk/response/OrderLogisticsCompanyListResponse.class
deleted file mode 100644
index 9c4c1ae3d6250e809c6538a31fa1e162d0c199c5..0000000000000000000000000000000000000000
Binary files a/target/classes/com/moming/douapisdk/response/OrderLogisticsCompanyListResponse.class and /dev/null differ
diff --git a/target/classes/com/moming/douapisdk/response/ProductListResponse.class b/target/classes/com/moming/douapisdk/response/ProductListResponse.class
deleted file mode 100644
index 10a386dddc83adfdbfeab5fc58c0d2c8a650bc94..0000000000000000000000000000000000000000
Binary files a/target/classes/com/moming/douapisdk/response/ProductListResponse.class and /dev/null differ
diff --git a/target/test-classes/application.yml b/target/test-classes/application.yml
deleted file mode 100644
index cd39450e07da916109375082eb93022ba6f2617f..0000000000000000000000000000000000000000
--- a/target/test-classes/application.yml
+++ /dev/null
@@ -1,6 +0,0 @@
-spring:
- dou-yin:
- app-key: 6841298079006967303
- app-secret: 9c8108dc-d72b-43cf-b87f-4ffdbc545ee6
- version: 2
- app-host: https://openapi-fxg.jinritemai.com
\ No newline at end of file
diff --git a/target/test-classes/com/moming/douapisdk/DefaultDouYinClientTest.class b/target/test-classes/com/moming/douapisdk/DefaultDouYinClientTest.class
deleted file mode 100644
index 713f69a4746dab32f7486b2c3d8a553a58b88b93..0000000000000000000000000000000000000000
Binary files a/target/test-classes/com/moming/douapisdk/DefaultDouYinClientTest.class and /dev/null differ