个人中心-获取公会信息

This commit is contained in:
chenguilong
2022-07-27 16:25:51 +08:00
parent 20b0884769
commit 4ffa485df5
4 changed files with 21 additions and 1 deletions

View File

@@ -20,6 +20,9 @@ NS_ASSUME_NONNULL_BEGIN
///获取贵族信息
- (void)getNobleInfo;
/// 获取家族详细的信息
- (void)getClanDetailInfo;
///获取个人功能列表
- (void)getPersonItemList;

View File

@@ -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];

View File

@@ -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;
///获取小游戏列表

View File

@@ -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;
}