From 314b67e56f24f7bce040ae2b5d57c7eac7b197a9 Mon Sep 17 00:00:00 2001 From: lmw <125975490@qq.com> Date: 星期五, 25 十月 2024 10:51:48 +0800 Subject: [PATCH] 个人中心 --- app/src/main/java/com/sinata/xqmuse/network/ApiService.kt | 58 +++++++++++++++++++++++++++++++++++++++++++++++++++++----- 1 files changed, 53 insertions(+), 5 deletions(-) diff --git a/app/src/main/java/com/sinata/xqmuse/network/ApiService.kt b/app/src/main/java/com/sinata/xqmuse/network/ApiService.kt index 6e36b59..a99cd55 100644 --- a/app/src/main/java/com/sinata/xqmuse/network/ApiService.kt +++ b/app/src/main/java/com/sinata/xqmuse/network/ApiService.kt @@ -212,6 +212,58 @@ @Query("apipost_id") apipost_id: String = "37771d0cf0e312" ): Flowable<ResultData<Boolean>> + @POST(Apis.balanceList) + fun balanceList( + @Query("pageCurr") pageNum: Int, + @Query("state") state: Int, + @Query("pageSize") size: Int, + @Query("apipost_id") apipost_id: String = "361bdf11b992d0" + ): Flowable<ResultData<WalletDetailBean>> + + @POST(Apis.balanceDetail) + fun balanceDetail( + @Query("id") id: String, + @Query("apipost_id") apipost_id: String = "361bdf11b992cf" + ): Flowable<ResultData<BalanceDetail>> + + @POST(Apis.bankList) + fun bankList( + @Query("apipost_id") apipost_id: String = "361bdf11f992d2" + ): Flowable<ResultData<List<BankInfo>>> + + @POST(Apis.addBank) + fun addBank( + @Body body:String + ): Flowable<ResultData<Any>> + + @POST(Apis.deleteBank) + fun deleteBank( + @Query("id") id: String + ): Flowable<ResultData<Any>> + + @POST(Apis.withdraw) + fun withdraw( + @Query("bankId") id: String, + @Query("money") money: Double + ): Flowable<ResultData<Any>> + + @POST(Apis.noticeDetail) + fun noticeDetail( + @Query("id") id: String, + @Query("apipost_id") apipost_id: String = "361bdf123992f8" + ): Flowable<ResultData<MsgDetail>> + + @POST(Apis.changePhone) + fun changePhone( + @Query("code") code: String, + @Query("phone") phone: String + ): Flowable<ResultData<Any>> + + @POST(Apis.deleteUser) + fun deleteUser( + @Query("apipost_id") apipost_id: String = "361bdf11f992e7" + ): Flowable<ResultData<Any>> + @FormUrlEncoded @POST(Apis.withdrawalRecord) fun withdrawalRecord( @@ -408,13 +460,9 @@ @Query("apipost_id") apipost_id: String = "2fc350e9b99599" ): Flowable<ResultData<Any>> - @FormUrlEncoded @POST(Apis.wallet) fun wallet( - @Field("pageNum") pageNum: Int, - @Field("month") month: Int?, - @Field("year") year: Int?, - @Field("pageSize") pageSize : Int = Const.PAGE_SIZE + @Query("apipost_id") apipost_id: String = "3518e3f0b99420" ): Flowable<ResultData<WalletBean>> -- Gitblit v1.7.1