package cn.flightfeather.thirdapp.repository
|
|
import cn.flightfeather.thirdapp.common.net.ResponseBodyCallBack
|
import cn.flightfeather.thirdapp.common.net.ResultCallBack
|
import cn.flightfeather.thirdapp.common.net.RetrofitFactory
|
import cn.flightfeather.thirdapp.httpservice.SubTaskService
|
import okhttp3.ResponseBody
|
|
/**
|
* @author riku
|
* Date: 2020/4/3
|
* 子任务相关数据处理
|
*/
|
class SubTaskRepository {
|
private val retrofit = RetrofitFactory.instance.retrofit
|
|
fun deleteSubTask(subTaskId: String, resultCallBack: ResultCallBack<ResponseBody>) {
|
retrofit.create(SubTaskService::class.java).deleteSubTask(subTaskId)
|
.enqueue(ResponseBodyCallBack(resultCallBack))
|
}
|
}
|