open class BaseRepository {
suspend fun <T : Any> apiCall(call: suspend () -> ServerResponse<T>): ServerResponse<T> {
return call.invoke()
}
}
kotlin MVVM BaseRepository
最新推荐文章于 2024-05-26 10:46:00 发布
open class BaseRepository {
suspend fun <T : Any> apiCall(call: suspend () -> ServerResponse<T>): ServerResponse<T> {
return call.invoke()
}
}