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