123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293 |
- //
- // XYDeliveryAPIManager.h
- // Starbuds
- //
- // Created by 翟玉磊 on 2020/8/11.
- // Copyright © 2020 翟玉磊. All rights reserved.
- //
- #import "ZYLAPIManager.h"
- NS_ASSUME_NONNULL_BEGIN
- @interface XYDeliveryAPIManager : ZYLAPIManager
- /**
- 获取区域列表
-
- @param parentId 父区域id 不传则说明是省级列表
- @param successHandler 请求成功回调
- @param failureHandler 请求失败回调
- @return 请求标示
- */
- - (NSNumber *)getAreaListWithParentId:(NSString *)parentId successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
- /**
- 创建收货地址
-
- @param deliveryContactName 收件人
- @param deliveryContactPhone 手机号
- @param areaId 区域id
- @param deliveryAddress 详细地址
- @param successHandler 请求成功回调
- @param failureHandler 请求失败回调
- @return 请求标示
- */
- - (NSNumber *)addDeliveryWithDeliveryContactName:(NSString *)deliveryContactName deliveryContactPhone:(NSString *)deliveryContactPhone areaId:(NSString *)areaId deliveryAddress:(NSString *)deliveryAddress successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
- /**
- 获取收货地址列表
-
- @param pageIndex 页码
- @param successHandler 请求成功回调
- @param failureHandler 请求失败回调
- @return 请求标示
- */
- - (NSNumber *)getDeliveryListPageIndex:(NSInteger)pageIndex successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
- /**
- 获取默认收货地址
-
- @param successHandler 请求成功回调
- @param failureHandler 请求失败回调
- @return 请求标示
- */
- - (NSNumber *)getDefaultDeliverySuccessHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
- /**
- 删除收货地址
-
- @param deliveryId 要删除的收货地址id
- @param successHandler 请求成功回调
- @param failureHandler 请求失败回调
- @return 请求标示
- */
- - (NSNumber *)deleteDeliveryWithDeliveryId:(NSString *)deliveryId successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
- /**
- 设置默认收货地址
-
- @param deliveryId 收货地址id
- @param successHandler 请求成功回调
- @param failureHandler 请求失败回调
- @return 请求标示
- */
- - (NSNumber *)setDefaultDeliveryWithDeliveryId:(NSString *)deliveryId successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
- /**
- 编辑收货地址
-
- @param deliveryId 收货地址id
- @param deliveryContactName 收件人
- @param deliveryContactPhone 联系电话
- @param areaId 区域id
- @param deliveryAddress 详细地址
- @param successHandler 请求成功回调
- @param failureHandler 请求失败回调
- @return 请求标示
- */
- - (NSNumber *)modifyDeliveryWithDeliveryId:(NSString *)deliveryId deliveryContactName:(NSString *)deliveryContactName deliveryContactPhone:(NSString *)deliveryContactPhone areaId:(NSString *)areaId deliveryAddress:(NSString *)deliveryAddress successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
- @end
- NS_ASSUME_NONNULL_END
|