riku
2020-10-10 5771916ffb24807dd57c1969baa6371611c334da
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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))
    }
}