18034727885
2026-04-14 370014cbb9ec1ef64e7e42bb4f9a12671461d8e4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
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>>
 
 
}