| | |
| | | |
| | | import com.xw.common.net.interceptor.HttpResponse |
| | | import com.xw.common.net.interceptor.PageResponse |
| | | import com.xw.yunwei.model.AcceptCarPointInfo |
| | | import com.xw.yunwei.model.AreaModel |
| | | import com.xw.yunwei.model.CarModel |
| | | import com.xw.yunwei.model.CarOperationRecordModel |
| | |
| | | import com.xw.yunwei.model.CarRecordRepairModel |
| | | import com.xw.yunwei.model.CarReportModel |
| | | import com.xw.yunwei.model.ChargeRecordModel |
| | | import com.xw.yunwei.model.CheckInMissionPointInfo |
| | | import com.xw.yunwei.model.CheckRecordModel |
| | | import com.xw.yunwei.model.CruiseCheckInMissionInfo |
| | | import com.xw.yunwei.model.CruiseCheckInOperationInfo |
| | | import com.xw.yunwei.model.CruiseCheckInOperationResult |
| | | import com.xw.yunwei.model.FenceInfoModel |
| | | import com.xw.yunwei.model.MaintainRecordModel |
| | | import com.xw.yunwei.model.RepairRecordModel |
| | | import com.xw.yunwei.model.SiteModel |
| | | import com.xw.yunwei.model.TrunkLockStatusInfo |
| | | import com.xw.yunwei.model.VehicleLocationInfo |
| | | import com.xw.yunwei.model.WebContent1Model |
| | | import okhttp3.RequestBody |
| | |
| | | fun vehicleDispatchDeparture(@Body body: RequestBody): Call<HttpResponse<CarModel>> |
| | | |
| | | /* 车辆运维-车门解锁/后备箱解锁 */ |
| | | @POST("vehicleConvoy/maintenance-app/api/v1/vehicle/unlockByType") |
| | | fun unlockByType(@Body body: RequestBody): Call<HttpResponse<CarModel>> |
| | | @POST("vehicleConvoy/maintenance-app/api/v1/vehicle/unlockDoor") |
| | | fun unlockByType(@Body body: RequestBody): Call<HttpResponse<Any>> |
| | | |
| | | /* 车辆运维-车辆运维-车辆整备 */ |
| | | @POST("maintenance/maintenance-app/api/v1/vehiclePreparation/savePreparation") |
| | |
| | | /* 获取车辆实时位置 */ |
| | | @GET("maintenance/maintenance-app/api/v1/task/getVehicleLocation/{vehicleId}") |
| | | fun getVehicleLocation(@Path("vehicleId") vehicleId: String): Call<HttpResponse<VehicleLocationInfo>> |
| | | /* 现场情况上报 */ |
| | | @POST("operation/maintenance-app/api/v1/pointSituationReport/addPointSituationReport") |
| | | fun addPointSituationReport(@Body params: RequestBody): Call<HttpResponse<Any>> |
| | | |
| | | /* 获取个人中心巡游打卡任务 */ |
| | | @GET("maintenance/maintenance-app/api/v1/cruiseCheckInRule/getMyXpCruiseCheckInRule") |
| | | fun getMyCruiseCheckInMissionInfo(): Call<HttpResponse<CruiseCheckInMissionInfo>> |
| | | |
| | | /* 获取巡游打卡定位列表 */ |
| | | @GET("maintenance/maintenance-app/api/v1/cruiseCheckInRule/getAppXpCruiseCheckInLocation/{id}") |
| | | fun getCheckInMissionPointsList(@Path("id") id: String): Call<HttpResponse<List<CheckInMissionPointInfo>>> |
| | | |
| | | /* 巡游打卡5秒钟轮询上传实时位置 */ |
| | | @POST("maintenance/maintenance-app/api/v1/cruiseCheckInRule/uploadRealTimePosition") |
| | | fun uploadRealTimePosition(@Body params: RequestBody): Call<HttpResponse<CruiseCheckInOperationInfo>> |
| | | |
| | | /* 巡游打卡操作 */ |
| | | @POST("maintenance/maintenance-app/api/v1/cruiseCheckInRule/saveCruiseCheckInRecord") |
| | | fun saveCruiseCheckInRecord(@Body params: RequestBody): Call<HttpResponse<CruiseCheckInOperationResult>> |
| | | |
| | | /* 获取打卡结果详情 */ |
| | | @GET("maintenance/maintenance-app/api/v1/cruiseCheckInRule/getCruiseCheckInRecordInfo/{id}/{locationId}") |
| | | fun getCruiseCheckInRecordInfo( |
| | | @Path("id") id: String, |
| | | @Path("locationId") locationId: String |
| | | ): Call<HttpResponse<CruiseCheckInOperationResult>> |
| | | |
| | | /* 获取所有收车点 */ |
| | | @GET("operation/maintenance-app/api/v1/point/listParkingPoint") |
| | | fun getAllAcceptCarPoints(@Query("vehicleId") vehicleId: String): Call<HttpResponse<List<AcceptCarPointInfo>>> |
| | | |
| | | /* 车辆运维-检测后备箱解锁状态 */ |
| | | @GET("vehicleConvoy/maintenance-app/api/v1/order/queryVehicleTrunkStatus") |
| | | fun checkTrunkLockStatus(@Query("vehicleId") vehicleId: String): Call<HttpResponse<Int>> |
| | | } |