// // RQHTTPService+RQGetVersionList.m // SDJK // // Created by 张嵘 on 2022/1/11. // #import "RQHTTPService+RQGetVersionList.h" @implementation RQHTTPService (RQGetVersionList) /** 查询version列表 @return Returns a signal which will send complete, or error. */ - (RACSignal *)getVersionList { /// 1. 配置参数 RQKeyedSubscript *subscript = [RQKeyedSubscript subscript]; // subscript[@""] = @""; /// 2. 配置参数模型 RQURLParameters *paramters = [RQURLParameters urlParametersWithMethod:RQ_HTTTP_METHOD_GET path:RQ_GET_VersionDictList parameters:subscript.dictionary]; /// 3.发起请求 return [[[RQHTTPRequest requestWithParameters:paramters] enqueueResultClass:[RQVersionModel class]] rq_parsedResults]; } @end