Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/lovemo/MVVMFramework
Browse files Browse the repository at this point in the history
  • Loading branch information
lovemo committed Apr 13, 2016
2 parents 5b5072e + 71d7930 commit fd55f64
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,23 @@ CocoaPods:
NSLog(@"%@",infos);
}
```
###配置Request模型
```objc

- (void)smk_requestConfigures {

self.smk_scheme = @"https";
self.smk_host = @"api.douban.com";
self.smk_path = @"/v2/book/search";
self.smk_method = SMKRequestMethodGET;

}

- (id)smk_requestParameters {
return @{@"q": @"基础"};
}

```
###SMKAction发送网络请求
```objc
- (NSURLSessionTask *)smk_viewModelWithProgress:(progressBlock)progress success:(successBlock)success failure:(failureBlock)failure {
Expand Down

0 comments on commit fd55f64

Please sign in to comment.