RQHTTPService+RQPostDeletion.m 749 B

123456789101112131415161718192021222324252627
  1. //
  2. // RQHTTPService+RQPostDeletion.m
  3. // SDJK
  4. //
  5. // Created by 张嵘 on 2022/6/29.
  6. //
  7. #import "RQHTTPService+RQPostDeletion.h"
  8. @implementation RQHTTPService (RQPostDeletion)
  9. /**
  10. 注销账号
  11. @return Returns a signal which will send complete, or error.
  12. */
  13. - (RACSignal *)postDeletion {
  14. /// 1. 配置参数
  15. RQKeyedSubscript *subscript = [RQKeyedSubscript subscript];
  16. /// 2. 配置参数模型
  17. RQURLParameters *paramters = [RQURLParameters urlParametersWithMethod:RQ_HTTTP_METHOD_POST path:RQ_POST_Deletion parameters:subscript.dictionary];
  18. /// 3.发起请求
  19. return [[[RQHTTPRequest requestWithParameters:paramters]
  20. enqueueResultClass:[RQBaseModel class]]
  21. rq_parsedResults];
  22. }
  23. @end