No Description

FKProDetailRequest.h 2.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. //
  2. // FKProDetailRequest.h
  3. // FirstLink
  4. //
  5. // Created by jack on 16/8/17.
  6. // Copyright © 2016年 FirstLink. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. typedef NS_ENUM(NSUInteger, kProductReqType) {
  10. kProductReqTypeNone = 500,
  11. kProductReqTypeDetail, // 详情
  12. kProductReqTypeSpec, // 商品规格
  13. kProductReqTypeRelativePro, // 商品推荐列表
  14. kProductReqTypeMoreRelativePro, // 更多商品推荐列表
  15. kProductReqTypeAddCollect, // 提交收藏
  16. kProductReqTypeRemoveCollect, // 删除收藏
  17. kProductReqTypeAddToBasket, // 添加到购物车
  18. kProductReqTypeBookBrand, // 订阅
  19. kProductReqTypeBrandRecommend, // 品牌推荐
  20. kProductReqTypeAllLookList, // 大家都在看
  21. kProductReqTypeTagList, // 标签
  22. kProductReqTypeActivity, // 活动
  23. kProductReqTypeTips, // 提示文案
  24. kProductReqTypeVipDiscountItem, // Vip折扣
  25. };
  26. //extern const int REQ_PRODUCT_DETAIL_IDENTIFY;
  27. static NSString *const PRODUCT_ID_KEY = @"DETAIL_POSTID_KEY";
  28. static NSString *const BRAND_ID_KEY = @"BRAND_ID_KEY";
  29. static NSString *const REFER_KEY = @"refer";
  30. static NSString *const PRODUCT_AMOUNT_KEY = @"PRODUCT_AMOUNT_KEY";
  31. static NSString *const PRODUCT_COLLECT_TYPE_KEY = @"PRODUCT_COLLECT_TYPE_KEY";
  32. static NSString *const PRODUCT_RELATIVE_START_ROW_KEY = @"PRODUCT_RELATIVE_START_ROW_KEY";
  33. @interface FKProDetailRequest : NSObject
  34. + (void)requestWithType:(kProductReqType)type
  35. info:(NSDictionary *)info
  36. delegate:(id <FLNetworkDelegate>)delegate;
  37. + (void)reqBookBrand:(NSString *)brandID
  38. isCancel:(BOOL)cancel
  39. identify:(int)identify
  40. delegate:(id<FLNetworkDelegate>)delegate;
  41. + (void)reqTagList:(NSString *)brandID
  42. identify:(int)identify
  43. delegate:(id<FLNetworkDelegate>)delegate;
  44. + (void)reqAcitvity:(NSString *)productId
  45. identify:(int)identify
  46. delegate:(id<FLNetworkDelegate>)delegate;
  47. + (void)reqTipListWithIdentify:(int)identify
  48. delegate:(id<FLNetworkDelegate>)delegate;
  49. + (void)reqVipDiscountWithIdentify:(int)identify
  50. delegate:(id<FLNetworkDelegate>)delegate;
  51. @end