From 855a7e18a795f0db2453a19e3e8f26ba2ff553b4 Mon Sep 17 00:00:00 2001
From: lmw <125975490@qq.com>
Date: 星期四, 29 五月 2025 16:32:41 +0800
Subject: [PATCH] UI调整
---
app/src/main/java/com/dollearn/student/network/ApiService.kt | 64 ++++---------------------------
1 files changed, 9 insertions(+), 55 deletions(-)
diff --git a/app/src/main/java/com/dollearn/student/network/ApiService.kt b/app/src/main/java/com/dollearn/student/network/ApiService.kt
index 950ccd1..0662d78 100644
--- a/app/src/main/java/com/dollearn/student/network/ApiService.kt
+++ b/app/src/main/java/com/dollearn/student/network/ApiService.kt
@@ -14,10 +14,6 @@
@POST(Apis.H5_URL)
fun getH5(@Field("type") type: Int): Flowable<ResultData<String>>
- @FormUrlEncoded
- @POST(Apis.queryPhysical)
- fun queryPhysical(@Field("stuID") id: String): Flowable<ResultData<Report>>
-
@GET(Apis.userDetails)
fun userDetails(): Flowable<ResultData<UserBean>>
@@ -26,32 +22,6 @@
@GET(Apis.studyRecord)
fun studyRecord(): Flowable<ResultData<StudyRecord>>
-
- @FormUrlEncoded
- @POST(Apis.stuComment)
- fun stuComment(
- @Field("stuId") stuId: String
- ): Flowable<ResultData<ArrayList<Evaluation>>>
-
- @FormUrlEncoded
- @POST(Apis.lessonDetails)
- fun lessonDetails(
- @Field("stuId") stuId: String,
- @Field("lessonId") lessonId: String
- ): Flowable<ResultData<MyCourseDetail>>
-
- @FormUrlEncoded
- @POST(Apis.editDefault)
- fun editDefault(@Field("stuId") stuId: String): Flowable<ResultData<Any>>
-
- @FormUrlEncoded
- @POST(Apis.recordDetails)
- fun recordDetails(
- @Field("stuId") stuId: String,
- @Field("lessionId") lessonId: String,
- @Field("time") time: String?,
- @Field("type") type: Int?
- ): Flowable<ResultData<ArrayList<CourseRecord>>>
@FormUrlEncoded
@POST
@@ -88,12 +58,6 @@
@GET(Apis.giveIntegral)
fun giveIntegral(): Flowable<ResultData<Boolean>>
- @FormUrlEncoded
- @POST(Apis.redemptionDetails)
- fun redemptionDetails(
- @Field("detailsId") goodId: String
- ): Flowable<ResultData<ExchangeDetail>>
-
@POST(Apis.cancellation)
fun cancellation(): Flowable<ResultData<Any>>
@@ -117,6 +81,15 @@
@GET(Apis.userGameDifficulty)
fun userGameDifficulty(@Query("week") week: Int): Flowable<ResultData<Int?>>
+
+ @POST(Apis.restart)
+ fun restart(@Body body : String): Flowable<ResultData<Any>>
+
+ @POST(Apis.answerQuestion)
+ fun answerQuestion(@Body body : String): Flowable<ResultData<Any>>
+
+ @GET(Apis.getIsOpen)
+ fun getIsOpen(): Flowable<ResultData<Boolean>>
@GET(Apis.teamSchedule)
fun teamSchedule(@Query("day") day:Int,@Query("type") type:Int,@Query("week") week:Int): Flowable<ResultData<ProgressBean>>
@@ -205,23 +178,4 @@
@GET(Apis.exchangeRecord)
fun exchangeRecord(@Query("pageNumber") page:Int,@Query("pageSize") pageSize: Int = 30): Flowable<ResultData<ExchangeRecordBean>>
-
- @FormUrlEncoded
- @POST(Apis.registeredData)
- fun registeredData(
- @Field("lat") lat: Double?,
- @Field("lon") lon: Double?,
- @Field("coursePayId") coursePayId: String,
- @Field("orderId") orderId: String
- ): Flowable<ResultData<JoinedCourse>>
- @POST(Apis.noticeList)
- fun noticeList(): Flowable<ResultData<List<Notice>>>
-
- @FormUrlEncoded
- @POST
- fun noticeDetail(
- @Url url: String,
- @Field("noId") noId: String,
- @Field("quesId") quesId: String
- ): Flowable<ResultData<Notice>>
}
\ No newline at end of file
--
Gitblit v1.7.1