From bb9c9ef974a864a0cf5dd6cc389a9d1042cc1399 Mon Sep 17 00:00:00 2001 From: HuanCheng65 <22636177+HuanCheng65@users.noreply.github.com> Date: Thu, 21 Sep 2023 11:11:40 +0800 Subject: [PATCH] style --- .../com/huanchengfly/tieba/post/api/interfaces/ITiebaApi.kt | 4 ++-- .../tieba/post/api/retrofit/interfaces/WebTiebaApi.kt | 1 - .../huanchengfly/tieba/post/ui/page/subposts/SubPostsPage.kt | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/com/huanchengfly/tieba/post/api/interfaces/ITiebaApi.kt b/app/src/main/java/com/huanchengfly/tieba/post/api/interfaces/ITiebaApi.kt index f14c3205..b76d4d8d 100644 --- a/app/src/main/java/com/huanchengfly/tieba/post/api/interfaces/ITiebaApi.kt +++ b/app/src/main/java/com/huanchengfly/tieba/post/api/interfaces/ITiebaApi.kt @@ -891,7 +891,7 @@ interface ITiebaApi { * @param keyword 关键词 */ fun searchForum( - keyword: String + keyword: String, ): Call /** @@ -906,7 +906,7 @@ interface ITiebaApi { keyword: String, page: Int, order: SearchThreadOrder, - filter: SearchThreadFilter + filter: SearchThreadFilter, ): Call /** diff --git a/app/src/main/java/com/huanchengfly/tieba/post/api/retrofit/interfaces/WebTiebaApi.kt b/app/src/main/java/com/huanchengfly/tieba/post/api/retrofit/interfaces/WebTiebaApi.kt index c9162f89..dd0f56b8 100644 --- a/app/src/main/java/com/huanchengfly/tieba/post/api/retrofit/interfaces/WebTiebaApi.kt +++ b/app/src/main/java/com/huanchengfly/tieba/post/api/retrofit/interfaces/WebTiebaApi.kt @@ -140,7 +140,6 @@ interface WebTiebaApi { @retrofit2.http.Header("cookie") cookie: String ): Flow - @GET("/mo/q/search/forum") fun searchForum( @Query("word") keyword: String diff --git a/app/src/main/java/com/huanchengfly/tieba/post/ui/page/subposts/SubPostsPage.kt b/app/src/main/java/com/huanchengfly/tieba/post/ui/page/subposts/SubPostsPage.kt index c155f3e4..a3951336 100644 --- a/app/src/main/java/com/huanchengfly/tieba/post/ui/page/subposts/SubPostsPage.kt +++ b/app/src/main/java/com/huanchengfly/tieba/post/ui/page/subposts/SubPostsPage.kt @@ -334,7 +334,7 @@ internal fun SubPostsContent( forumId = fid, forumName = forumName, threadId = threadId, - postId = postId + postId = postId, ) ) }