commonMain.com.lt.lazy_people_http.call.Callback.kt Maven / Gradle / Ivy
package com.lt.lazy_people_http.call
/**
* creator: lt 2023/3/9 [email protected]
* effect : 异步请求的回调
* warning:
*/
interface Callback {
/**
* 表示请求成功
*/
fun onResponse(call: Call, response: T)
/**
* 表示请求失败
*/
fun onFailure(call: Call, t: Throwable?)
}