feiyu02
2020-09-01 43242c8e7915b968bb7a6f3f22bded7704f0e40f
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))
    }
}