Bez popisu

FKCashCouponRequest.m 1.2KB

12345678910111213141516171819202122232425262728293031323334
  1. //
  2. // FKCashCouponRequest.m
  3. // FirstLink
  4. //
  5. // Created by ascii on 15/9/8.
  6. // Copyright (c) 2015年 FirstLink. All rights reserved.
  7. //
  8. #import "FKCashCouponRequest.h"
  9. @implementation FKCashCouponRequest
  10. + (void)requestItems:(int)identify
  11. startRow:(NSString *)startRow
  12. pageSize:(NSString *)pageSize
  13. deleagate:(id<FLNetworkDelegate>)delegate {
  14. NSArray *keys = @[@"start_row", @"page_size"];
  15. NSArray *values = @[startRow, pageSize];
  16. NSString *itemJSONString = [FLRequestHelper JSONStringWithKeys:keys
  17. values:values];
  18. NSMutableDictionary *para = [NSMutableDictionary dictionary];
  19. [para setValue:itemJSONString forKey:@"cash_coupon_json"];
  20. [para addEntriesFromDictionary:[FLRequestHelper commonParamater]];
  21. NSString *URLString = [NSString stringWithFormat:@"%@/link-site/api/cash_coupon/find_cash_coupons_new.json", [[FKServerUtil sharedInstance] apiServer]];
  22. [[FLDataCenter sharedDataCenter] POST:URLString
  23. para:para
  24. identify:identify
  25. delegate:delegate];
  26. }
  27. @end