123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- //
- // FKPriceWarnListRequest.m
- // FirstLink
- //
- // Created by jack on 16/5/27.
- // Copyright © 2016年 FirstLink. All rights reserved.
- //
- #import "FKPriceWarnListRequest.h"
- @implementation FKPriceWarnListRequest
- + (void)reqWarnListWithIdentify:(int)identify
- startRow:(NSInteger)startRow
- delegate:(id<FLNetworkDelegate>)delegate{
-
- NSString *urlString = [NSString stringWithFormat:@"%@/link-site/api/product_price_remind/find_product_price_reminds.json", [[FKServerUtil sharedInstance] apiServer]];
-
- NSString *jsonStr = [FLRequestHelper JSONStringWithKeys:@[@"start_row", @"page_size"]
- values:@[@(startRow), @(20)]];
-
- NSMutableDictionary *dictM = [NSMutableDictionary dictionaryWithDictionary:[FLRequestHelper commonParamater]];
- [dictM setObject:jsonStr forKey:@"product_price_remind_json"];
-
- [[FLDataCenter sharedDataCenter] POST:urlString
- para:dictM
- identify:identify
- delegate:delegate];
- }
- + (void)reqRemoveWarnWithIdentify:(int)identify
- goodsID:(NSString *)goodsID
- delegate:(id<FLNetworkDelegate>)delegate{
-
- if (![FLStringHelper isValidString:goodsID]) return;
-
- NSString *urlString = [NSString stringWithFormat:@"%@/link-site/api/product_price_remind/cancel_product_price_remind.json", [[FKServerUtil sharedInstance] apiServer]];
-
- NSString *jsonStr = [FLRequestHelper JSONStringWithKeys:@[@"id"]
- values:@[goodsID]];
-
- NSMutableDictionary *dictM = [NSMutableDictionary dictionaryWithDictionary:[FLRequestHelper commonParamater]];
- [dictM setObject:jsonStr forKey:@"product_price_remind_json"];
-
- [[FLDataCenter sharedDataCenter] POST:urlString
- para:dictM
- identify:identify
- delegate:delegate];
- }
- @end
|