Nenhuma Descrição

FKRecoNewsRequest.m 1.1KB

12345678910111213141516171819202122232425262728
  1. //
  2. // FKRecoNewsRequest.m
  3. // FirstLink
  4. //
  5. // Created by ascii on 2017/6/25.
  6. // Copyright © 2017年 FirstLink. All rights reserved.
  7. //
  8. #import "FKRecoNewsRequest.h"
  9. @implementation FKRecoNewsRequest
  10. + (void)requestRecoNewsWithIdentify:(NSInteger)identify
  11. startRow:(NSUInteger)startRow
  12. delegate:(id<FLNetworkDelegate>)delegate {
  13. NSString *itemJson = [FLRequestHelper JSONStringWithKeys:@[@"type", @"start_row", @"page_size"]
  14. values:@[@(2), @(startRow), @(PAGE_RECORD_COUNT)]];
  15. NSMutableDictionary *dictM = [NSMutableDictionary dictionary];
  16. [dictM setValue:itemJson forKey:@"activity_share_json"];
  17. [dictM addEntriesFromDictionary:[FLRequestHelper commonParamater]];
  18. NSString *urlString = [NSString stringWithFormat:@"%@/link-site/api/activity_share/find_activity_shares.json", [[FKServerUtil sharedInstance] apiServer]];
  19. [[FLDataCenter sharedDataCenter] POST:urlString para:dictM identify:(int)identify delegate:delegate];
  20. }
  21. @end