open class BaseRepository {
suspend fun <T : Any> apiCall(call: suspend () -> ServerResponse<T>): ServerResponse<T> {
return call.invoke()
}
}
BaseRepository
最新推荐文章于 2021-08-07 13:22:29 发布
open class BaseRepository {
suspend fun <T : Any> apiCall(call: suspend () -> ServerResponse<T>): ServerResponse<T> {
return call.invoke()
}
}