文件 - 添加/删除 评论 · Terryba/Coding-iOS@03f6174 · GitHub
Skip to content

Commit 03f6174

Browse files
committed
文件 - 添加/删除 评论
1 parent 00b95ef commit 03f6174

4 files changed

Lines changed: 64 additions & 40 deletions

File tree

Coding_iOS/Controllers/FileActivitiesViewController.m

Lines changed: 35 additions & 40 deletions

Coding_iOS/Models/Project.m

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,20 @@ - (instancetype)init
1919
}
2020
return self;
2121
}
22+
23+
- (void)setFull_name:(NSString *)full_name{
24+
_full_name = full_name;
25+
NSArray *components = [_full_name componentsSeparatedByString:@"/"];
26+
if (components.count == 2) {
27+
if (!_owner_user_name) {
28+
_owner_user_name = components[0];
29+
}
30+
if (_name) {
31+
_name = components[1];
32+
}
33+
}
34+
}
35+
2236
+(Project *)project_All{
2337
Project *pro = [[Project alloc] init];
2438
pro.id = [NSNumber numberWithInteger:-1];

Coding_iOS/Util/Manager/Coding_NetAPIManager.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,8 @@ typedef NS_ENUM(NSUInteger, VerifyType){
101101
- (void)request_FileDetail:(ProjectFile *)file andBlock:(void (^)(id data, NSError *error))block;
102102
- (void)request_ActivityListOfFile:(ProjectFile *)file andBlock:(void (^)(id data, NSError *error))block;
103103
- (void)request_VersionListOfFile:(ProjectFile *)file andBlock:(void (^)(id data, NSError *error))block;
104+
- (void)request_DeleteComment:(NSNumber *)comment_id inFile:(ProjectFile *)file andBlock:(void (^)(id data, NSError *error))block;
105+
104106
//Code
105107
- (void)request_CodeTree:(CodeTree *)codeTree withPro:(Project *)project codeTreeBlock:(void (^)(id codeTreeData, NSError *codeTreeError))block;
106108
- (void)request_CodeFile:(CodeFile *)codeFile withPro:(Project *)project andBlock:(void (^)(id data, NSError *error))block;

Coding_iOS/Util/Manager/Coding_NetAPIManager.m

Lines changed: 13 additions & 0 deletions

0 commit comments

Comments
 (0)