From 19a3cec9bbafe352d67a57ae9a1c4c601c73b6c0 Mon Sep 17 00:00:00 2001 From: younger_times <841720330@qq.com> Date: 星期四, 27 七月 2023 22:19:27 +0800 Subject: [PATCH] fix --- WanPai/Network/Services.swift | 31 +++++++++++++++++++++++++++++++ 1 files changed, 31 insertions(+), 0 deletions(-) diff --git a/WanPai/Network/Services.swift b/WanPai/Network/Services.swift index 81962b3..dc41d37 100644 --- a/WanPai/Network/Services.swift +++ b/WanPai/Network/Services.swift @@ -380,6 +380,37 @@ return NetworkRequest.request(params: params, method: .post, progress: true) } + /// 学员评语 + static func stuComment(stuId:Int)->Observable<BaseResponse<[StudentCommentModel]>>{ + let params = ParamsAppender.build(url: All_Url) + .interface(url: "/account/api/startCource/stuComment") + .append(key: "stuId", value: stuId) + return NetworkRequest.request(params: params, method: .post, progress: false) + } + + /// 课时详情-记录列表 + static func recordDetails(stuId:Int,lessionId:Int,startTime:String?,type:Int?)->Observable<BaseResponse<[CourseRecordModel]>>{ + let params = ParamsAppender.build(url: All_Url) + .interface(url: "/account/api/startCource/recordDetails") + .append(key: "stuId", value: stuId) + .append(key: "lessionId", value: lessionId) + .append(key: "startTime", value: startTime) + .append(key: "type", value: type) + return NetworkRequest.request(params: params, method: .post, progress: false) + } + + + /// 上课首页-课程列表 + static func weeksOfCourseDetails(stuId:Int,time:Date)->Observable<BaseResponse<[WeeklyCourseModel]>>{ + let params = ParamsAppender.build(url: All_Url) + .interface(url: "/account/api/startCource/weeksOfCourseDetails") + .append(key: "stuId", value: stuId) + .append(key: "time", value: time.jq_format("yyyy-MM-dd")) + .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) + } + } // MARK: -- 探索玩湃 -- Gitblit v1.7.1