RQHTTPService+RQGetVersionList.m 798 B

12345678910111213141516171819202122232425262728
  1. //
  2. // RQHTTPService+RQGetVersionList.m
  3. // SDJK
  4. //
  5. // Created by 张嵘 on 2022/1/11.
  6. //
  7. #import "RQHTTPService+RQGetVersionList.h"
  8. @implementation RQHTTPService (RQGetVersionList)
  9. /**
  10. 查询version列表
  11. @return Returns a signal which will send complete, or error.
  12. */
  13. - (RACSignal *)getVersionList {
  14. /// 1. 配置参数
  15. RQKeyedSubscript *subscript = [RQKeyedSubscript subscript];
  16. // subscript[@""] = @"";
  17. /// 2. 配置参数模型
  18. RQURLParameters *paramters = [RQURLParameters urlParametersWithMethod:RQ_HTTTP_METHOD_GET path:RQ_GET_VersionDictList parameters:subscript.dictionary];
  19. /// 3.发起请求
  20. return [[[RQHTTPRequest requestWithParameters:paramters]
  21. enqueueResultClass:[RQVersionModel class]]
  22. rq_parsedResults];
  23. }
  24. @end