|
@@ -1,57 +1,60 @@
|
|
|
-package com.sambath.rat_main.remote.service
|
|
|
+package com.sambath.klaklouk_main.remote.service
|
|
|
|
|
|
-import com.sambath.rat_main.remote.*
|
|
|
+import com.sambath.klaklouk_main.remote.*
|
|
|
import io.reactivex.Single
|
|
|
-import retrofit2.http.*
|
|
|
+import retrofit2.http.Body
|
|
|
+import retrofit2.http.GET
|
|
|
+import retrofit2.http.Headers
|
|
|
+import retrofit2.http.POST
|
|
|
|
|
|
interface ApiService {
|
|
|
|
|
|
- @POST("/rat/v1/api/user/login")
|
|
|
+ @POST("/klaklouk/v1/api/user/login")
|
|
|
@Headers("No-Authentication: true")
|
|
|
fun login(@Body loginRequest: LoginRequest): Single<LoginResponse>
|
|
|
|
|
|
- @POST("/rat/v1/api/user/changepassword")
|
|
|
+ @POST("/klaklouk/v1/api/user/changepassword")
|
|
|
fun changePassword(@Body changePwd: ChangePwd): Single<ChangePwdResponse>
|
|
|
|
|
|
- @GET("/rat/v1/api/channel")
|
|
|
+ @GET("/klaklouk/v1/api/channel")
|
|
|
fun getChannel(): Single<ChannelResponse>
|
|
|
|
|
|
- @GET("/rat/v1/api/user")
|
|
|
+ @GET("/klaklouk/v1/api/user")
|
|
|
fun getUser(): Single<UserInfoResponse>
|
|
|
|
|
|
- @GET("/rat/v1/api/weight")
|
|
|
+ @GET("/klaklouk/v1/api/weight")
|
|
|
fun getWeight(): Single<WeightResponse>
|
|
|
|
|
|
- @GET("/rat/v1/api/type")
|
|
|
+ @GET("/klaklouk/v1/api/type")
|
|
|
fun getBettingType(): Single<BettingTypeResponse>
|
|
|
|
|
|
- @GET("/rat/v1/api/result")
|
|
|
+ @GET("/klaklouk/v1/api/result")
|
|
|
fun getResult(): Single<ResultsResponse>
|
|
|
|
|
|
- @POST("/rat/v1/api/betting")
|
|
|
+ @POST("/klaklouk/v1/api/betting")
|
|
|
fun createBetting(@Body createBetting: CreateBetting): Single<BettingResponse>
|
|
|
|
|
|
- @GET("/rat/v1/api/betting/current")
|
|
|
+ @GET("/klaklouk/v1/api/betting/current")
|
|
|
fun getCurrentBetting(): Single<CurrentResponse>
|
|
|
|
|
|
- @GET("/rat/v1/api/betting/today")
|
|
|
+ @GET("/klaklouk/v1/api/betting/today")
|
|
|
fun getTodayReport(): Single<TodayResponse>
|
|
|
|
|
|
@GET("/rat/v1/api/button")
|
|
|
fun getButton(): Single<ButtonResponse>
|
|
|
|
|
|
- @POST("/rat/v1/api/report/deposit")
|
|
|
+ @POST("/klaklouk/v1/api/report/deposit")
|
|
|
fun getReportDeposit(@Body reportBetting: ReportBody): Single<ReportDepositResponse>
|
|
|
|
|
|
- @POST("/rat/v1/api/report/withdraw")
|
|
|
+ @POST("/klaklouk/v1/api/report/withdraw")
|
|
|
fun getReportWithdraw(@Body reportBetting: ReportBody): Single<ReportWithdrawResponse>
|
|
|
|
|
|
- @POST("/rat/v1/api/report/betting")
|
|
|
+ @POST("/klaklouk/v1/api/report/betting")
|
|
|
fun getReportOne(@Body reportBetting: ReportBody): Single<ReportOneResponse>
|
|
|
|
|
|
- @POST("/rat/v1/api/result/filter")
|
|
|
+ @POST("/klaklouk/v1/api/result/filter")
|
|
|
fun getReportTwo(@Body reportBetting: ReportBody): Single<ReportTwoResponse>
|
|
|
|
|
|
- @GET("/rat/v1/api/report")
|
|
|
+ @GET("/klaklouk/v1/api/report")
|
|
|
fun getReportThree(): Single<ReportThreeResponse>
|
|
|
}
|