
- Removed YuMi/Library/ (138 MB, not tracked) - Removed YuMi/Resources/ (23 MB, not tracked) - Removed old version assets (566 files, not tracked) - Excluded Pods/, xcuserdata/ and other build artifacts - Clean repository optimized for company server deployment
40 lines
1.4 KiB
Objective-C
40 lines
1.4 KiB
Objective-C
//
|
|
// YMMonentsTopicListPresenter.m
|
|
// YUMI
|
|
//
|
|
// Created by YUMI on 2022/8/18.
|
|
//
|
|
|
|
#import "XPMomentsTopicListPresenter.h"
|
|
#import "Api+Moments.h"
|
|
#import "AccountInfoStorage.h"
|
|
#import "MomentsTopicModel.h"
|
|
#import "XPMomentsTopicListProtocol.h"
|
|
|
|
@implementation XPMomentsTopicListPresenter
|
|
|
|
- (void)getMoentsTopicList:(int)page pageSize:(int)pageSize state:(int)state {
|
|
NSString * uid = [AccountInfoStorage instance].getUid;
|
|
NSString * pageStr = [NSString stringWithFormat:@"%d", page];
|
|
NSString * pageSizeStr = [NSString stringWithFormat:@"%d", pageSize];
|
|
[Api momentsTopicList:[self createHttpCompletion:^(BaseModel * _Nonnull data) {
|
|
NSArray * array = [MomentsTopicModel modelsWithArray:data.data[@"records"]];
|
|
[[self getView] getMomentsTopicListSuccess:array state:state];
|
|
}fail:^(NSInteger code, NSString * _Nullable msg) {
|
|
[[self getView] getMomentsTopicFail:msg state:state];
|
|
} showLoading:YES] uid:uid page:pageStr pageSize:pageSizeStr worldTypeId:@"0"];
|
|
}
|
|
|
|
/// 删除动态
|
|
/// @param dynamicId 动态id
|
|
/// @param worldId 话题id
|
|
- (void)deleteMonents:(NSString *)dynamicId worldId:(NSString *)worldId {
|
|
NSString * uid = [AccountInfoStorage instance].getUid;
|
|
[Api momentsDelete:^(BaseModel * _Nullable data, NSInteger code, NSString * _Nullable msg) {
|
|
[[self getView] deleteMomentsSuccess:dynamicId];
|
|
} uid:uid dynamicId:dynamicId worldId:worldId];
|
|
}
|
|
|
|
|
|
@end
|