RQHTTPService+ExistFreeSch.m 760 B

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