riku
2020-09-15 dded7fe1d51cb3da855d02201ca150c9b7fd0495
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))
    }
}