左晓为主开发手持机充值管理机
zuoxiao
2025-03-14 75f59fa9a615e3584694e820ff83503e8b72ea16
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
package com.dayu.general.net
 
import com.dayu.baselibrary.net.BaseApiService
import io.reactivex.rxjava3.core.Observable
import retrofit2.http.Body
import retrofit2.http.GET
import retrofit2.http.POST
import retrofit2.http.Path
import retrofit2.http.QueryMap
import retrofit2.http.Url
 
interface ApiService : BaseApiService {
 
    @POST
    fun requestPost(
        @Url url: String,
        @Body params: Map<String, @JvmSuppressWildcards Any>
    ): Observable<BaseResponse<Any>>
 
    @POST
    fun requestPost(@Url url: String): Observable<BaseResponse<Any>>
 
    @GET("{url}")
    fun requestGet(
        @Path("url") url: String,
        @QueryMap params: Map<String, @JvmSuppressWildcards Any>
    ): Observable<BaseResponse<Any>>
 
    @GET("{url}")
    fun requestGet(@Path("url") url: String): Observable<BaseResponse<Any>>
 
}