| | |
| | | |
| | | } |
| | | |
| | | extension Services{ |
| | | |
| | | /// 开始上课:学员列表 |
| | | static func startCourceStudentList()->Observable<BaseResponse<[StudentProfile1Model]>>{ |
| | | let params = ParamsAppender.build(url: All_Url) |
| | | .interface(url: "/account/api/startCource/listOfStu") |
| | | return NetworkRequest.request(params: params, method: .post, progress: false) |
| | | } |
| | | |
| | | /// 切换学员 |
| | | static func startCourseSwitch(id:Int)->Observable<BaseResponse<SimpleModel>>{ |
| | | let params = ParamsAppender.build(url: All_Url) |
| | | .interface(url: "/account/api/startCource/switchStu") |
| | | .append(key: "stuId", value: id) |
| | | return NetworkRequest.request(params: params, method: .post, progress: true) |
| | | } |
| | | |
| | | /// 上课首页 |
| | | static func startCourseHome()->Observable<BaseResponse<StartClouseHomeModel>>{ |
| | | let params = ParamsAppender.build(url: All_Url) |
| | | .interface(url: "/account/api/startCource/queryStudentData") |
| | | .append(key: "lat", value: locationTool.currentLocation?.coordinate.latitude.string) |
| | | .append(key: "lon", value: locationTool.currentLocation?.coordinate.longitude.string) |
| | | return NetworkRequest.request(params: params, method: .post, progress: false) |
| | | } |
| | | |
| | | |
| | | /// 获取学员测试报告 |
| | | static func queryPhysical(stuId:Int)->Observable<BaseResponse<StartClouseReportModel>>{ |
| | | let params = ParamsAppender.build(url: All_Url) |
| | | .interface(url: "/account/api/startCource/queryPhysical") |
| | | .append(key: "stuId", value: stuId) |
| | | return NetworkRequest.request(params: params, method: .post, progress: true) |
| | | } |
| | | } |
| | | |
| | | // MARK: -- 预约场地 |
| | | extension Services{ |
| | | |