XYOfficialAPIManager.h 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. //
  2. // XYOfficialAPIManager.h
  3. // Timi
  4. //
  5. // Created by 翟玉磊 on 2022/1/14.
  6. //
  7. #import "ZYLAPIManager.h"
  8. NS_ASSUME_NONNULL_BEGIN
  9. @interface XYOfficialAPIManager : ZYLAPIManager
  10. /// 封禁方式列表
  11. /// @param successHandler 请求成功
  12. /// @param failureHandler 请求失败
  13. - (NSNumber *)getForbiddenWayTypesSuccessHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
  14. /// 封禁时长列表
  15. /// @param successHandler 请求成功
  16. /// @param failureHandler 请求失败
  17. - (NSNumber *)getForbiddenDurationTypesSuccessHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
  18. /// 封禁(禁言)
  19. /// @param userId 被封禁用户id
  20. /// @param way 封禁方式
  21. /// @param durationType 封禁时长
  22. /// @param remark 封禁原因
  23. /// @param successHandler 请求成功
  24. /// @param failureHandler 请求失败
  25. - (NSNumber *)forbiddenWithUserId:(NSString *)userId way:(NSString *)way durationType:(NSString *)durationType remark:(NSString *)remark SuccessHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
  26. /// 重置昵称
  27. /// @param userId 被重置用户的名的用户id
  28. /// @param successHandler 请求成功
  29. /// @param failureHandler 请求失败
  30. - (NSNumber *)resetUserNameWithUserId:(NSString *)userId successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
  31. /// 重置用户头像
  32. /// @param userId 重置头像的用户id
  33. /// @param successHandler 请求成功
  34. /// @param failureHandler 请求失败
  35. - (NSNumber *)resetUserAvatarWithUserId:(NSString *)userId successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
  36. /// 重置用户签名
  37. /// @param userId 重置签名的用户id
  38. /// @param successHandler 请求成功
  39. /// @param failureHandler 请求失败
  40. - (NSNumber *)resetUserSignWithUserId:(NSString *)userId successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
  41. /// 删除照片墙
  42. /// @param feedPhotoWallId 照片墙id
  43. /// @param userId 照片墙主人的用户id
  44. /// @param successHandler 请求成功
  45. /// @param failureHandler 请求失败
  46. - (NSNumber *)deletePhotoWallWithFeedPhotoWallId:(NSString *)feedPhotoWallId userId:(NSString *)userId successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
  47. /// 删除动态
  48. /// @param feedId 动态id
  49. /// @param auditMsg 删除原因
  50. /// @param successHandler 请求成功
  51. /// @param failureHandler 请求失败
  52. - (NSNumber *)deleteFeedWithFeedId:(NSString *)feedId auditMsg:(NSString *)auditMsg successHandler:(ZYLNetworkTaskSuccessHandler)successHandler failureHandler:(ZYLNetworkTaskFailureHandler)failureHandler;
  53. @end
  54. NS_ASSUME_NONNULL_END