12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- //
- // RQHTTPService+RQGetPlaceVideoList.m
- // JiaPei
- //
- // Created by 张嵘 on 2023/4/13.
- //
- #import "RQHTTPService+RQGetPlaceVideoList.h"
- @implementation RQPlaceVideoListModel
- @end
- @implementation RQHTTPService (RQGetPlaceVideoList)
- /**
- 查询考场视频列表
- @param pageNum 当前页码
- @param pageSize 每页数据量
- @param searchStr 搜索关键字
- @return Returns a signal which will send complete, or error.
- */
- - (RACSignal *)getPlaceVideoListWithPageNum:(NSInteger)pageNum pageSize:(NSInteger)pageSize searchString:(NSString *)searchStr examId:(NSString*)examId {
- /// 1. 配置参数
- RQKeyedSubscript *subscript = [RQKeyedSubscript subscript];
- if (pageNum != 0 && pageSize != 0) {
- /// 当前页码
- subscript[@"pageNum"] = @(pageNum);
- /// 每页数据量
- subscript[@"pageSize"] = @(pageSize);
- }
- //后端说不用
- // if (RQStringIsNotEmpty(searchStr)) {
- // /// 考场名称
- // subscript[@"examName"] = searchStr;
- // }
- /// 0未开启 1已开启
- subscript[@"state"] = @1;
- /// 城市ID
- subscript[@"cityId"] = RQ_USER_MANAGER.currentUser.city;
- /// id
- // subscript[@"id"] = @0;
- /// 考场编号
- subscript[@"examId"] = examId;
- /// 视频方向 0:竖 1:横
- // subscript[@"horizontal"] = @1;
- /// 1:科目一 2:科目二 3:科目三 4:科目四
- subscript[@"videoSubject"] = @(3);
- /// 视频地址
- // subscript[@"videoUrl"] = @"";
- /// 视频名称
- // subscript[@"videoName"] = @"";
- /// 视频封面
- // subscript[@"videoCover"] = @"";
-
- /// 2. 配置参数模型
- RQURLParameters *paramters = [RQURLParameters urlParametersWithMethod:RQ_HTTTP_METHOD_GET path: RQ_GET_PlaceVideoList parameters:subscript.dictionary];
-
- /// 3.发起请求
- return [[[RQHTTPRequest requestWithParameters:paramters]
- enqueueResultClass:[RQPlaceVideoListModel class]]
- rq_parsedResults];
- }
- @end
|