| app/build.gradle.kts | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| app/src/main/java/com/xw/yunwei/net/TaskApi.kt | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| app/src/main/java/com/xw/yunwei/net/UserApi.kt | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| app/src/main/java/com/xw/yunwei/net/WorkApi.kt | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
app/build.gradle.kts
@@ -8,7 +8,7 @@ val APPLICATION_ID = "com.xw.yunwei" // api host val API_UAT = "http://221.182.45.100:8000/" val API_PRD = "https://rt-api.deploy-test.xiaopeng.com/" val API_PRD = "https://rt-mt.deploy-test.xiaopeng.com/" // 阿里云推送 val PUSH_KEY = "335666352" val PUSH_SECRET = "0252ebde2dc84f63aebd41f757f213d7" app/src/main/java/com/xw/yunwei/net/TaskApi.kt
@@ -21,59 +21,59 @@ interface TaskApi { /*任务中心列表*/ @POST("maintenance/api/v1/task/pageList") @POST("maintenance/maintenance-app/api/v1/task/pageList") fun getTaskRecordList(@Body body: RequestBody): Call<HttpResponse<PageResponse<TaskModel>>> /*事故任务确认到达*/ @GET("maintenance/api/v1/task/confirmArrive") @GET("maintenance/maintenance-app/api/v1/task/confirmArrive") fun confirmArrive(@Query("id") id: String): Call<HttpResponse<Any>> /*事故任务详情*/ @GET("maintenance/api/v1/task/vehicleAccidentDetail") @GET("maintenance/maintenance-app/api/v1/task/vehicleAccidentDetail") fun vehicleAccidentDetail(@Query("id") id: String): Call<HttpResponse<TaskAccidentModel>> /*处理事故任务*/ @POST("maintenance/api/v1/task/handleVehicleAccident") @POST("maintenance/maintenance-app/api/v1/task/handleVehicleAccident") fun handleVehicleAccident(@Body body: RequestBody): Call<HttpResponse<Any>> /*车辆其他常规任务详情*/ @GET("maintenance/api/v1/task/vehicleRoutineDetail") @GET("maintenance/maintenance-app/api/v1/task/vehicleRoutineDetail") fun vehicleRoutineDetail(@Query("id") id: String): Call<HttpResponse<TaskNormalModel>> /*车辆常规充电任务详情*/ @GET("maintenance/api/v1/task/chargingDetail") @GET("maintenance/maintenance-app/api/v1/task/chargingDetail") fun chargingDetail(@Query("id") id: String): Call<HttpResponse<TaskNormalChargeModel>> /*车辆常规洗车任务详情*/ @GET("maintenance/api/v1/task/cleanDetail") @GET("maintenance/maintenance-app/api/v1/task/cleanDetail") fun cleanDetail(@Query("id") id: String): Call<HttpResponse<TaskNormalCleanModel>> /*车辆常规检测任务详情*/ @GET("maintenance/api/v1/task/detectionDetail") @GET("maintenance/maintenance-app/api/v1/task/detectionDetail") fun detectionDetail(@Query("id") id: String): Call<HttpResponse<TaskNormalCheckModel>> /*车辆常规整备任务详情*/ @GET("maintenance/api/v1/task/preparationDetail") @GET("maintenance/maintenance-app/api/v1/task/preparationDetail") fun preparationDetail(@Query("id") id: String): Call<HttpResponse<TaskNormalMaintainModel>> /*车辆常规维修任务详情*/ @GET("maintenance/api/v1/task/repairDetail") @GET("maintenance/maintenance-app/api/v1/task/repairDetail") fun repairDetail(@Query("id") id: String): Call<HttpResponse<TaskNormalRepairModel>> /*上传车辆其他常规任务详情 保养/保险/年检*/ @POST("maintenance/api/v1/task/saveRoutineDetail") @POST("maintenance/maintenance-app/api/v1/task/saveRoutineDetail") fun saveRoutineDetail(@Body body: RequestBody): Call<HttpResponse<PageResponse<Any>>> /*事故上报*/ @POST("maintenance/api/v1/task/saveVehicleAccident") @POST("maintenance/maintenance-app/api/v1/task/saveVehicleAccident") fun saveVehicleAccident(@Body body: RequestBody): Call<HttpResponse<PageResponse<Any>>> /*事故类型列表*/ @GET("maintenance/api/v1/task/errorTypeList") @GET("maintenance/maintenance-app/api/v1/task/errorTypeList") fun getTypeList(): Call<HttpResponse<List<XpErrorType>>> /*获取未读通知数量*/ @GET("account/api/v1/notification/unreadCount") @GET("account/maintenance-app/api/v1/notification/unreadCount") fun getUnreadCount(): Call<HttpResponse<String>> app/src/main/java/com/xw/yunwei/net/UserApi.kt
@@ -23,66 +23,66 @@ interface UserApi { /*账号密码登录*/ @POST("account/base/v1/operationPasswordLogin") @POST("account/maintenance-app/base/v1/operationPasswordLogin") fun loginByPassword(@Body body: RequestBody): Call<HttpResponse<LoginModel>> /*手机验证码登录*/ @POST("account/base/v1/verificationCodeLogin") @POST("account/maintenance-app/base/v1/verificationCodeLogin") fun loginByCode(@Body body: RequestBody): Call<HttpResponse<LoginModel>> /*获取手机验证码*/ @POST("account/base/v1/getVerificationCode") @POST("account/maintenance-app/base/v1/getVerificationCode") fun getVerificationCode(@Body body: RequestBody): Call<HttpResponse<Any>> /*修改密码*/ @POST("account/base/v1/updatePassword") @POST("account/maintenance-app/base/v1/updatePassword") fun modifierPsw(@Body body: RequestBody): Call<HttpResponse<Any>> /*获取个人中心首页信息*/ @GET("account/api/v1/userInfo") @GET("account/maintenance-app/api/v1/userInfo") fun getUserInfo(): Call<HttpResponse<UserInfoRealtime>> /*个人中心-证件上传*/ @POST("account/api/v1/saveCertificate") @POST("account/maintenance-app/api/v1/saveCertificate") fun saveCertificate(@Body body: RequestBody): Call<HttpResponse<Any>> /*获取协议/隐私政策 类型 1=用户服务协议 2=平台隐私政策 */ @GET("operation/base/v1/privacy/content/{type}") @GET("operation/maintenance-app/base/v1/privacy/content/{type}") fun getProtocol(@Path("type") type: Int): Call<HttpResponse<WebContentModel>> /*消息通知 */ @POST("account/api/v1/notification/list") @POST("account/maintenance-app/api/v1/notification/list") fun getNoticeList(@Body body: RequestBody): Call<HttpResponse<PageResponse<NoticeModel>>> /*获取App最新版本 */ @GET("operation/api/v1/app/version/latest") @GET("operation/maintenance-app/api/v1/app/version/latest") fun getVersion(): Call<HttpResponse<AppVersionModel>> /*获取客服电话 */ @GET("operation/base/v1/support/phone") @GET("operation/maintenance-app/base/v1/support/phone") fun getPhone(): Call<HttpResponse<Any>> /*查询个人排班与考勤信息 */ @POST("maintenance/api/v1/scheduling/shiftAttendance") @POST("maintenance/maintenance-app/api/v1/scheduling/shiftAttendance") fun querySchedule(@Body body: RequestBody): Call<HttpResponse<ClockInStatusModel>> /*上班打卡 */ @POST("maintenance/api/v1/clock/clockIn") @POST("maintenance/maintenance-app/api/v1/clock/clockIn") fun clockIn(@Body body: RequestBody): Call<HttpResponse<Any>> /*下班打卡 */ @POST("maintenance/api/v1/clock/clockOut") @POST("maintenance/maintenance-app/api/v1/clock/clockOut") fun clockOut(@Body body: RequestBody): Call<HttpResponse<Any>> /*设置已读 */ // @FormUrlEncoded // @POST("account/api/v1/notification/read") // fun read(@Field("notificationId") notificationId: Long): Call<HttpResponse<Any>> @GET("account/api/v1/notification/read") @GET("account/maintenance-app/api/v1/notification/read") fun read(@Query("notificationId") notificationId: Long): Call<HttpResponse<Any>> /*获取获取当前登录用户权限列表 */ @GET("operation/api/v1/getAppPermission") @GET("operation/maintenance-app/api/v1/getAppPermission") fun getAppPermission(): Call<HttpResponse<List<AppPermissionModel>>> } app/src/main/java/com/xw/yunwei/net/WorkApi.kt
@@ -28,111 +28,111 @@ interface WorkApi { /* 站点列表 */ @POST("map/api/v1/map/list") @POST("map/maintenance-app/api/v1/map/list") fun querySites(@Body body: RequestBody): Call<HttpResponse<List<SiteModel>>> /* 运营区域查看 */ @GET("operation/api/v1/electronicFence/operationsFenceList") @GET("operation/maintenance-app/api/v1/electronicFence/operationsFenceList") fun queryArea(): Call<HttpResponse<List<AreaModel>>> /* 车辆列表 */ @POST("vehicleConvoy/api/v1/vehicle/vehicleMap") @POST("vehicleConvoy/maintenance-app/api/v1/vehicle/vehicleMap") fun queryCars(@Body body: RequestBody): Call<HttpResponse<PageResponse<CarModel>>> /* 车辆详情 */ @POST("vehicleConvoy/api/v1/vehicle/vehicleDetail") @POST("vehicleConvoy/maintenance-app/api/v1/vehicle/vehicleDetail") fun queryCarInfo(@Query("id") id: Long): Call<HttpResponse<CarModel>> /* 车辆运维-车辆调度-接单、测试 */ @POST("maintenance/api/v1/vehicle/vehicleDispatchAccept") @POST("maintenance/maintenance-app/api/v1/vehicle/vehicleDispatchAccept") fun vehicleDispatchAccept(@Body body: RequestBody): Call<HttpResponse<CarModel>> /* 车辆运维-车辆调度-发车 */ @POST("maintenance/api/v1/vehicle/vehicleDispatchDeparture") @POST("maintenance/maintenance-app/api/v1/vehicle/vehicleDispatchDeparture") fun vehicleDispatchDeparture(@Body body: RequestBody): Call<HttpResponse<CarModel>> /* 车辆运维-车门解锁/后备箱解锁 */ @POST("vehicleConvoy/api/v1/vehicle/unlockByType") @POST("vehicleConvoy/maintenance-app/api/v1/vehicle/unlockByType") fun unlockByType(@Body body: RequestBody): Call<HttpResponse<CarModel>> /* 车辆运维-车辆运维-车辆整备 */ @POST("maintenance/api/v1/vehiclePreparation/savePreparation") @POST("maintenance/maintenance-app/api/v1/vehiclePreparation/savePreparation") fun savePreparation(@Body body: MaintainRecordModel): Call<HttpResponse<CarModel>> /* 车辆运维-车辆运维-车辆检测提交 */ @POST("maintenance/api/v1/vehicleDetection/saveDetection") @POST("maintenance/maintenance-app/api/v1/vehicleDetection/saveDetection") fun saveDetection(@Body body: CheckRecordModel): Call<HttpResponse<CarModel>> /* 获取说明 1胎压说明 2灯光说明 3车身标识及清洁说明 4舱内清洁及消毒 5遗失物品上报 6车辆充电说明 7车辆检测说明 8=车辆保险标准说明 9=车辆年检标准说明 10=车辆保养标准说明 11=车辆运营资质标准说明*/ @GET("maintenance/api/v1/vehicle/vehicleDescription") @GET("maintenance/maintenance-app/api/v1/vehicle/vehicleDescription") fun getDesc(@Query("descriptionType") descriptionType: Int): Call<HttpResponse<WebContent1Model>> /* 车辆运维-车辆运维-开始自检 */ @GET("maintenance/api/v1/vehicleDetection/startDetection") @GET("maintenance/maintenance-app/api/v1/vehicleDetection/startDetection") fun startCheck(@Query("vehicleId") vehicleId: Long): Call<HttpResponse<Any>> /* 车辆运维-车辆运维-车辆送修 */ @POST("maintenance/api/v1/vehicleRepair/saveRepair") @POST("maintenance/maintenance-app/api/v1/vehicleRepair/saveRepair") fun saveRepair(@Body body: RequestBody): Call<HttpResponse<Any>> /* 车辆运维-车辆运维-车辆取回 */ @POST("maintenance/api/v1/vehicleRepair/saveReturnRepair") @POST("maintenance/maintenance-app/api/v1/vehicleRepair/saveReturnRepair") fun saveReturnRepair(@Body body: RequestBody): Call<HttpResponse<Any>> /* 车辆运维-车辆运维-车身清洁 */ @POST("maintenance/api/v1/vehicleClean/add") @POST("maintenance/maintenance-app/api/v1/vehicleClean/add") fun cleanCar(@Body body: RequestBody): Call<HttpResponse<Any>> /* 车辆运维-车辆调度-运维记录 */ @POST("maintenance/api/v1/vehicle/operationRecords") @POST("maintenance/maintenance-app/api/v1/vehicle/operationRecords") fun getRecord(@Body body: RequestBody): Call<HttpResponse<PageResponse<CarOperationRecordModel>>> /* 车辆运维-车辆运维-车辆充电查询当前状态 */ @GET("maintenance/api/v1/chargingRecord/queryChargingStatus") @GET("maintenance/maintenance-app/api/v1/chargingRecord/queryChargingStatus") fun queryChargingStatus(@Query("vehicleId") vehicleId: Long): Call<HttpResponse<ChargeRecordModel>> /* 车辆运维-车辆运维-车辆开始充电 */ @POST("maintenance/api/v1/chargingRecord/startCharging") @POST("maintenance/maintenance-app/api/v1/chargingRecord/startCharging") fun startCharging(@Body body: RequestBody): Call<HttpResponse<ChargeRecordModel>> /* 车辆运维-车辆运维-车辆结束充电 */ @POST("maintenance/api/v1/chargingRecord/stopCharging") @POST("maintenance/maintenance-app/api/v1/chargingRecord/stopCharging") fun stopCharging(@Body body: RequestBody): Call<HttpResponse<ChargeRecordModel>> /* 车辆运维-车辆运维-查询车辆维修状态 */ @GET("maintenance/api/v1/vehicleRepair/queryRepairStatus") @GET("maintenance/maintenance-app/api/v1/vehicleRepair/queryRepairStatus") fun queryRepairStatus(@Query("vehicleId") vehicleId: Long): Call<HttpResponse<RepairRecordModel>> /* 车辆运维-运维记录-整备记录详情 */ @GET("maintenance/api/v1/vehiclePreparation/preparationDetail") @GET("maintenance/maintenance-app/api/v1/vehiclePreparation/preparationDetail") fun preparationDetail(@Query("id") id: Long): Call<HttpResponse<CarRecordMaintainModel>> /* 车辆运维-运维记录-充电记录详情 */ @GET("maintenance/api/v1/chargingRecord/chargingDetail") @GET("maintenance/maintenance-app/api/v1/chargingRecord/chargingDetail") fun chargingDetail(@Query("id") id: Long): Call<HttpResponse<CarRecordChargeModel>> /* 车辆运维-运维记录-检测记录详情 */ @GET("maintenance/api/v1/vehicleDetection/detectionDetail") @GET("maintenance/maintenance-app/api/v1/vehicleDetection/detectionDetail") fun detectionDetail(@Query("id") id: Long): Call<HttpResponse<CarRecordCheckModel>> /* 车辆运维-运维记录-维修记录详情 */ @GET("maintenance/api/v1/vehicleRepair/repairDetail") @GET("maintenance/maintenance-app/api/v1/vehicleRepair/repairDetail") fun repairDetail(@Query("id") id: Long): Call<HttpResponse<CarRecordRepairModel>> /* 车辆运维-运维记录-清洁记录详情 */ @GET("maintenance/api/v1/vehicleClean/cleanDetail") @GET("maintenance/maintenance-app/api/v1/vehicleClean/cleanDetail") fun cleanDetail(@Query("id") id: Long): Call<HttpResponse<CarRecordCleanModel>> /* 通过车辆id查询保单审核明细 */ @GET("vehicleConvoy/api/v1/policyApplication/queryPolicyInfoByVid") @GET("vehicleConvoy/maintenance-app/api/v1/policyApplication/queryPolicyInfoByVid") fun queryPolicyInfoByVid(@Query("vehicleId") vehicleId: Long): Call<HttpResponse<CarReportModel>> /* 申请保单查看 */ @GET("vehicleConvoy/api/v1/policyApplication/applyPolicyInformation") @GET("vehicleConvoy/maintenance-app/api/v1/policyApplication/applyPolicyInformation") fun applyPolicyInformation(@Query("vehicleId") vehicleId: Long): Call<HttpResponse<Any>> /* 获取地图开放区域围栏 */ @GET("map/api/v1/fence/listByCityCode") @GET("map/maintenance-app/api/v1/fence/listByCityCode") fun getFenceByCode(@Query("cityCode") cityCode: String): Call<HttpResponse<List<FenceInfoModel>>>