package safeluck.drive.evaluation.httpmodule
|
|
import retrofit2.Retrofit
|
|
class RetrofitCreator{
|
companion object{
|
private val BASE_URL = "https://trainsim-api.aaej.cn/"
|
private val RETROFIT_CLIENT = Retrofit.Builder().baseUrl(BASE_URL)
|
.addConverterFactory(GsonConverterFactory.create()).build()
|
|
private val REST_SERVICE = RETROFIT_CLIENT.create(AYApiService::class.java)
|
|
fun getRestService()=REST_SERVICE
|
}
|
|
|
}
|