package com.xw.yunwei.net
|
|
import com.xw.common.net.interceptor.HttpResponse
|
import com.xw.common.net.interceptor.PageResponse
|
import com.xw.yunwei.model.TaskAccidentModel
|
import com.xw.yunwei.model.TaskModel
|
import com.xw.yunwei.model.TaskNormalChargeModel
|
import com.xw.yunwei.model.TaskNormalCheckModel
|
import com.xw.yunwei.model.TaskNormalCleanModel
|
import com.xw.yunwei.model.TaskNormalMaintainModel
|
import com.xw.yunwei.model.TaskNormalModel
|
import com.xw.yunwei.model.TaskNormalRepairModel
|
import com.xw.yunwei.model.XpErrorType
|
import okhttp3.RequestBody
|
import retrofit2.Call
|
import retrofit2.http.Body
|
import retrofit2.http.GET
|
import retrofit2.http.POST
|
import retrofit2.http.Query
|
|
interface TaskApi {
|
|
/*任务中心列表*/
|
@POST("maintenance/api/v1/task/pageList")
|
fun getTaskRecordList(@Body body: RequestBody): Call<HttpResponse<PageResponse<TaskModel>>>
|
|
/*事故任务确认到达*/
|
@GET("maintenance/api/v1/task/confirmArrive")
|
fun confirmArrive(@Query("id") id: String): Call<HttpResponse<Any>>
|
|
/*事故任务详情*/
|
@GET("maintenance/api/v1/task/vehicleAccidentDetail")
|
fun vehicleAccidentDetail(@Query("id") id: String): Call<HttpResponse<TaskAccidentModel>>
|
|
/*处理事故任务*/
|
@POST("maintenance/api/v1/task/handleVehicleAccident")
|
fun handleVehicleAccident(@Body body: RequestBody): Call<HttpResponse<Any>>
|
|
/*车辆其他常规任务详情*/
|
@GET("maintenance/api/v1/task/vehicleRoutineDetail")
|
fun vehicleRoutineDetail(@Query("id") id: String): Call<HttpResponse<TaskNormalModel>>
|
|
/*车辆常规充电任务详情*/
|
@GET("maintenance/api/v1/task/chargingDetail")
|
fun chargingDetail(@Query("id") id: String): Call<HttpResponse<TaskNormalChargeModel>>
|
|
/*车辆常规洗车任务详情*/
|
@GET("maintenance/api/v1/task/cleanDetail")
|
fun cleanDetail(@Query("id") id: String): Call<HttpResponse<TaskNormalCleanModel>>
|
|
/*车辆常规检测任务详情*/
|
@GET("maintenance/api/v1/task/detectionDetail")
|
fun detectionDetail(@Query("id") id: String): Call<HttpResponse<TaskNormalCheckModel>>
|
|
/*车辆常规整备任务详情*/
|
@GET("maintenance/api/v1/task/preparationDetail")
|
fun preparationDetail(@Query("id") id: String): Call<HttpResponse<TaskNormalMaintainModel>>
|
|
/*车辆常规维修任务详情*/
|
@GET("maintenance/api/v1/task/repairDetail")
|
fun repairDetail(@Query("id") id: String): Call<HttpResponse<TaskNormalRepairModel>>
|
|
/*上传车辆其他常规任务详情 保养/保险/年检*/
|
@POST("maintenance/api/v1/task/saveRoutineDetail")
|
fun saveRoutineDetail(@Body body: RequestBody): Call<HttpResponse<PageResponse<Any>>>
|
|
/*事故上报*/
|
@POST("maintenance/api/v1/task/saveVehicleAccident")
|
fun saveVehicleAccident(@Body body: RequestBody): Call<HttpResponse<PageResponse<Any>>>
|
|
/*事故类型列表*/
|
@GET("maintenance/api/v1/task/errorTypeList")
|
fun getTypeList(): Call<HttpResponse<List<XpErrorType>>>
|
|
/*获取未读通知数量*/
|
@GET("account/api/v1/notification/unreadCount")
|
fun getUnreadCount(): Call<HttpResponse<String>>
|
|
|
}
|