123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- //
- // XYMallAPIManager.h
- // Starbuds
- //
- // Created by 翟玉磊 on 2020/8/12.
- // Copyright © 2020 翟玉磊. All rights reserved.
- //
- #import "ZYLAPIManager.h"
- NS_ASSUME_NONNULL_BEGIN
- @interface XYMallAPIManager : ZYLAPIManager
- /// 根据星芽token登录
- /// @param token 星芽token
- /// @param successHandler 请求成功
- /// @param failureHandler 请求失败
- - (NSNumber *)loginByStarbudsWithToken:(NSString *)token successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
- /// 获取商户列表
- /// @param unitType 商户类型
- /// @param unitName 商户名称
- /// @param pageIndex 索引
- /// @param successHandler 请求成功
- /// @param failureHandler 请求失败
- - (NSNumber *)getShopListWitUnitType:(NSString *)unitType unitName:(NSString *)unitName pageIndex:(NSInteger)pageIndex successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
- /**
- 获取商品列表
-
- @param pageIndex 页码
- @param categoryId 类目id 不是必传的
- @param productName 产品名称 不是必传的
- @param unitId 商户id 不是必传的
- @param isPack 是否礼包商品 1.是 0.忽略 -1.否
- @param successHandler 请求成功回调
- @param failureHandler 请求失败回调
- @return 请求标示
- */
- - (NSNumber *)getAllProductListWithPageIndex:(NSInteger)pageIndex categoryId:(NSString *)categoryId productName:(NSString *)productName unitId:(NSString *)unitId isPack:(NSString *)isPack successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
- /// 根据商品id批量获取商品列表
- /// @param productIds 商品id,逗号分隔
- /// @param successHandler 请求成功
- /// @param failureHandler 请求失败
- - (NSNumber *)getProductsByIdsWithProductIds:(NSString *)productIds successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
- /// 设置展示商品 api-app/v1/live/setShowProduct
- /// @param productId 展示商品 id 传 0 表示取消展示
- /// @param successHandler 请求成功
- /// @param failureHandler 请求失败
- - (NSNumber *)setShowProductById:(NSString *)productId successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
- /// 获取商品详情
- /// @param productId 商品id
- /// @param successHandler 请求成功
- /// @param failureHandler 请求失败
- - (NSNumber *)getProductInfoWithProductId:(NSString *)productId successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
- @end
- NS_ASSUME_NONNULL_END
|