1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- //
- // FKExploreRequest.m
- // FirstLink
- //
- // Created by ascii on 16/2/16.
- // Copyright © 2016年 FirstLink. All rights reserved.
- //
- #import "FKExploreRequest.h"
- @implementation FKExploreRequest
- + (void)requestExploreTopicTags:(int)identify
- delegate:(id<FLNetworkDelegate>)delegate {
- NSString *URLString = [NSString stringWithFormat:@"%@/link-site/api/tag/find_topic_tags.json", [[FKServerUtil sharedInstance] apiServer]];
- [[FLDataCenter sharedDataCenter] POST:URLString
- para:[FLRequestHelper commonParamaterForLogin]
- identify:identify
- delegate:delegate];
- }
- + (void)requestExploreTopicDetail:(int)identify
- tagID:(NSString *)tagID
- startRow:(NSString *)startRow
- pageSize:(NSString *)pageSize
- delegate:(id<FLNetworkDelegate>)delegate
- userInfo:(NSDictionary *)userInfo {
- if (!tagID || !startRow || !pageSize) {
- return;
- }
-
- NSString *urlString = [NSString stringWithFormat:@"%@/link-site/api/product/find_products_for_discovery.json", [[FKServerUtil sharedInstance] apiServer]];
- NSString *itemJson = [FLRequestHelper JSONStringWithKeys:@[@"id", @"start_row", @"page_size"]
- values:@[tagID, startRow, pageSize]];
-
- NSMutableDictionary *dictM = [NSMutableDictionary dictionary];
- [dictM setValue:itemJson forKey:@"tag_json"];
- [dictM addEntriesFromDictionary:[FLRequestHelper commonParamater]];
-
- [[FLDataCenter sharedDataCenter] POST:urlString para:dictM identify:identify delegate:delegate userInfo:userInfo];
- }
- @end
|