12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 |
- //
- // LCCommonHttp.h
- // LiveChat
- //
- // Created by 张灿 on 2018/4/11.
- // Copyright © 2018年 caicai. All rights reserved.
- //
- #import <Foundation/Foundation.h>
- #import "YOUPAILZStsModel.h"
- typedef void(^succressBlock)(NSArray*);
- @interface LCCommonHttp : NSObject
- //上传JPG图片
- + (void)uploadImages:(NSArray*)images type:(NSString*)type succress:(succressBlock)succress;
- //点赞和取消点赞
- + (void)dynamicLike:(NSString*)dynamicId type:(NSInteger)type;
- //关注
- + (void)followUserId:(NSString*)userId liveId:(NSString *)liveId;
- + (void)followUserId:(NSString*)userId;
- //拉黑
- + (void)blackUserId:(NSString*)userId liveId:(NSString *)liveId;
- + (void)blackUserId:(NSString*)userId;
- /// 获取sts凭证
- /// @param type 类型
- /// album 个人相册
- /// anchor 女神认证
- /// game/img 游戏陪玩上传战绩截图等
- /// game/mp3 游戏陪玩上传15秒录音
- /// dynamic 动态
- /// @param succress 成功回调
- + (void)loadStsWithType:(NSString *)type successBlock:(void (^)(YOUPAILZStsModel *model))succress;
- /// 上传视频文件
- /// @param videoPath 视频文件目录
- /// @param type 类型
- /// album 个人相册
- /// anchor 女神认证
- /// game/img 游戏陪玩上传战绩截图等
- /// game/mp3 游戏陪玩上传15秒录音
- /// dynamic 动态
- /// @param succress 成功回调
- + (void)uploadWithVideoPath:(NSString *)videoPath Type:(NSString *)type successBlock:(void (^)(NSString *ossFilePath))succress;
- /// 上传音频文件
- /// @param videoPath 音频文件目录
- /// @param type 类型
- /// album 个人相册
- /// anchor 女神认证
- /// game/img 游戏陪玩上传战绩截图等
- /// game/mp3 游戏陪玩上传15秒录音
- /// dynamic 动态
- /// @param succress 成功回调
- + (void)uploadWithAudioPath:(NSString *)videoPath Type:(NSString *)type successBlock:(void (^)(NSString *ossFilePath))succress;
- /// 上传AAC格式音频
- + (void)uploadWithAACAudioPath:(NSString *)audioPath successBlock:(void (^)(NSString *ossFilePath))succress;
- /// 上传图片
- /// @param images 图片数组 只能传递UIImage 或者 NSdata
- /// @param type 类型
- /// album 个人相册
- /// anchor 女神认证
- /// game/img 游戏陪玩上传战绩截图等
- /// game/mp3 游戏陪玩上传15秒录音
- /// dynamic 动态
- /// @param succress 成功回调
- /// 上传到OSS
- + (void)uploadWithImages:(NSArray *)images Type:(NSString *)type successBlock:(void (^)(NSArray <NSString *>*ossImagePaths))succress;
- + (void)uploadWithLocalFile:(NSString *)localPath successBlock:(void (^)(NSString *ossFilePath))succress;
- @end
|