RQHTTPService+RQGetDspList.m 893 B

1234567891011121314151617181920212223242526272829
  1. //
  2. // RQHTTPService+RQGetDspList.m
  3. // JSJP
  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 *)getDspListWithPageNum:(NSInteger)pageNum pageSize:(NSInteger)pageSize {
  14. /// 1. 配置参数
  15. RQKeyedSubscript *subscript = [RQKeyedSubscript subscript];
  16. subscript[@"pageNum"] = @(pageNum);
  17. subscript[@"pageSize"] = @(pageSize);
  18. /// 2. 配置参数模型
  19. RQURLParameters *paramters = [RQURLParameters urlParametersWithMethod:RQ_HTTTP_METHOD_GET path:RQ_GET_DspList parameters:subscript.dictionary];
  20. /// 3.发起请求
  21. return [[[RQHTTPRequest requestWithParameters:paramters]
  22. enqueueResultClass:[VideosItem class]]
  23. rq_parsedResults];
  24. }
  25. @end