公会管理权限设置
This commit is contained in:
@@ -260,14 +260,6 @@
|
||||
E800807F27FD859E0055A8AB /* ClanDetailInfoModel.m in Sources */ = {isa = PBXBuildFile; fileRef = E800807E27FD859E0055A8AB /* ClanDetailInfoModel.m */; };
|
||||
E800808527FD8FC20055A8AB /* ClanMemberDetailInfoModel.m in Sources */ = {isa = PBXBuildFile; fileRef = E800808427FD8FC20055A8AB /* ClanMemberDetailInfoModel.m */; };
|
||||
E800808827FDA5100055A8AB /* XPClanSectionView.m in Sources */ = {isa = PBXBuildFile; fileRef = E800808727FDA5100055A8AB /* XPClanSectionView.m */; };
|
||||
E801274027E323C800BAC3F2 /* XPRoomPKViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = E801273F27E323C800BAC3F2 /* XPRoomPKViewController.m */; };
|
||||
E801274327E323E500BAC3F2 /* XPRoomPKPresenter.m in Sources */ = {isa = PBXBuildFile; fileRef = E801274227E323E500BAC3F2 /* XPRoomPKPresenter.m */; };
|
||||
E801274727E3241700BAC3F2 /* Api+RoomPK.m in Sources */ = {isa = PBXBuildFile; fileRef = E801274627E3241700BAC3F2 /* Api+RoomPK.m */; };
|
||||
E801274B27E327DA00BAC3F2 /* XPRoomPKTypeTableViewCell.m in Sources */ = {isa = PBXBuildFile; fileRef = E801274A27E327DA00BAC3F2 /* XPRoomPKTypeTableViewCell.m */; };
|
||||
E801274E27E3280000BAC3F2 /* XPRoomPKVoteTableViewCell.m in Sources */ = {isa = PBXBuildFile; fileRef = E801274D27E3280000BAC3F2 /* XPRoomPKVoteTableViewCell.m */; };
|
||||
E801275127E3281100BAC3F2 /* XPRoomPKTimeTableViewCell.m in Sources */ = {isa = PBXBuildFile; fileRef = E801275027E3281100BAC3F2 /* XPRoomPKTimeTableViewCell.m */; };
|
||||
E801275527E3326000BAC3F2 /* XPRoomPKUserView.m in Sources */ = {isa = PBXBuildFile; fileRef = E801275427E3326000BAC3F2 /* XPRoomPKUserView.m */; };
|
||||
E801275827E347FD00BAC3F2 /* RoomPKRecordModel.m in Sources */ = {isa = PBXBuildFile; fileRef = E801275727E347FD00BAC3F2 /* RoomPKRecordModel.m */; };
|
||||
E80487652717DDD9008595F2 /* XPRoomMenuItem.m in Sources */ = {isa = PBXBuildFile; fileRef = E80487642717DDD9008595F2 /* XPRoomMenuItem.m */; };
|
||||
E80CBDE627D0C1CF001E1EC2 /* HomeMenuSourceModel.m in Sources */ = {isa = PBXBuildFile; fileRef = E80CBDE527D0C1CF001E1EC2 /* HomeMenuSourceModel.m */; };
|
||||
E80CBDEA27D0C53F001E1EC2 /* XPWeakTimer.m in Sources */ = {isa = PBXBuildFile; fileRef = E80CBDE927D0C53F001E1EC2 /* XPWeakTimer.m */; };
|
||||
@@ -447,6 +439,9 @@
|
||||
E8834E4528003A8F0029CCC1 /* XPMineMangerListViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = E8834E4428003A8F0029CCC1 /* XPMineMangerListViewController.m */; };
|
||||
E8834E4828003E1E0029CCC1 /* XPGuildMangerListPresenter.m in Sources */ = {isa = PBXBuildFile; fileRef = E8834E4728003E1E0029CCC1 /* XPGuildMangerListPresenter.m */; };
|
||||
E8834E4C28003E4E0029CCC1 /* XPMineManagerSetPresenter.m in Sources */ = {isa = PBXBuildFile; fileRef = E8834E4B28003E4E0029CCC1 /* XPMineManagerSetPresenter.m */; };
|
||||
E8834E50280051600029CCC1 /* XPMineGuildManagerPerViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = E8834E4F280051600029CCC1 /* XPMineGuildManagerPerViewController.m */; };
|
||||
E8834E53280052580029CCC1 /* XPMineGuildManagerPerTableViewCell.m in Sources */ = {isa = PBXBuildFile; fileRef = E8834E52280052580029CCC1 /* XPMineGuildManagerPerTableViewCell.m */; };
|
||||
E8834E562800585A0029CCC1 /* XPGuildManagerPerPresenter.m in Sources */ = {isa = PBXBuildFile; fileRef = E8834E552800585A0029CCC1 /* XPGuildManagerPerPresenter.m */; };
|
||||
E884C36C2743951B00E1EBED /* GiftReceiveInfoModel.m in Sources */ = {isa = PBXBuildFile; fileRef = E884C36B2743951B00E1EBED /* GiftReceiveInfoModel.m */; };
|
||||
E884C36F2743AAC800E1EBED /* AttachmentModel.m in Sources */ = {isa = PBXBuildFile; fileRef = E884C36E2743AAC800E1EBED /* AttachmentModel.m */; };
|
||||
E884C3722743AEDE00E1EBED /* CustomAttachmentDecoder.m in Sources */ = {isa = PBXBuildFile; fileRef = E884C3712743AEDE00E1EBED /* CustomAttachmentDecoder.m */; };
|
||||
@@ -1181,23 +1176,6 @@
|
||||
E800808427FD8FC20055A8AB /* ClanMemberDetailInfoModel.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ClanMemberDetailInfoModel.m; sourceTree = "<group>"; };
|
||||
E800808627FDA5100055A8AB /* XPClanSectionView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = XPClanSectionView.h; sourceTree = "<group>"; };
|
||||
E800808727FDA5100055A8AB /* XPClanSectionView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = XPClanSectionView.m; sourceTree = "<group>"; };
|
||||
E801273E27E323C800BAC3F2 /* XPRoomPKViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = XPRoomPKViewController.h; sourceTree = "<group>"; };
|
||||
E801273F27E323C800BAC3F2 /* XPRoomPKViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = XPRoomPKViewController.m; sourceTree = "<group>"; };
|
||||
E801274127E323E500BAC3F2 /* XPRoomPKPresenter.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = XPRoomPKPresenter.h; sourceTree = "<group>"; };
|
||||
E801274227E323E500BAC3F2 /* XPRoomPKPresenter.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = XPRoomPKPresenter.m; sourceTree = "<group>"; };
|
||||
E801274427E3240000BAC3F2 /* XPRoomPKProtocol.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = XPRoomPKProtocol.h; sourceTree = "<group>"; };
|
||||
E801274527E3241700BAC3F2 /* Api+RoomPK.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Api+RoomPK.h"; sourceTree = "<group>"; };
|
||||
E801274627E3241700BAC3F2 /* Api+RoomPK.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = "Api+RoomPK.m"; sourceTree = "<group>"; };
|
||||
E801274927E327DA00BAC3F2 /* XPRoomPKTypeTableViewCell.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = XPRoomPKTypeTableViewCell.h; sourceTree = "<group>"; };
|
||||
E801274A27E327DA00BAC3F2 /* XPRoomPKTypeTableViewCell.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = XPRoomPKTypeTableViewCell.m; sourceTree = "<group>"; };
|
||||
E801274C27E3280000BAC3F2 /* XPRoomPKVoteTableViewCell.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = XPRoomPKVoteTableViewCell.h; sourceTree = "<group>"; };
|
||||
E801274D27E3280000BAC3F2 /* XPRoomPKVoteTableViewCell.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = XPRoomPKVoteTableViewCell.m; sourceTree = "<group>"; };
|
||||
E801274F27E3281100BAC3F2 /* XPRoomPKTimeTableViewCell.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = XPRoomPKTimeTableViewCell.h; sourceTree = "<group>"; };
|
||||
E801275027E3281100BAC3F2 /* XPRoomPKTimeTableViewCell.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = XPRoomPKTimeTableViewCell.m; sourceTree = "<group>"; };
|
||||
E801275327E3326000BAC3F2 /* XPRoomPKUserView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = XPRoomPKUserView.h; sourceTree = "<group>"; };
|
||||
E801275427E3326000BAC3F2 /* XPRoomPKUserView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = XPRoomPKUserView.m; sourceTree = "<group>"; };
|
||||
E801275627E347FD00BAC3F2 /* RoomPKRecordModel.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = RoomPKRecordModel.h; sourceTree = "<group>"; };
|
||||
E801275727E347FD00BAC3F2 /* RoomPKRecordModel.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = RoomPKRecordModel.m; sourceTree = "<group>"; };
|
||||
E80487632717DDD9008595F2 /* XPRoomMenuItem.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = XPRoomMenuItem.h; sourceTree = "<group>"; };
|
||||
E80487642717DDD9008595F2 /* XPRoomMenuItem.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = XPRoomMenuItem.m; sourceTree = "<group>"; };
|
||||
E80CBDE427D0C1CF001E1EC2 /* HomeMenuSourceModel.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = HomeMenuSourceModel.h; sourceTree = "<group>"; };
|
||||
@@ -1568,6 +1546,13 @@
|
||||
E8834E4A28003E4E0029CCC1 /* XPMineManagerSetPresenter.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = XPMineManagerSetPresenter.h; sourceTree = "<group>"; };
|
||||
E8834E4B28003E4E0029CCC1 /* XPMineManagerSetPresenter.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = XPMineManagerSetPresenter.m; sourceTree = "<group>"; };
|
||||
E8834E4D28003E660029CCC1 /* XPGuildSetManagerProtocol.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = XPGuildSetManagerProtocol.h; sourceTree = "<group>"; };
|
||||
E8834E4E280051600029CCC1 /* XPMineGuildManagerPerViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = XPMineGuildManagerPerViewController.h; sourceTree = "<group>"; };
|
||||
E8834E4F280051600029CCC1 /* XPMineGuildManagerPerViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = XPMineGuildManagerPerViewController.m; sourceTree = "<group>"; };
|
||||
E8834E51280052580029CCC1 /* XPMineGuildManagerPerTableViewCell.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = XPMineGuildManagerPerTableViewCell.h; sourceTree = "<group>"; };
|
||||
E8834E52280052580029CCC1 /* XPMineGuildManagerPerTableViewCell.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = XPMineGuildManagerPerTableViewCell.m; sourceTree = "<group>"; };
|
||||
E8834E542800585A0029CCC1 /* XPGuildManagerPerPresenter.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = XPGuildManagerPerPresenter.h; sourceTree = "<group>"; };
|
||||
E8834E552800585A0029CCC1 /* XPGuildManagerPerPresenter.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = XPGuildManagerPerPresenter.m; sourceTree = "<group>"; };
|
||||
E8834E572800586C0029CCC1 /* XPGuildManagerPerProtocol.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = XPGuildManagerPerProtocol.h; sourceTree = "<group>"; };
|
||||
E884C36A2743951B00E1EBED /* GiftReceiveInfoModel.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GiftReceiveInfoModel.h; sourceTree = "<group>"; };
|
||||
E884C36B2743951B00E1EBED /* GiftReceiveInfoModel.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = GiftReceiveInfoModel.m; sourceTree = "<group>"; };
|
||||
E884C36D2743AAC800E1EBED /* AttachmentModel.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AttachmentModel.h; sourceTree = "<group>"; };
|
||||
@@ -3408,6 +3393,7 @@
|
||||
E8834E3F280022FC0029CCC1 /* XPGuildRemoveMemberProtocol.h */,
|
||||
E8834E4928003E390029CCC1 /* XPGuildManagerListProtocol.h */,
|
||||
E8834E4D28003E660029CCC1 /* XPGuildSetManagerProtocol.h */,
|
||||
E8834E572800586C0029CCC1 /* XPGuildManagerPerProtocol.h */,
|
||||
);
|
||||
path = Protocol;
|
||||
sourceTree = "<group>";
|
||||
@@ -3429,6 +3415,8 @@
|
||||
E8834E4728003E1E0029CCC1 /* XPGuildMangerListPresenter.m */,
|
||||
E8834E4A28003E4E0029CCC1 /* XPMineManagerSetPresenter.h */,
|
||||
E8834E4B28003E4E0029CCC1 /* XPMineManagerSetPresenter.m */,
|
||||
E8834E542800585A0029CCC1 /* XPGuildManagerPerPresenter.h */,
|
||||
E8834E552800585A0029CCC1 /* XPGuildManagerPerPresenter.m */,
|
||||
);
|
||||
path = Presenter;
|
||||
sourceTree = "<group>";
|
||||
@@ -3452,6 +3440,8 @@
|
||||
E8834E4428003A8F0029CCC1 /* XPMineMangerListViewController.m */,
|
||||
E8834E4028003A270029CCC1 /* XPMineGuildManagerSetViewController.h */,
|
||||
E8834E4128003A270029CCC1 /* XPMineGuildManagerSetViewController.m */,
|
||||
E8834E4E280051600029CCC1 /* XPMineGuildManagerPerViewController.h */,
|
||||
E8834E4F280051600029CCC1 /* XPMineGuildManagerPerViewController.m */,
|
||||
);
|
||||
path = View;
|
||||
sourceTree = "<group>";
|
||||
@@ -3495,6 +3485,8 @@
|
||||
E851E46127FF1314002F3ACB /* XPMineGuildEmptyTableViewCell.m */,
|
||||
E8834E33280009090029CCC1 /* XPMineGuildSearchMemberTableViewCell.h */,
|
||||
E8834E34280009090029CCC1 /* XPMineGuildSearchMemberTableViewCell.m */,
|
||||
E8834E51280052580029CCC1 /* XPMineGuildManagerPerTableViewCell.h */,
|
||||
E8834E52280052580029CCC1 /* XPMineGuildManagerPerTableViewCell.m */,
|
||||
);
|
||||
path = Cell;
|
||||
sourceTree = "<group>";
|
||||
@@ -3514,123 +3506,6 @@
|
||||
path = SubViews;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
E801273827E322D700BAC3F2 /* RoomPK */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
E801273D27E3230F00BAC3F2 /* Model */,
|
||||
E801273C27E3230400BAC3F2 /* Api */,
|
||||
E801273B27E322FE00BAC3F2 /* View */,
|
||||
E801273A27E322F500BAC3F2 /* Presenter */,
|
||||
E801273927E322E900BAC3F2 /* Protocol */,
|
||||
);
|
||||
path = RoomPK;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
E801273927E322E900BAC3F2 /* Protocol */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
E801274427E3240000BAC3F2 /* XPRoomPKProtocol.h */,
|
||||
E8664EE027E45EE6000171BA /* XPRoomPKRecordProtocol.h */,
|
||||
);
|
||||
path = Protocol;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
E801273A27E322F500BAC3F2 /* Presenter */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
E801274127E323E500BAC3F2 /* XPRoomPKPresenter.h */,
|
||||
E801274227E323E500BAC3F2 /* XPRoomPKPresenter.m */,
|
||||
E8664EDD27E45EC7000171BA /* XPRoomPKRecordPresenter.h */,
|
||||
E8664EDE27E45EC7000171BA /* XPRoomPKRecordPresenter.m */,
|
||||
);
|
||||
path = Presenter;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
E801273B27E322FE00BAC3F2 /* View */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
E801275227E3321C00BAC3F2 /* SubViews */,
|
||||
E801274827E3278E00BAC3F2 /* Cell */,
|
||||
E801273E27E323C800BAC3F2 /* XPRoomPKViewController.h */,
|
||||
E801273F27E323C800BAC3F2 /* XPRoomPKViewController.m */,
|
||||
E8664ED427E434D5000171BA /* XPRoomPKRecordViewController.h */,
|
||||
E8664ED527E434D5000171BA /* XPRoomPKRecordViewController.m */,
|
||||
E81AF32327F1D5B8003B9E43 /* XPRoomPKProgressView.h */,
|
||||
E81AF32427F1D5B8003B9E43 /* XPRoomPKProgressView.m */,
|
||||
E80A086327F318620027B30C /* XPRoomPKPlayingView.h */,
|
||||
E80A086427F318620027B30C /* XPRoomPKPlayingView.m */,
|
||||
E84843AD27F59E7E0050D365 /* XPRoomPKResultView.h */,
|
||||
E84843AE27F59E7E0050D365 /* XPRoomPKResultView.m */,
|
||||
);
|
||||
path = View;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
E801273C27E3230400BAC3F2 /* Api */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
E801274527E3241700BAC3F2 /* Api+RoomPK.h */,
|
||||
E801274627E3241700BAC3F2 /* Api+RoomPK.m */,
|
||||
);
|
||||
path = Api;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
E801273D27E3230F00BAC3F2 /* Model */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
E801275627E347FD00BAC3F2 /* RoomPKRecordModel.h */,
|
||||
E801275727E347FD00BAC3F2 /* RoomPKRecordModel.m */,
|
||||
E8664EE427E482EF000171BA /* RoomPKTeamModel.h */,
|
||||
E8664EE527E482EF000171BA /* RoomPKTeamModel.m */,
|
||||
E8664ED127E4258A000171BA /* RoomPKTimeItemModel.h */,
|
||||
E8664ED227E4258A000171BA /* RoomPKTimeItemModel.m */,
|
||||
E8A88D2B27E81E8700CA8837 /* RoomPKChooseUserModel.h */,
|
||||
E8A88D2C27E81E8700CA8837 /* RoomPKChooseUserModel.m */,
|
||||
E8A88D2E27E85EEA00CA8837 /* RoomPKInfoModel.h */,
|
||||
E8A88D2F27E85EEA00CA8837 /* RoomPKInfoModel.m */,
|
||||
E80A086027F2AC190027B30C /* RoomPKDetailInfoModel.h */,
|
||||
E80A086127F2AC190027B30C /* RoomPKDetailInfoModel.m */,
|
||||
);
|
||||
path = Model;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
E801274827E3278E00BAC3F2 /* Cell */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
E801274927E327DA00BAC3F2 /* XPRoomPKTypeTableViewCell.h */,
|
||||
E801274A27E327DA00BAC3F2 /* XPRoomPKTypeTableViewCell.m */,
|
||||
E801274C27E3280000BAC3F2 /* XPRoomPKVoteTableViewCell.h */,
|
||||
E801274D27E3280000BAC3F2 /* XPRoomPKVoteTableViewCell.m */,
|
||||
E801274F27E3281100BAC3F2 /* XPRoomPKTimeTableViewCell.h */,
|
||||
E801275027E3281100BAC3F2 /* XPRoomPKTimeTableViewCell.m */,
|
||||
E8664ED727E4355C000171BA /* XPRoomPKRecordTableViewCell.h */,
|
||||
E8664ED827E4355C000171BA /* XPRoomPKRecordTableViewCell.m */,
|
||||
E8664EDA27E43632000171BA /* XPRoomPKEmptyTableViewCell.h */,
|
||||
E8664EDB27E43632000171BA /* XPRoomPKEmptyTableViewCell.m */,
|
||||
E8A88D2827E81C8600CA8837 /* XPRoomPKUserCollectionViewCell.h */,
|
||||
E8A88D2927E81C8600CA8837 /* XPRoomPKUserCollectionViewCell.m */,
|
||||
);
|
||||
path = Cell;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
E801275227E3321C00BAC3F2 /* SubViews */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
E801275327E3326000BAC3F2 /* XPRoomPKUserView.h */,
|
||||
E801275427E3326000BAC3F2 /* XPRoomPKUserView.m */,
|
||||
E8664ECE27E42238000171BA /* XPRoomPKTimePickerView.h */,
|
||||
E8664ECF27E42238000171BA /* XPRoomPKTimePickerView.m */,
|
||||
E8664EE127E47711000171BA /* XPRoomPKRecordNickView.h */,
|
||||
E8664EE227E47711000171BA /* XPRoomPKRecordNickView.m */,
|
||||
E8A88D2527E8193400CA8837 /* XPRoomPKSelectUserView.h */,
|
||||
E8A88D2627E8193400CA8837 /* XPRoomPKSelectUserView.m */,
|
||||
E81AF32627F1EE69003B9E43 /* XPRoomPKPanelUserView.h */,
|
||||
E81AF32727F1EE69003B9E43 /* XPRoomPKPanelUserView.m */,
|
||||
E84843B027F5A0740050D365 /* XPRomPKResultTitleLabel.h */,
|
||||
E84843B127F5A0740050D365 /* XPRomPKResultTitleLabel.m */,
|
||||
);
|
||||
path = SubViews;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
E804875F2717DD70008595F2 /* Model */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
@@ -5846,7 +5721,6 @@
|
||||
E8C6FFD42754AA87004DC9F0 /* XPNoteView.m in Sources */,
|
||||
9B2EA7C628041EFC00ED17BF /* XPAnchorPkPanelView.m in Sources */,
|
||||
E84150BB27747BAF00A7F548 /* XPFirstRechargePresenter.m in Sources */,
|
||||
E8A88D2D27E81E8700CA8837 /* RoomPKChooseUserModel.m in Sources */,
|
||||
E800806B27FD42B00055A8AB /* XPClanRoomCollectionViewCell.m in Sources */,
|
||||
9BEE3D1727858E5700C83219 /* XPNobleAuthorityDescView.m in Sources */,
|
||||
E8834E3227FFD64F0029CCC1 /* GuildAuthModel.m in Sources */,
|
||||
@@ -5951,6 +5825,7 @@
|
||||
189DD55A26DE39D200AB55B1 /* BaseMvpPresenter.m in Sources */,
|
||||
E8F9168E27ECA69500F10D8F /* HomeLittleGameRoomModel.m in Sources */,
|
||||
E800805D27FD34E90055A8AB /* XPMineGuildViewController.m in Sources */,
|
||||
E8834E50280051600029CCC1 /* XPMineGuildManagerPerViewController.m in Sources */,
|
||||
9BC5C8F9277B02EA007C8719 /* Api+NobleCenter.m in Sources */,
|
||||
180806D827293794001FD836 /* NSObject+MJExtension.m in Sources */,
|
||||
E88863D3278ED4C0004BCFAB /* Timestamp.m in Sources */,
|
||||
@@ -6006,6 +5881,7 @@
|
||||
E824544326F58FCE00BE8163 /* XPMinePayPwdInputView.m in Sources */,
|
||||
9B1B72A1280023F3003FACE9 /* XPMineAnchorFansTeamTableViewCell.m in Sources */,
|
||||
1808073027315E8E001FD836 /* NetImageView.m in Sources */,
|
||||
E8834E562800585A0029CCC1 /* XPGuildManagerPerPresenter.m in Sources */,
|
||||
E880B3AC278BD98600A83B0D /* XPAcrossRoomPKEmptyTableViewCell.m in Sources */,
|
||||
18486235271EB794005FC5DC /* AgoraRtcImpl.m in Sources */,
|
||||
9B92A3392797BE4500AD168F /* XPMineSkillTipView.m in Sources */,
|
||||
@@ -6081,7 +5957,6 @@
|
||||
E8DBB70127B6501200AA285D /* XPLittleGameMiniStageView.m in Sources */,
|
||||
E851E46227FF1314002F3ACB /* XPMineGuildEmptyTableViewCell.m in Sources */,
|
||||
E8834E3B280012B60029CCC1 /* XPMineGuildRemoveMemberViewController.m in Sources */,
|
||||
E8664EDC27E43632000171BA /* XPRoomPKEmptyTableViewCell.m in Sources */,
|
||||
E880B3A9278BD82300A83B0D /* AcrossRoomPKInfoModel.m in Sources */,
|
||||
E82D5C7A276B25D100858D6D /* SpriteSheetImageManager.m in Sources */,
|
||||
E874B88B27215EAF003954B9 /* MicroQueueModel.m in Sources */,
|
||||
@@ -6094,6 +5969,7 @@
|
||||
9B1B72B528003664003FACE9 /* Api+AnchorPk.m in Sources */,
|
||||
E8EEB90626FC5772007C6EBA /* XPMineUserInfoEditViewController.m in Sources */,
|
||||
E8B846D626FDE01B00A777FE /* XPMineRechargePresenter.m in Sources */,
|
||||
E8834E53280052580029CCC1 /* XPMineGuildManagerPerTableViewCell.m in Sources */,
|
||||
E8EEB91426FC7786007C6EBA /* XPMineUserInfoNickViewController.m in Sources */,
|
||||
18E7B31B26F0982E0064BC9B /* UserExpand.m in Sources */,
|
||||
9BDA3E7D27FD47AB00517FE6 /* XPAnchorFansTeamPresenter.m in Sources */,
|
||||
@@ -6300,7 +6176,6 @@
|
||||
189DD75026E21D9000AB55B1 /* GCDHelper.m in Sources */,
|
||||
E82D5C76276AEB5100858D6D /* NameplateModel.m in Sources */,
|
||||
E800806227FD373D0055A8AB /* XPClanMemberTableViewCell.m in Sources */,
|
||||
E81AF32827F1EE69003B9E43 /* XPRoomPKPanelUserView.m in Sources */,
|
||||
E84150BF27747BD300A7F548 /* Api+FirstRecharge.m in Sources */,
|
||||
E84B0E422727EE0A008818C6 /* XPRoomMessageHeaderView.m in Sources */,
|
||||
E8C6FFDD2754CF5D004DC9F0 /* HomeRecommendRoomModel.m in Sources */,
|
||||
|
@@ -97,6 +97,19 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
/// @param uid 用户的uid
|
||||
/// @param targetUid 目标用户的uid
|
||||
+ (void)guildRoomCancelManagerCompletion:(HttpRequestHelperCompletion)completion hallId:(NSString *)hallId uid:(NSString *)uid targetUid:(NSString *)targetUid;
|
||||
|
||||
/// 公会管理权限
|
||||
/// @param completion 完成
|
||||
/// @param uid 用户的uid
|
||||
/// @param managerUid 管理的uid
|
||||
+ (void)guildManagerAuthCompletion:(HttpRequestHelperCompletion)completion uid:(NSString *)uid managerUid:(NSString *)managerUid;
|
||||
|
||||
/// 设置公会管理权限
|
||||
/// @param completion 完成
|
||||
/// @param uid 用户的uid
|
||||
/// @param managerUid 管理的uid
|
||||
/// @param authStr 权限的字段
|
||||
+ (void)setGuildManagerAuthCompletion:(HttpRequestHelperCompletion)completion uid:(NSString *)uid managerUid:(NSString *)managerUid hallId:(NSString *)hallId authStr:(NSString *)authStr;
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
|
@@ -119,7 +119,24 @@
|
||||
/// @param uid 用户的uid
|
||||
/// @param targetUid 目标用户的uid
|
||||
+ (void)guildRoomCancelManagerCompletion:(HttpRequestHelperCompletion)completion hallId:(NSString *)hallId uid:(NSString *)uid targetUid:(NSString *)targetUid {
|
||||
[self makeRequest:@"hall/setManager" method:HttpRequestHelperMethodPOST completion:completion, __FUNCTION__, hallId, uid, targetUid, nil];
|
||||
[self makeRequest:@"hall/removeManager" method:HttpRequestHelperMethodPOST completion:completion, __FUNCTION__, hallId, uid, targetUid, nil];
|
||||
}
|
||||
|
||||
/// 公会管理权限
|
||||
/// @param completion 完成
|
||||
/// @param uid 用户的uid
|
||||
/// @param managerUid 管理的uid
|
||||
+ (void)guildManagerAuthCompletion:(HttpRequestHelperCompletion)completion uid:(NSString *)uid managerUid:(NSString *)managerUid {
|
||||
[self makeRequest:@"hallAuth/getHallManagerAuths" method:HttpRequestHelperMethodPOST completion:completion, __FUNCTION__, managerUid, uid, nil];
|
||||
}
|
||||
|
||||
/// 设置公会管理权限
|
||||
/// @param completion 完成
|
||||
/// @param uid 用户的uid
|
||||
/// @param managerUid 管理的uid
|
||||
/// @param authStr 权限的字段
|
||||
+ (void)setGuildManagerAuthCompletion:(HttpRequestHelperCompletion)completion uid:(NSString *)uid managerUid:(NSString *)managerUid hallId:(NSString *)hallId authStr:(NSString *)authStr {
|
||||
[self makeRequest:@"hallAuth/setHallManagerAuths" method:HttpRequestHelperMethodPOST completion:completion, __FUNCTION__, uid, managerUid, hallId,authStr, nil];
|
||||
}
|
||||
|
||||
@end
|
||||
|
@@ -8,18 +8,6 @@
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
typedef NS_ENUM(NSInteger, GuildMemberAuthType) {
|
||||
///添加成员
|
||||
GuildMemberAuthType_Add_Member = 1,
|
||||
///移除成员
|
||||
GuildMemberAuthType_Remove_Member,
|
||||
///成员收入
|
||||
GuildMemberAuthType_Member_Income,
|
||||
///退出房间
|
||||
GuildMemberAuthType_Exit,
|
||||
///主播收入
|
||||
GuildMemberAuthType_Single_Income,
|
||||
};
|
||||
|
||||
@interface GuildAuthModel : NSObject
|
||||
///标题
|
||||
@@ -30,8 +18,6 @@ typedef NS_ENUM(NSInteger, GuildMemberAuthType) {
|
||||
@property (nonatomic, copy) NSString *code;
|
||||
///开关状态 staus为0表示未拥有此权限,status为1表示拥有此权限
|
||||
@property (nonatomic, assign) NSInteger status;
|
||||
///权限的类型 本地字段
|
||||
@property (nonatomic,assign) GuildMemberAuthType authType;
|
||||
|
||||
@end
|
||||
|
||||
|
@@ -0,0 +1,25 @@
|
||||
//
|
||||
// XPGuildManagerPerPesenter.h
|
||||
// xplan-ios
|
||||
//
|
||||
// Created by 冯硕 on 2022/4/8.
|
||||
//
|
||||
|
||||
#import "BaseMvpPresenter.h"
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@interface XPGuildManagerPerPresenter : BaseMvpPresenter
|
||||
|
||||
/// 获取房间管理权限
|
||||
/// @param managerUid 管理uid
|
||||
- (void)getGuildRoomManagerPermiss:(NSString *)managerUid;
|
||||
|
||||
/// 更新公会房间管理的权限
|
||||
/// @param hallId 公会的id
|
||||
/// @param managerUid 管理的uid
|
||||
/// @param authStr 更新的权限
|
||||
- (void)updateGuildRoomManagerPermiss:(NSString *)hallId managerUid:(NSString *)managerUid authStr:(NSString *)authStr;
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
@@ -0,0 +1,40 @@
|
||||
//
|
||||
// XPGuildManagerPerPesenter.m
|
||||
// xplan-ios
|
||||
//
|
||||
// Created by 冯硕 on 2022/4/8.
|
||||
//
|
||||
|
||||
#import "XPGuildManagerPerPresenter.h"
|
||||
#import "Api+Guild.h"
|
||||
#import "AccountInfoStorage.h"
|
||||
#import "GuildAuthModel.h"
|
||||
#import "XPGuildManagerPerProtocol.h"
|
||||
|
||||
|
||||
@implementation XPGuildManagerPerPresenter
|
||||
|
||||
|
||||
/// 获取房间管理权限
|
||||
/// @param managerUid 管理uid
|
||||
- (void)getGuildRoomManagerPermiss:(NSString *)managerUid {
|
||||
NSString * uid = [AccountInfoStorage instance].getUid;
|
||||
[Api guildManagerAuthCompletion:[self createHttpCompletion:^(BaseModel * _Nonnull data) {
|
||||
NSArray * array = [GuildAuthModel modelsWithArray:data.data];
|
||||
[[self getView] getGuildRoomManagerPermissSuccess:array];
|
||||
}] uid:uid managerUid:managerUid];
|
||||
}
|
||||
|
||||
|
||||
/// 更新公会房间管理的权限
|
||||
/// @param hallId 公会的id
|
||||
/// @param managerUid 管理的uid
|
||||
/// @param authStr 更新的权限
|
||||
- (void)updateGuildRoomManagerPermiss:(NSString *)hallId managerUid:(NSString *)managerUid authStr:(NSString *)authStr{
|
||||
NSString * uid = [AccountInfoStorage instance].getUid;
|
||||
[Api setGuildManagerAuthCompletion:[self createHttpCompletion:^(BaseModel * _Nonnull data) {
|
||||
[[self getView] updateGuildRoomManagerPermissSuccess];
|
||||
}] uid:uid managerUid:managerUid hallId:hallId authStr:authStr];
|
||||
}
|
||||
|
||||
@end
|
@@ -44,7 +44,7 @@
|
||||
/// @param hallId 公会的id
|
||||
- (void)guildRoomRemoveManager:(NSString *)targetUid hallId:(NSString *)hallId {
|
||||
NSString * uid = [AccountInfoStorage instance].getUid;
|
||||
[Api guildRoomSetManagerCompletion:[self createHttpCompletion:^(BaseModel * _Nonnull data) {
|
||||
[Api guildRoomCancelManagerCompletion:[self createHttpCompletion:^(BaseModel * _Nonnull data) {
|
||||
[[self getView] guildRoomRemoveManagerSuccess:targetUid];
|
||||
} showLoading:YES] hallId:hallId uid:uid targetUid:targetUid];
|
||||
}
|
||||
|
@@ -0,0 +1,22 @@
|
||||
//
|
||||
// XPGuildManagerPerProtocol.h
|
||||
// xplan-ios
|
||||
//
|
||||
// Created by 冯硕 on 2022/4/8.
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@protocol XPGuildManagerPerProtocol <NSObject>
|
||||
|
||||
///获取房间管理权限列表成功
|
||||
- (void)getGuildRoomManagerPermissSuccess:(NSArray *)array;
|
||||
|
||||
///更新权限成功
|
||||
- (void)updateGuildRoomManagerPermissSuccess;
|
||||
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
@@ -0,0 +1,25 @@
|
||||
//
|
||||
// XPMineGuildManagerPerTableViewCell.h
|
||||
// xplan-ios
|
||||
//
|
||||
// Created by 冯硕 on 2022/4/8.
|
||||
//
|
||||
|
||||
#import <UIKit/UIKit.h>
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
@class GuildAuthModel;
|
||||
@protocol XPMineGuildManagerPerTableViewCellDelegate <NSObject>
|
||||
|
||||
///开关
|
||||
- (void)xPMineGuildManagerPerTableViewCell:(UISwitch *)onswitch authInfo:(GuildAuthModel *)authInfo;
|
||||
|
||||
@end
|
||||
|
||||
@interface XPMineGuildManagerPerTableViewCell : UITableViewCell
|
||||
///代理
|
||||
@property (nonatomic,weak) id<XPMineGuildManagerPerTableViewCellDelegate> delegate;
|
||||
@property (nonatomic,strong) GuildAuthModel * authInfo;
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
@@ -0,0 +1,119 @@
|
||||
//
|
||||
// XPMineGuildManagerPerTableViewCell.m
|
||||
// xplan-ios
|
||||
//
|
||||
// Created by 冯硕 on 2022/4/8.
|
||||
//
|
||||
|
||||
#import "XPMineGuildManagerPerTableViewCell.h"
|
||||
///Third
|
||||
#import <Masonry/Masonry.h>
|
||||
///Tool
|
||||
#import "ThemeColor.h"
|
||||
///Model
|
||||
#import "GuildAuthModel.h"
|
||||
|
||||
@interface XPMineGuildManagerPerTableViewCell ()
|
||||
///容器
|
||||
@property (nonatomic,strong) UIStackView *stackView;
|
||||
///标题
|
||||
@property (nonatomic,strong) UILabel *titleLabel;
|
||||
///副标题
|
||||
@property (nonatomic,strong) UILabel *subTitleLabel;
|
||||
///开关
|
||||
@property (nonatomic,strong) UISwitch *onswitch;
|
||||
@end
|
||||
|
||||
@implementation XPMineGuildManagerPerTableViewCell
|
||||
|
||||
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
|
||||
if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
|
||||
[self initSubViews];
|
||||
[self initSubViewConstraints];
|
||||
}
|
||||
return self;
|
||||
}
|
||||
|
||||
#pragma mark - Private Method
|
||||
- (void)initSubViews {
|
||||
self.backgroundColor = [ThemeColor appCellBackgroundColor];
|
||||
self.selectionStyle = UITableViewCellSelectionStyleNone;
|
||||
[self.contentView addSubview:self.stackView];
|
||||
[self.contentView addSubview:self.onswitch];
|
||||
|
||||
[self.stackView addArrangedSubview:self.titleLabel];
|
||||
[self.stackView addArrangedSubview:self.subTitleLabel];
|
||||
}
|
||||
|
||||
- (void)initSubViewConstraints {
|
||||
[self.stackView mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.left.mas_equalTo(self.contentView).offset(15);
|
||||
make.centerY.mas_equalTo(self.contentView);
|
||||
}];
|
||||
|
||||
[self.onswitch mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.right.mas_equalTo(self.contentView).offset(-15);
|
||||
make.centerY.mas_equalTo(self.contentView);
|
||||
make.width.mas_equalTo(44);
|
||||
make.height.mas_equalTo(24);
|
||||
}];
|
||||
}
|
||||
|
||||
#pragma mark - Event Response
|
||||
- (void)onswitchChange:(UISwitch *)on {
|
||||
if (self.delegate && [self.delegate respondsToSelector:@selector(xPMineGuildManagerPerTableViewCell:authInfo:)]) {
|
||||
[self.delegate xPMineGuildManagerPerTableViewCell:on authInfo:self.authInfo];
|
||||
}
|
||||
}
|
||||
|
||||
#pragma mark - Getters And Setters
|
||||
- (void)setAuthInfo:(GuildAuthModel *)authInfo {
|
||||
_authInfo = authInfo;
|
||||
if (_authInfo) {
|
||||
self.titleLabel.text = _authInfo.name;
|
||||
self.subTitleLabel.text = _authInfo.des;
|
||||
self.titleLabel.hidden = _authInfo.name.length <= 0;
|
||||
self.subTitleLabel.hidden = _authInfo.des.length <= 0;
|
||||
self.onswitch.on = _authInfo.status;
|
||||
}
|
||||
}
|
||||
|
||||
- (UIStackView *)stackView {
|
||||
if (!_stackView) {
|
||||
_stackView = [[UIStackView alloc] init];
|
||||
_stackView.axis = UILayoutConstraintAxisVertical;
|
||||
_stackView.distribution = UIStackViewDistributionFill;
|
||||
_stackView.alignment = UIStackViewAlignmentFill;
|
||||
_stackView.spacing = 5;
|
||||
}
|
||||
return _stackView;
|
||||
}
|
||||
|
||||
- (UILabel *)titleLabel {
|
||||
if (!_titleLabel) {
|
||||
_titleLabel = [[UILabel alloc] init];
|
||||
_titleLabel.font = [UIFont systemFontOfSize:15];
|
||||
_titleLabel.textColor = [ThemeColor mainTextColor];
|
||||
}
|
||||
return _titleLabel;
|
||||
}
|
||||
|
||||
- (UILabel *)subTitleLabel {
|
||||
if (!_subTitleLabel) {
|
||||
_subTitleLabel = [[UILabel alloc] init];
|
||||
_subTitleLabel.font = [UIFont systemFontOfSize:13];
|
||||
_subTitleLabel.textColor = [ThemeColor secondTextColor];
|
||||
}
|
||||
return _subTitleLabel;
|
||||
}
|
||||
|
||||
- (UISwitch *)onswitch {
|
||||
if (!_onswitch) {
|
||||
_onswitch = [[UISwitch alloc] init];
|
||||
_onswitch.onTintColor = [ThemeColor appMainColor];
|
||||
[_onswitch addTarget:self action:@selector(onswitchChange:) forControlEvents:UIControlEventValueChanged];
|
||||
}
|
||||
return _onswitch;
|
||||
}
|
||||
|
||||
@end
|
@@ -0,0 +1,19 @@
|
||||
//
|
||||
// XPMineGuildManagerPerViewController.h
|
||||
// xplan-ios
|
||||
//
|
||||
// Created by 冯硕 on 2022/4/8.
|
||||
//
|
||||
|
||||
#import "MvpViewController.h"
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
@class ClanMemberInfoModel;
|
||||
@interface XPMineGuildManagerPerViewController : MvpViewController
|
||||
///公会de ID
|
||||
@property (nonatomic,copy) NSString *guildId;
|
||||
///管理员的信息
|
||||
@property (nonatomic,strong) ClanMemberInfoModel *managerInfo;
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
@@ -0,0 +1,321 @@
|
||||
//
|
||||
// XPMineGuildManagerPerViewController.m
|
||||
// xplan-ios
|
||||
//
|
||||
// Created by 冯硕 on 2022/4/8.
|
||||
// 管理权限
|
||||
|
||||
#import "XPMineGuildManagerPerViewController.h"
|
||||
///Third
|
||||
#import <Masonry/Masonry.h>
|
||||
///Tool
|
||||
#import "ThemeColor.h"
|
||||
#import "XPMacro.h"
|
||||
#import "NetImageView.h"
|
||||
#import "TTPopup.h"
|
||||
///Model
|
||||
#import "ClanMemberDetailInfoModel.h"
|
||||
#import "GuildAuthModel.h"
|
||||
///View
|
||||
#import "XPMineGuildManagerPerTableViewCell.h"
|
||||
///P
|
||||
#import "XPGuildManagerPerPresenter.h"
|
||||
#import "XPGuildManagerPerProtocol.h"
|
||||
@interface XPMineGuildManagerPerViewController ()<UITableViewDelegate, UITableViewDataSource,XPGuildManagerPerProtocol,XPMineGuildManagerPerTableViewCellDelegate>
|
||||
///导航啦
|
||||
@property (nonatomic,strong) UIView * navView;
|
||||
///返回按钮
|
||||
@property (nonatomic,strong) UIButton *backButton;
|
||||
///标题
|
||||
@property (nonatomic,strong) UILabel *titleLabel;
|
||||
///完成
|
||||
@property (nonatomic,strong) UIButton *completionButton;
|
||||
///列表
|
||||
@property (nonatomic,strong) UITableView *tableView;
|
||||
///用户信息
|
||||
@property (nonatomic,strong) UIView * contentView;
|
||||
///用户头像
|
||||
@property (nonatomic,strong) NetImageView *avatarImageView;
|
||||
///用户昵称
|
||||
@property (nonatomic,strong) UILabel *nickLabel;
|
||||
///数据源
|
||||
@property (nonatomic,strong) NSArray *datasource;
|
||||
///权限的数组
|
||||
@property (nonatomic,strong) NSMutableArray *authArray;
|
||||
///改变的数组
|
||||
@property (nonatomic,strong) NSMutableArray *changeArray;
|
||||
@end
|
||||
|
||||
@implementation XPMineGuildManagerPerViewController
|
||||
|
||||
- (BOOL)isHiddenNavBar {
|
||||
return YES;
|
||||
}
|
||||
|
||||
- (__kindof id)createPresenter {
|
||||
return [[XPGuildManagerPerPresenter alloc] init];;
|
||||
}
|
||||
|
||||
- (void)viewDidLoad {
|
||||
[super viewDidLoad];
|
||||
[self initSubViews];
|
||||
[self initSubViewConstraints];
|
||||
[self.presenter getGuildRoomManagerPermiss:self.managerInfo.uid];
|
||||
}
|
||||
|
||||
#pragma mark - Private Method
|
||||
- (void)initSubViews {
|
||||
self.titleLabel.text = @"权限设置";
|
||||
[self.view addSubview:self.navView];
|
||||
[self.view addSubview:self.contentView];
|
||||
[self.view addSubview:self.tableView];
|
||||
|
||||
[self.navView addSubview:self.backButton];
|
||||
[self.navView addSubview:self.titleLabel];
|
||||
[self.navView addSubview:self.completionButton];
|
||||
|
||||
[self.contentView addSubview:self.avatarImageView];
|
||||
[self.contentView addSubview:self.nickLabel];
|
||||
}
|
||||
|
||||
- (void)initSubViewConstraints {
|
||||
[self.navView mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.left.right.top.mas_equalTo(self.view);
|
||||
make.height.mas_equalTo(kNavigationHeight);
|
||||
}];
|
||||
|
||||
[self.backButton mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.left.mas_equalTo(self.view).mas_offset(10);
|
||||
make.top.mas_equalTo(statusbarHeight);
|
||||
make.height.width.mas_equalTo(44);
|
||||
}];
|
||||
|
||||
[self.titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.left.right.mas_equalTo(self.navView);
|
||||
make.centerY.mas_equalTo(self.backButton);
|
||||
}];
|
||||
|
||||
[self.completionButton mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.right.mas_equalTo(self.navView).offset(-15);
|
||||
make.centerY.mas_equalTo(self.backButton);
|
||||
}];
|
||||
|
||||
[self.contentView mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.top.mas_equalTo(self.navView.mas_bottom);
|
||||
make.left.right.mas_equalTo(self.view);
|
||||
make.height.mas_equalTo(50);
|
||||
}];
|
||||
|
||||
[self.avatarImageView mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.size.mas_equalTo(CGSizeMake(40, 40));
|
||||
make.left.mas_equalTo(self.contentView).offset(15);
|
||||
make.top.mas_equalTo(self.contentView).offset(10);
|
||||
}];
|
||||
[self.nickLabel mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.centerY.mas_equalTo(self.avatarImageView);
|
||||
make.left.mas_equalTo(self.avatarImageView.mas_right).offset(10);
|
||||
}];
|
||||
[self.tableView mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.left.right.bottom.mas_equalTo(self.view);
|
||||
make.top.mas_equalTo(self.contentView.mas_bottom);
|
||||
}];
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
#pragma mark - UITableViewDelegate And UITableViewDataSource
|
||||
- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath {
|
||||
return 70;
|
||||
}
|
||||
|
||||
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
|
||||
return self.datasource.count;
|
||||
}
|
||||
|
||||
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
|
||||
XPMineGuildManagerPerTableViewCell * cell = [tableView dequeueReusableCellWithIdentifier:NSStringFromClass([XPMineGuildManagerPerTableViewCell class])];
|
||||
if (cell == nil) {
|
||||
cell = [[XPMineGuildManagerPerTableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:NSStringFromClass([XPMineGuildManagerPerTableViewCell class])];
|
||||
}
|
||||
GuildAuthModel * authInfo = [self.datasource objectAtIndex:indexPath.row];
|
||||
cell.authInfo = authInfo;
|
||||
cell.delegate = self;
|
||||
if (authInfo.status) {
|
||||
if (![self.authArray containsObject:authInfo.code]) {
|
||||
[self.authArray addObject:authInfo.code];
|
||||
}
|
||||
} else {
|
||||
if ([self.authArray containsObject:authInfo.code]) {
|
||||
[self.authArray removeObject:authInfo.code];
|
||||
}
|
||||
}
|
||||
return cell;
|
||||
}
|
||||
|
||||
#pragma mark - XPMineGuildManagerPerTableViewCellDelegate
|
||||
- (void)xPMineGuildManagerPerTableViewCell:(UISwitch *)onswitch authInfo:(GuildAuthModel *)authInfo {
|
||||
if (onswitch.on) {
|
||||
if (![self.authArray containsObject:authInfo.code]) {
|
||||
[self.authArray addObject:authInfo.code];
|
||||
}
|
||||
|
||||
if (![self.changeArray containsObject:authInfo.code]) {
|
||||
[self.changeArray addObject:authInfo.code];
|
||||
}
|
||||
|
||||
} else {
|
||||
if ([self.authArray containsObject:authInfo.code]) {
|
||||
[self.authArray removeObject:authInfo.code];
|
||||
}
|
||||
|
||||
if ([self.changeArray containsObject:authInfo.code]) {
|
||||
[self.changeArray removeObject:authInfo.code];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#pragma mark - ClanMemberDetailInfoModel
|
||||
- (void)getGuildRoomManagerPermissSuccess:(NSArray *)array {
|
||||
self.datasource = array;
|
||||
[self.tableView reloadData];
|
||||
}
|
||||
|
||||
- (void)updateGuildRoomManagerPermissSuccess {
|
||||
[self showSuccessToast:@"设置成功"];
|
||||
[self.navigationController popViewControllerAnimated:YES];
|
||||
}
|
||||
|
||||
#pragma mark - Event Response
|
||||
- (void)completionButtonAction:(UIButton *)sender {
|
||||
if (self.authArray.count > 0) {
|
||||
NSString *authStr = [[self.authArray componentsJoinedByString:@","] stringByAppendingString:@","];
|
||||
[self.presenter updateGuildRoomManagerPermiss:self.guildId managerUid:self.managerInfo.uid authStr:authStr];
|
||||
} else {
|
||||
[self.presenter updateGuildRoomManagerPermiss:self.guildId managerUid:self.managerInfo.uid authStr:@""];
|
||||
}
|
||||
}
|
||||
|
||||
- (void)backButtonAction:(UIButton *)sender {
|
||||
if (self.changeArray.count == 0) {
|
||||
[self.navigationController popViewControllerAnimated:YES];
|
||||
return;
|
||||
}
|
||||
|
||||
[TTPopup alertWithMessage:@"您有设置未保存,确定直接返回吗?" confirmHandler:^{
|
||||
[self.navigationController popViewControllerAnimated:YES];
|
||||
} cancelHandler:^{
|
||||
}];
|
||||
}
|
||||
|
||||
#pragma mark - Getters And Setters
|
||||
- (void)setManagerInfo:(ClanMemberInfoModel *)managerInfo {
|
||||
_managerInfo = managerInfo;
|
||||
if (_managerInfo) {
|
||||
self.avatarImageView.imageUrl = _managerInfo.avatar;
|
||||
self.nickLabel.text = _managerInfo.nick;
|
||||
}
|
||||
}
|
||||
|
||||
- (UIView *)contentView {
|
||||
if (!_contentView) {
|
||||
_contentView = [[UIView alloc] init];
|
||||
_contentView.backgroundColor = [ThemeColor appCellBackgroundColor];
|
||||
}
|
||||
return _contentView;
|
||||
}
|
||||
|
||||
- (UITableView *)tableView {
|
||||
if (!_tableView) {
|
||||
_tableView = [[UITableView alloc] initWithFrame:CGRectZero style:UITableViewStylePlain];
|
||||
_tableView.delegate = self;
|
||||
_tableView.dataSource = self;
|
||||
_tableView.tableFooterView = [UIView new];
|
||||
_tableView.separatorStyle = UITableViewCellSeparatorStyleNone;
|
||||
_tableView.backgroundColor = [UIColor clearColor];
|
||||
_tableView.scrollEnabled = NO;
|
||||
if (@available(iOS 11.0, *)) {
|
||||
_tableView.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever;
|
||||
}
|
||||
[_tableView registerClass:[XPMineGuildManagerPerTableViewCell class] forCellReuseIdentifier:NSStringFromClass([XPMineGuildManagerPerTableViewCell class])];
|
||||
}
|
||||
return _tableView;
|
||||
}
|
||||
|
||||
- (NetImageView *)avatarImageView {
|
||||
if (!_avatarImageView) {
|
||||
NetImageConfig * config = [[NetImageConfig alloc]init];
|
||||
config.imageType = ImageTypeUserIcon;
|
||||
config.placeHolder = [UIImageConstant defaultAvatarPlaceholder];
|
||||
_avatarImageView = [[NetImageView alloc] initWithConfig:config];
|
||||
_avatarImageView.layer.masksToBounds = YES;
|
||||
_avatarImageView.layer.cornerRadius = 20;
|
||||
}
|
||||
return _avatarImageView;
|
||||
}
|
||||
|
||||
- (UILabel *)nickLabel{
|
||||
if (!_nickLabel) {
|
||||
_nickLabel = [[UILabel alloc] init];
|
||||
_nickLabel.textColor = [ThemeColor mainTextColor];
|
||||
_nickLabel.font = [UIFont systemFontOfSize:15.f];
|
||||
}
|
||||
return _nickLabel;
|
||||
}
|
||||
|
||||
- (UIView *)navView {
|
||||
if (!_navView) {
|
||||
_navView = [[UIView alloc] init];
|
||||
_navView.backgroundColor = [UIColor whiteColor];
|
||||
}
|
||||
return _navView;
|
||||
}
|
||||
|
||||
- (UIButton *)backButton {
|
||||
if (!_backButton) {
|
||||
_backButton = [UIButton buttonWithType:UIButtonTypeCustom];
|
||||
[_backButton setImage:[UIImage imageNamed:@"common_nav_back"] forState:UIControlStateNormal];
|
||||
_backButton.contentHorizontalAlignment = UIControlContentHorizontalAlignmentLeft;
|
||||
[_backButton addTarget:self action:@selector(backButtonAction:) forControlEvents:UIControlEventTouchUpInside];
|
||||
}
|
||||
return _backButton;
|
||||
}
|
||||
|
||||
|
||||
- (UIButton *)completionButton {
|
||||
if (!_completionButton) {
|
||||
_completionButton = [UIButton buttonWithType:UIButtonTypeCustom];
|
||||
[_completionButton setTitle:@"完成" forState:UIControlStateNormal];
|
||||
[_completionButton setTitleColor:[ThemeColor appMainColor] forState:UIControlStateNormal];
|
||||
_completionButton.titleLabel.font = [UIFont systemFontOfSize:15];
|
||||
[_completionButton addTarget:self action:@selector(completionButtonAction:) forControlEvents:UIControlEventTouchUpInside];
|
||||
}
|
||||
return _completionButton;
|
||||
}
|
||||
|
||||
|
||||
- (UILabel *)titleLabel {
|
||||
if (!_titleLabel) {
|
||||
_titleLabel = [[UILabel alloc] init];
|
||||
_titleLabel.textAlignment = NSTextAlignmentCenter;
|
||||
_titleLabel.font = [UIFont boldSystemFontOfSize:18];
|
||||
_titleLabel.textColor = [ThemeColor mainTextColor];
|
||||
}
|
||||
return _titleLabel;
|
||||
}
|
||||
|
||||
- (NSMutableArray *)authArray {
|
||||
if (!_authArray) {
|
||||
_authArray = [NSMutableArray array];
|
||||
}
|
||||
return _authArray;
|
||||
}
|
||||
|
||||
- (NSMutableArray *)changeArray {
|
||||
if (!_changeArray) {
|
||||
_changeArray = [NSMutableArray array];
|
||||
}
|
||||
return _changeArray;
|
||||
}
|
||||
|
||||
@end
|
@@ -30,7 +30,7 @@
|
||||
///是否有更多数据
|
||||
@property (nonatomic,assign) BOOL hasNoMoreData;
|
||||
///数据源
|
||||
@property (nonatomic,strong) NSMutableArray *datasource;
|
||||
@property (nonatomic,strong) NSMutableArray<ClanMemberInfoModel *> *datasource;
|
||||
///管理的数量
|
||||
@property (nonatomic,assign) int managerNumber;
|
||||
@end
|
||||
@@ -136,7 +136,11 @@
|
||||
config.message = title;
|
||||
config.messageAttributedConfig = array;
|
||||
[TTPopup alertWithConfig:config confirmHandler:^{
|
||||
|
||||
if (memberInfo.roleType == GuildRoleType_Manager) {
|
||||
[self.presenter guildRoomRemoveManager:memberInfo.uid hallId:self.guildId];
|
||||
} else {
|
||||
[self.presenter guildRoomAddManager:memberInfo.uid hallId:self.guildId];
|
||||
}
|
||||
} cancelHandler:^{
|
||||
|
||||
}];
|
||||
@@ -204,11 +208,23 @@
|
||||
}
|
||||
|
||||
- (void)guildRoomAddManagerSuccess:(NSString *)targetUid {
|
||||
|
||||
[self.datasource enumerateObjectsUsingBlock:^(ClanMemberInfoModel * _Nonnull obj, NSUInteger idx, BOOL * _Nonnull stop) {
|
||||
if (obj.uid == targetUid) {
|
||||
obj.roleType = GuildRoleType_Manager;
|
||||
*stop = YES;
|
||||
}
|
||||
}];
|
||||
[self.tableView reloadData];
|
||||
}
|
||||
|
||||
- (void)guildRoomRemoveManagerSuccess:(NSString *)targetUid {
|
||||
|
||||
self.managerNumber -= 1;
|
||||
[self.datasource enumerateObjectsUsingBlock:^(ClanMemberInfoModel * _Nonnull obj, NSUInteger idx, BOOL * _Nonnull stop) {
|
||||
if (obj.uid == targetUid) {
|
||||
obj.roleType = GuildRoleType_Normal;
|
||||
*stop = YES;
|
||||
}
|
||||
}];
|
||||
[self.tableView reloadData];
|
||||
}
|
||||
#pragma mark - Getters And Setters
|
||||
- (UITableView *)tableView {
|
||||
|
@@ -16,6 +16,7 @@
|
||||
#import "XPClanMemberTableViewCell.h"
|
||||
#import "XPMineGuildEmptyTableViewCell.h"
|
||||
#import "XPMineGuildManagerSetViewController.h"
|
||||
#import "XPMineGuildManagerPerViewController.h"
|
||||
///P
|
||||
#import "XPGuildMangerListPresenter.h"
|
||||
#import "XPGuildManagerListProtocol.h"
|
||||
@@ -138,6 +139,13 @@
|
||||
|
||||
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
|
||||
[tableView deselectRowAtIndexPath:indexPath animated:YES];
|
||||
if (self.datasource.count > 0) {
|
||||
ClanMemberInfoModel * memberInfo = [self.datasource objectAtIndex:indexPath.row];
|
||||
XPMineGuildManagerPerViewController * managerAuthVC = [[XPMineGuildManagerPerViewController alloc] init];
|
||||
managerAuthVC.guildId = self.guildId;
|
||||
managerAuthVC.managerInfo = memberInfo;
|
||||
[self.navigationController pushViewController:managerAuthVC animated:YES];
|
||||
}
|
||||
}
|
||||
|
||||
#pragma mark -XPGuildRemoveMemberProtolcol
|
||||
|
Reference in New Issue
Block a user