From 03972ad1d3ce6ffe0be0395c0a4d5dcb4474031f Mon Sep 17 00:00:00 2001
From: lmw <125975490@qq.com>
Date: 星期五, 16 六月 2023 15:54:16 +0800
Subject: [PATCH] 修改公费支付方式

---
 app/src/main/java/com/kuanzhai/user/network/HttpManager.kt |   81 ++++++++++++++++++++++++++++++++++++++++
 1 files changed, 81 insertions(+), 0 deletions(-)

diff --git a/app/src/main/java/com/kuanzhai/user/network/HttpManager.kt b/app/src/main/java/com/kuanzhai/user/network/HttpManager.kt
index e4f1a6c..7f0da8d 100644
--- a/app/src/main/java/com/kuanzhai/user/network/HttpManager.kt
+++ b/app/src/main/java/com/kuanzhai/user/network/HttpManager.kt
@@ -1627,4 +1627,85 @@
     fun saveCompanyLimit(money: Double,reason: String): Flowable<ResultData<Any>> {
         return request().saveCompanyLimit(money,reason)
     }
+
+    /**
+     * 我的额度列表
+     */
+    fun getMineLimitList(page: Int): Flowable<ResultData<MyCreditBean>> {
+        return request().getMineLimitList(page)
+    }
+
+    /**
+     * 额度审核
+     */
+    fun companyLimitApprove(id: String,state: Int,reason: String?): Flowable<ResultData<Any>> {
+        return request().companyLimitApprove(id,state,reason)
+    }
+
+    /**
+     * 公务用车权限检测
+     */
+    fun validPermission(): Flowable<ResultData<JsonObject>> {
+        return request().validPermission()
+    }
+
+    /**
+     * 出行事由
+     */
+    fun getBusinessReason(): Flowable<ResultData<List<Reason>>> {
+        return request().getBusinessReason()
+    }
+
+    /**
+     * 查询价格和车型
+     */
+    fun queryBusinessCarModel(start:String,end:String,type: Int,startTime: String?,endTime: String?): Flowable<ResultData<ArrayList<CarPrice>>> {
+        return request().queryBusinessCarModel(start, end, type,endTime, startTime)
+    }
+
+    /**
+     * 查询常用乘车人
+     */
+    fun queryStaff(): Flowable<ResultData<List<Passenger>>> {
+        return request().queryStaff()
+    }
+
+    /**
+     * 公务下单
+     */
+    fun saveOrderBusiness(calType:Int,endAddress:String,endLat:Double, endLon:Double,isNotice:Int,orderSource:Int, orderType:Int,payWay:Int,people:String,
+                          reason:String?,reasonTypeNames:String?, peopleNum:Int,placementLat:Double,placementLon:Double, serverCarModelId:Int?,startLat:Double,startLon:Double,
+                          startAddress:String,substitute:Int,travelEndTime:String?, travelTime:String, type :Int, driverId: Int?): Flowable<ResultData<JsonObject>> {
+        return request().saveOrderBusiness(calType, endAddress, endLat, endLon, isNotice, orderSource, orderType, payWay, people, reason, reasonTypeNames, peopleNum, placementLat,
+            placementLon, serverCarModelId, startLat, startLon, startAddress, substitute, travelEndTime, travelTime, type,driverId)
+    }
+
+    /**
+     * 公务订单审核列表
+     */
+    fun approveOrderList(page: Int): Flowable<ResultData<List<OrderCheckListBean>>> {
+        return request().approveOrderList(page)
+    }
+
+    /**
+     * 公务订单审核详情
+     */
+    fun approveOrderDetail(id: String): Flowable<ResultData<OrderCheckDetail>> {
+        return request().approveOrderDetail(id)
+    }
+
+    /**
+     * 订单审核
+     */
+    fun approveOrder(id: String,state:Int,reason: String?): Flowable<ResultData<Any>> {
+        return request().approveOrder(id,state,reason)
+    }
+
+    /**
+     * 设置录音
+     * @param state 1开 0关
+     */
+    fun setSound(state:Int): Flowable<ResultData<Any>> {
+        return request().setSound(state)
+    }
 }
\ No newline at end of file

--
Gitblit v1.7.1