RQHTTPService+RQGetPlaceVipList.m 917 B

1234567891011121314151617181920212223242526272829303132
  1. //
  2. // RQHTTPService+RQGetPlaceVipList.m
  3. // JiaPei
  4. //
  5. // Created by 张嵘 on 2023/4/20.
  6. //
  7. #import "RQHTTPService+RQGetPlaceVipList.h"
  8. @implementation RQPlaceVipListModel
  9. @end
  10. @implementation RQHTTPService (RQGetPlaceVipList)
  11. /**
  12. 查询当前用户考试会员列表
  13. @return Returns a signal which will send complete, or error.
  14. */
  15. - (RACSignal *)getPlaceVipList {
  16. /// 1. 配置参数
  17. RQKeyedSubscript *subscript = [RQKeyedSubscript subscript];
  18. /// 用户id
  19. subscript[@"userId"] = RQ_USER_MANAGER.currentUser._id;
  20. /// 2. 配置参数模型
  21. RQURLParameters *paramters = [RQURLParameters urlParametersWithMethod:RQ_HTTTP_METHOD_GET path: RQ_GET_PlaceVipList parameters:subscript.dictionary];
  22. /// 3.发起请求
  23. return [[[RQHTTPRequest requestWithParameters:paramters]
  24. enqueueResultClass:[RQPlaceVideoListModel class]]
  25. rq_parsedResults];
  26. }
  27. @end