RQHTTPService+UserVipByUser.m 774 B

12345678910111213141516171819202122232425
  1. //
  2. // RQHTTPService+UserVipByUser.m
  3. // jiaPei
  4. //
  5. // Created by Ning.ge on 2025/3/12.
  6. // Copyright © 2025 JCZ. All rights reserved.
  7. //
  8. #import "RQHTTPService+UserVipByUser.h"
  9. @implementation RQHTTPService (UserVipByUser)
  10. - (RACSignal *)getUserVipByUserId:(NSString*)userId {
  11. /// 1. 配置参数
  12. RQKeyedSubscript *subscript = [RQKeyedSubscript subscript];
  13. subscript[@"userId"] = userId;
  14. /// 2. 配置参数模型
  15. RQURLParameters *paramters = [RQURLParameters urlParametersWithMethod:RQ_HTTTP_METHOD_GET path:RQ_GET_JSJP_UserVipByUserId parameters:subscript.dictionary];
  16. /// 3.发起请求
  17. return [[[RQHTTPRequest requestWithParameters:paramters]
  18. enqueueResultClass:RQBaseModel.class]
  19. rq_parsedResults];
  20. }
  21. @end