// // BottleService.h // TreeHole // // Created by mambaxie on 2022/4/28. // #import #import "HomeBottleInfo.h" #import "BottleTypeGroupInfo.h" #import "BottleDetailInfo.h" NS_ASSUME_NONNULL_BEGIN @interface BottleService : NSObject /// 获取首页瓶子信息 + (void)getHomeBottleInfoWithCompletion:(void(^)(HomeBottleInfo * _Nullable info))completion; /// 获取瓶子类型信息 + (void)getBottleTypeGroupInfosWithCompletion:(void(^)(NSArray * _Nullable infos, NSString *navSubTitle, NSString *sendBottleNotice))completion; /// 发布瓶子内容 + (void)publishBottleWithGroupType:(NSString *)groupType type:(NSString *)type content:(NSString *)content images:(NSArray *)images voice:(NSString *)voice voiceSec:(int)voiceSec price:(int)price weChat:(NSString *)weChat completion:(PYHTTPManagerCallback)completion; /// 获取瓶子详情 + (void)getBottleDetailInfoWithBID:(int)bid bottleType:(NSString *)bottleType isHome:(BOOL)ishome isNext:(int)isNext isAttach:(int)isAttach bottleID:(int)bottleID completion:(void(^)(BottleDetailInfo * _Nullable info))completion; /// 回复上报 + (void)recordReplyBottleWithBID:(int)bid replyContent:content imageURL:(NSString *)imageURL voiceURL:(NSString *)voiceURL voiceSec:(int)voiceSec completion:(PYHTTPManagerCallback)completion; /// 举报 + (void)reportBottleWithBID:(int)bid completion:(PYHTTPManagerCallback)completion; + (void)dealBottleWithBID:(int)bid operation:(NSString *)operation completion:(PYHTTPManagerCallback)completion; @end NS_ASSUME_NONNULL_END