个人中心-获取公会信息
This commit is contained in:
@@ -20,6 +20,9 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
///获取贵族信息
|
||||
- (void)getNobleInfo;
|
||||
|
||||
/// 获取家族详细的信息
|
||||
- (void)getClanDetailInfo;
|
||||
|
||||
///获取个人功能列表
|
||||
- (void)getPersonItemList;
|
||||
|
||||
|
@@ -24,6 +24,7 @@
|
||||
#import "HomeLittleGameRoomModel.h"
|
||||
#import "WalletInfoModel.h"
|
||||
#import "NobleCenterModel.h"
|
||||
#import "ClanDetailInfoModel.h"
|
||||
///Protocol
|
||||
#import "XPMineProtocol.h"
|
||||
@implementation XPMinePresent
|
||||
@@ -62,6 +63,18 @@
|
||||
}]];
|
||||
}
|
||||
|
||||
/// 获取家族详细的信息
|
||||
- (void)getClanDetailInfo {
|
||||
NSString * uid = [[AccountInfoStorage instance] getUid];
|
||||
if (uid == nil) {
|
||||
return;
|
||||
}
|
||||
[Api getClanDetailInfo:[self createHttpCompletion:^(BaseModel * _Nonnull data) {
|
||||
ClanDetailInfoModel * clanDetailInfo = [ClanDetailInfoModel modelWithDictionary:data.data];
|
||||
[[self getView] onGetClanDetailInfoSuccess:clanDetailInfo];
|
||||
}] uid:uid];
|
||||
}
|
||||
|
||||
///获取个人功能列表
|
||||
- (void)getPersonItemList {
|
||||
NSString * uid = [[AccountInfoStorage instance] getUid];
|
||||
|
@@ -8,7 +8,7 @@
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
@class XPMineItemModel, UserInfoModel, NobleCenterModel, XPMineFuntionItemModel, LittleGameInfoModel, HomeBannerInfoModel, WalletInfoModel, HomeLittleGameRoomModel;
|
||||
@class XPMineItemModel, UserInfoModel, NobleCenterModel, ClanDetailInfoModel, XPMineFuntionItemModel, LittleGameInfoModel, HomeBannerInfoModel, WalletInfoModel, HomeLittleGameRoomModel;
|
||||
@protocol XPMineProtocol <NSObject>
|
||||
|
||||
///获取用户信息成功
|
||||
@@ -17,6 +17,8 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
- (void)getUserWalletInfo:(WalletInfoModel *)balanceInfo;
|
||||
///获取贵族信息成功
|
||||
- (void)getNobleCenterInfoSuccess:(NobleCenterModel *)model;
|
||||
///获取家族信息成功
|
||||
- (void)onGetClanDetailInfoSuccess:(ClanDetailInfoModel *)clanInfo;
|
||||
///获取个人中心功能
|
||||
- (void)onGetMineFuntionItemSuccess:(NSArray<XPMineFuntionItemModel *> *)items;
|
||||
///获取小游戏列表
|
||||
|
@@ -114,6 +114,7 @@
|
||||
[super viewWillAppear:animated];
|
||||
[self.presenter getUserInfo];
|
||||
[self.presenter getPersonItemList];
|
||||
[self.presenter getClanDetailInfo];
|
||||
[self.presenter getLittleGameList];
|
||||
[self.presenter getMineBannerList];
|
||||
}
|
||||
@@ -437,6 +438,7 @@
|
||||
self.headView.nobleInfo = model;
|
||||
}
|
||||
|
||||
///获取家族信息成功
|
||||
- (void)onGetClanDetailInfoSuccess:(ClanDetailInfoModel *)clanInfo {
|
||||
self.clanInfo = clanInfo;
|
||||
}
|
||||
|
Reference in New Issue
Block a user