RQHTTPService+RQGetDspList.m 780 B

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