79 lines
2.2 KiB
Objective-C
79 lines
2.2 KiB
Objective-C
//
|
|
// CreateEventPresenter.h
|
|
// YuMi
|
|
//
|
|
// Created by P on 2025/5/9.
|
|
//
|
|
|
|
#import "BaseMvpPresenter.h"
|
|
#import "EventItemModel.h"
|
|
#import "EventRoomModel.h"
|
|
#import "EventConfigModel.h"
|
|
#import "WalletInfoModel.h"
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
@protocol CreateEventPresenterProcotol <NSObject>
|
|
@optional
|
|
|
|
- (void)loadCongfigSuccess:(EventConfigModel *)model;
|
|
- (void)loadCongfigFailure:(NSString *)msg;
|
|
|
|
- (void)eventSquareListSuccess:(NSArray <EventItemModel *>*)list;
|
|
- (void)eventSquareListFailure:(NSString *)msg;
|
|
|
|
- (void)myCreateEventListSuccess:(NSArray <EventItemModel *>*)list;
|
|
- (void)myCreateEventListFailure:(NSString *)msg;
|
|
|
|
- (void)mySubEventListSuccess:(NSArray <EventItemModel *>*)list;
|
|
- (void)mySubEventListFailure:(NSString *)msg;
|
|
- (void)myEventListFailure:(NSString *)msg;
|
|
|
|
- (void)myRoomListSuccess:(EventRoomListModel *)listModel;
|
|
- (void)myRoomListFailure:(NSString *)msg;
|
|
|
|
- (void)createEventSuccess;
|
|
- (void)createEventFailure:(NSString *)msg;
|
|
|
|
- (void)eventSubActionSuccess:(BOOL)isSub eventId:(NSInteger)eventId;
|
|
- (void)eventSubActionFailure:(NSString *)msg;
|
|
|
|
- (void)deleteEventSuccess:(NSInteger)eventId;
|
|
- (void)deleteEventFailure:(NSString *)msg;
|
|
|
|
- (void)officialEventListSuccess:(EventRoomListModel *)listModel;
|
|
- (void)officialEventListFailure:(NSString *)msg;
|
|
|
|
|
|
@end
|
|
|
|
@interface CreateEventPresenter : BaseMvpPresenter
|
|
|
|
- (void)loadConfig;
|
|
- (void)loadOfficialEvents;
|
|
- (void)loadEventSquare:(NSInteger)page;
|
|
- (void)loadMyCreateEvents:(NSInteger)page;
|
|
- (void)loadMySubEvents:(NSInteger)page;
|
|
- (void)loadMyEvents;
|
|
- (void)loadMyRooms;
|
|
|
|
- (void)deleteEvent:(NSInteger)eventId;
|
|
|
|
- (void)subEvent:(BOOL)isSub eventId:(NSInteger)eventId;
|
|
|
|
- (void)createEventWithTitle:(NSString *)title
|
|
image:(NSString *)imagePath
|
|
uploadToHome:(BOOL)uploadToHome
|
|
startTime:(NSString *)startTime
|
|
duration:(NSInteger)duration
|
|
content:(NSString *)content
|
|
gold:(NSInteger)gold
|
|
roomUid:(NSInteger)roomUid
|
|
notifyFans:(BOOL)notifyFans;
|
|
|
|
- (void)loadMoney:(void(^)(WalletInfoModel *walletModel))success failure:(void(^)(NSError *error))failure;
|
|
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|