Geen omschrijving

FKPriceWarnListRequest.m 2.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. //
  2. // FKPriceWarnListRequest.m
  3. // FirstLink
  4. //
  5. // Created by jack on 16/5/27.
  6. // Copyright © 2016年 FirstLink. All rights reserved.
  7. //
  8. #import "FKPriceWarnListRequest.h"
  9. @implementation FKPriceWarnListRequest
  10. + (void)reqWarnListWithIdentify:(int)identify
  11. startRow:(NSInteger)startRow
  12. delegate:(id<FLNetworkDelegate>)delegate{
  13. NSString *urlString = [NSString stringWithFormat:@"%@/link-site/api/product_price_remind/find_product_price_reminds.json", [[FKServerUtil sharedInstance] apiServer]];
  14. NSString *jsonStr = [FLRequestHelper JSONStringWithKeys:@[@"start_row", @"page_size"]
  15. values:@[@(startRow), @(20)]];
  16. NSMutableDictionary *dictM = [NSMutableDictionary dictionaryWithDictionary:[FLRequestHelper commonParamater]];
  17. [dictM setObject:jsonStr forKey:@"product_price_remind_json"];
  18. [[FLDataCenter sharedDataCenter] POST:urlString
  19. para:dictM
  20. identify:identify
  21. delegate:delegate];
  22. }
  23. + (void)reqRemoveWarnWithIdentify:(int)identify
  24. goodsID:(NSString *)goodsID
  25. delegate:(id<FLNetworkDelegate>)delegate{
  26. if (![FLStringHelper isValidString:goodsID]) return;
  27. NSString *urlString = [NSString stringWithFormat:@"%@/link-site/api/product_price_remind/cancel_product_price_remind.json", [[FKServerUtil sharedInstance] apiServer]];
  28. NSString *jsonStr = [FLRequestHelper JSONStringWithKeys:@[@"id"]
  29. values:@[goodsID]];
  30. NSMutableDictionary *dictM = [NSMutableDictionary dictionaryWithDictionary:[FLRequestHelper commonParamater]];
  31. [dictM setObject:jsonStr forKey:@"product_price_remind_json"];
  32. [[FLDataCenter sharedDataCenter] POST:urlString
  33. para:dictM
  34. identify:identify
  35. delegate:delegate];
  36. }
  37. @end