Skip to content

Commit 5c74c1d

Browse files
committed
🎨 为微信小程序物流退货组件接口增加注释文档
1 parent 52d0b2f commit 5c74c1d

File tree

1 file changed

+33
-4
lines changed

1 file changed

+33
-4
lines changed

weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/api/WxMaExpressDeliveryReturnService.java

Lines changed: 33 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,47 @@
55
import me.chanjar.weixin.common.error.WxErrorException;
66

77
/**
8-
* 退货组件
8+
* 微信小程序物流退货组件接口。
9+
* 用于处理退货单相关操作,包括新增、查询和取消退货单。
10+
* 文档:https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/express/express.html
11+
*
912
*/
1013
public interface WxMaExpressDeliveryReturnService {
1114

12-
/**
13-
* 获取支持的快递公司列表
14-
*/
15+
/** 新增退货单接口地址 */
1516
String ADD_DELIVERY_RETURN_URL = "https://api.weixin.qq.com/cgi-bin/express/delivery/return/add";
17+
/** 获取退货单接口地址 */
1618
String GET_DELIVERY_RETURN_URL = "https://api.weixin.qq.com/cgi-bin/express/delivery/return/get";
19+
/** 取消退货单接口地址 */
1720
String UNBIND_DELIVERY_RETURN_URL = "https://api.weixin.qq.com/cgi-bin/express/delivery/return/unbind";
1821

22+
/**
23+
* 新增退货单。
24+
* 用于创建新的退货单,返回退货单信息。
25+
*
26+
* @param wxMaExpressDeliveryReturnAddRequest 退货单新增请求对象
27+
* @return 退货单信息结果
28+
* @throws WxErrorException 新增失败时抛出
29+
*/
1930
WxMaExpressReturnInfoResult addDeliveryReturn(WxMaExpressDeliveryReturnAddRequest wxMaExpressDeliveryReturnAddRequest) throws WxErrorException;
31+
32+
/**
33+
* 获取退货单信息。
34+
* 根据退货单ID查询退货单的详细信息。
35+
*
36+
* @param returnId 退货单ID
37+
* @return 退货单信息结果
38+
* @throws WxErrorException 获取失败时抛出
39+
*/
2040
WxMaExpressReturnInfoResult getDeliveryReturn(String returnId) throws WxErrorException;
41+
42+
/**
43+
* 取消退货单。
44+
* 取消指定的退货单,取消后的退货单将无法继续使用。
45+
*
46+
* @param returnId 退货单ID
47+
* @return 操作结果
48+
* @throws WxErrorException 取消失败时抛出
49+
*/
2150
WxMaExpressReturnInfoResult unbindDeliveryReturn(String returnId) throws WxErrorException;
2251
}

0 commit comments

Comments
 (0)