Няма описание

FKFlashSaleRequest.m 1.2KB

123456789101112131415161718192021222324252627282930
  1. //
  2. // FKFlashSaleRequest.m
  3. // FirstLink
  4. //
  5. // Created by ascii on 2017/6/8.
  6. // Copyright © 2017年 FirstLink. All rights reserved.
  7. //
  8. #import "FKFlashSaleRequest.h"
  9. @implementation FKFlashSaleRequest
  10. + (void)requestHotSaleListWithIdentify:(NSInteger)identify
  11. beginDate:(NSString *)beginDate
  12. endDate:(NSString *)endDate
  13. startRow:(NSUInteger)startRow
  14. delegate:(id<FLNetworkDelegate>)delegate {
  15. NSString *itemJson = [FLRequestHelper JSONStringWithKeys:@[@"begin_date", @"end_date", @"start_row", @"page_size"]
  16. values:@[beginDate ? : @"", endDate ? : @"", @(startRow), @(PAGE_RECORD_COUNT)]];
  17. NSMutableDictionary *dictM = [NSMutableDictionary dictionary];
  18. [dictM setValue:itemJson forKey:@"promotion_limit_json"];
  19. [dictM addEntriesFromDictionary:[FLRequestHelper commonParamater]];
  20. NSString *urlString = [NSString stringWithFormat:@"%@/link-site/api/promotion_limit/find_promotion_limits.json", [[FKServerUtil sharedInstance] apiServer]];
  21. [[FLDataCenter sharedDataCenter] POST:urlString para:dictM identify:(int)identify delegate:delegate];
  22. }
  23. @end