// // 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)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)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