|
@@ -1,6 +1,7 @@
|
|
|
package com.quansu.heifengwuliu.utils.net
|
|
|
|
|
|
import com.quansu.heifengwuliu.model.*
|
|
|
+import com.ysnows.base.net.Resp
|
|
|
import io.reactivex.Observable
|
|
|
import retrofit2.http.*
|
|
|
import java.util.*
|
|
@@ -13,49 +14,49 @@ interface ApiService {
|
|
|
|
|
|
@POST("task/save")
|
|
|
@FormUrlEncoded
|
|
|
- fun addTodo(@Field("title") title: String?): Observable<Response<Any>>
|
|
|
+ fun addTodo(@Field("title") title: String?): Observable<Resp<Any>>
|
|
|
|
|
|
@POST("alipay/order_info")
|
|
|
@FormUrlEncoded
|
|
|
- fun alipayPreOrder(@Field("vip_level") vip_level: Int): Observable<Response<String>>
|
|
|
+ fun alipayPreOrder(@Field("vip_level") vip_level: Int): Observable<Resp<String>>
|
|
|
|
|
|
|
|
|
@GET("task/ls")
|
|
|
- fun taskList(@Query("action") action: String?, @Query("page") page: Int): Observable<Response<List<Todo>>>
|
|
|
+ fun taskList(@Query("action") action: String?, @Query("page") page: Int): Observable<Resp<List<Todo>>>
|
|
|
|
|
|
|
|
|
@POST("bac")
|
|
|
@FormUrlEncoded
|
|
|
- fun bac(@Field("settings") settings: String?, @Field("funcs") funcsJson: String?, @Field("searchs") searchJson: String?, @Field("gesture") gestureJson: String?): Observable<Response<String>>
|
|
|
+ fun bac(@Field("settings") settings: String?, @Field("funcs") funcsJson: String?, @Field("searchs") searchJson: String?, @Field("gesture") gestureJson: String?): Observable<Resp<String>>
|
|
|
|
|
|
@POST("task/save")
|
|
|
@FormUrlEncoded
|
|
|
- fun taskSave(@Field("id") id: Int, @FieldMap params: HashMap<String?, Any?>?): Observable<Response<String>>
|
|
|
+ fun taskSave(@Field("id") id: Int, @FieldMap params: HashMap<String?, Any?>?): Observable<Resp<String>>
|
|
|
|
|
|
@POST("task/checked")
|
|
|
@FormUrlEncoded
|
|
|
- fun taskChecked(@Field("id") id: Int): Observable<Response<Any>>
|
|
|
+ fun taskChecked(@Field("id") id: Int): Observable<Resp<Any>>
|
|
|
|
|
|
|
|
|
@GET("user/logout")
|
|
|
- fun logout(): Observable<Response<Any>>
|
|
|
+ fun logout(): Observable<Resp<Any>>
|
|
|
|
|
|
@GET("order/submmit")
|
|
|
- fun order_submmit(): Observable<Response<String>>
|
|
|
+ fun order_submmit(): Observable<Resp<String>>
|
|
|
|
|
|
@POST("order/active")
|
|
|
@FormUrlEncoded
|
|
|
- fun active(@Field("code") code: String?): Observable<Response<Any>>
|
|
|
+ fun active(@Field("code") code: String?): Observable<Resp<Any>>
|
|
|
|
|
|
@GET("func/getFuncIcon")
|
|
|
- fun getFuncIcon(@Query("host") host: String?): Observable<Response<String>>
|
|
|
+ fun getFuncIcon(@Query("host") host: String?): Observable<Resp<String>>
|
|
|
|
|
|
// ------------
|
|
|
|
|
|
|
|
|
@POST("api/common/getOssSign")
|
|
|
@FormUrlEncoded
|
|
|
- fun getSignedUrl(@Field("type") type: String?): Observable<Response<ImageSign>>
|
|
|
+ fun getSignedUrl(@Field("type") type: String?): Observable<Resp<ImageSign>>
|
|
|
|
|
|
|
|
|
/**
|
|
@@ -65,7 +66,7 @@ interface ApiService {
|
|
|
*/
|
|
|
@POST("api/index/loginSms")
|
|
|
@FormUrlEncoded
|
|
|
- fun getRegisterCode(@Field("mobile") mobile: String?): Observable<Response<SendSmsBean>>
|
|
|
+ fun getRegisterCode(@Field("mobile") mobile: String?): Observable<Resp<SendSmsBean>>
|
|
|
|
|
|
|
|
|
/**
|
|
@@ -75,7 +76,7 @@ interface ApiService {
|
|
|
*/
|
|
|
@POST("api/index/sendSms")
|
|
|
@FormUrlEncoded
|
|
|
- fun getRegisterSms(@Field("mobile") mobile: String?): Observable<Response<SendSmsBean>>
|
|
|
+ fun getRegisterSms(@Field("mobile") mobile: String?): Observable<Resp<SendSmsBean>>
|
|
|
|
|
|
|
|
|
/**
|
|
@@ -85,7 +86,7 @@ interface ApiService {
|
|
|
*/
|
|
|
@POST("api/index/jiguangLogin")
|
|
|
@FormUrlEncoded
|
|
|
- fun jiguangLogin(@Field("loginToken") loginToken: String): Observable<Response<LoginBean>>
|
|
|
+ fun jiguangLogin(@Field("loginToken") loginToken: String): Observable<Resp<LoginBean>>
|
|
|
|
|
|
/**
|
|
|
* 注册
|
|
@@ -96,7 +97,7 @@ interface ApiService {
|
|
|
@POST("api/index/register")
|
|
|
@FormUrlEncoded
|
|
|
fun register(@Field("name") name: String?, @Field("mobile") mobile: String?, @Field("code") code: String?,
|
|
|
- @Field("type") type: String?, @Field("openid") openid: String? = null, @Field("unionid") unionId: String? = null): Observable<Response<LoginBean>>
|
|
|
+ @Field("type") type: String?, @Field("openid") openid: String? = null, @Field("unionid") unionId: String? = null): Observable<Resp<LoginBean>>
|
|
|
|
|
|
|
|
|
/**
|
|
@@ -106,7 +107,7 @@ interface ApiService {
|
|
|
*/
|
|
|
@POST("api/index/pwdLogin")
|
|
|
@FormUrlEncoded
|
|
|
- fun login(@Field("mobile") mobile: String?, @Field("pwd") pwd: String?): Observable<Response<LoginBean>>
|
|
|
+ fun login(@Field("mobile") mobile: String?, @Field("pwd") pwd: String?): Observable<Resp<LoginBean>>
|
|
|
|
|
|
/**
|
|
|
*短信登录
|
|
@@ -115,7 +116,7 @@ interface ApiService {
|
|
|
*/
|
|
|
@POST("api/index/smslogin")
|
|
|
@FormUrlEncoded
|
|
|
- fun smsLogin(@Field("mobile") mobile: String?, @Field("code") code: String?): Observable<Response<LoginBean>>
|
|
|
+ fun smsLogin(@Field("mobile") mobile: String?, @Field("code") code: String?): Observable<Resp<LoginBean>>
|
|
|
|
|
|
/**
|
|
|
*微信登录
|
|
@@ -124,7 +125,7 @@ interface ApiService {
|
|
|
*/
|
|
|
@POST("api/index/wxLogin")
|
|
|
@FormUrlEncoded
|
|
|
- fun wxLogin(@Field("code") code: String?): Observable<Response<LoginBean>>
|
|
|
+ fun wxLogin(@Field("code") code: String?): Observable<Resp<LoginBean>>
|
|
|
|
|
|
|
|
|
/**
|
|
@@ -134,22 +135,22 @@ interface ApiService {
|
|
|
*/
|
|
|
@POST("api/index/siml_register")
|
|
|
@FormUrlEncoded
|
|
|
- fun simlRegister(@Field("mobile") mobile: String?, @Field("type") type: String?): Observable<Response<LoginBean>>
|
|
|
+ fun simlRegister(@Field("mobile") mobile: String?, @Field("type") type: String?): Observable<Resp<LoginBean>>
|
|
|
|
|
|
/**
|
|
|
* 用户信息
|
|
|
* @return
|
|
|
*/
|
|
|
@GET("api/user/getuserinfo")
|
|
|
- fun getUser(): Observable<Response<User>>
|
|
|
+ fun getUser(): Observable<Resp<User>>
|
|
|
|
|
|
/**
|
|
|
* 地址列表
|
|
|
* @return
|
|
|
*/
|
|
|
@GET("api/address/addressList")
|
|
|
- fun addressList(@Query("type") type: String?,
|
|
|
- @Query("k") k: String, @Query("p") p: Int): Observable<Response<List<AddressBean>>>
|
|
|
+ suspend fun addressList(@Query("type") type: String?,
|
|
|
+ @Query("k") k: String, @Query("p") p: Int): Resp<List<AddressBean>>
|
|
|
|
|
|
|
|
|
/**
|
|
@@ -157,7 +158,7 @@ interface ApiService {
|
|
|
* @return
|
|
|
*/
|
|
|
@GET("api/common/getArea")
|
|
|
- fun getArea(@Query("code") code: String?, @Query("page") page: Int): Observable<Response<List<AreaBean>>>
|
|
|
+ suspend fun getArea(@Query("code") code: String?, @Query("page") page: Int): Resp<List<AreaBean>>
|
|
|
|
|
|
|
|
|
/**
|
|
@@ -172,7 +173,7 @@ interface ApiService {
|
|
|
@Field("city") city: String?, @Field("area") area: String?,
|
|
|
@Field("address") address: String?, @Field("name") name: String?,
|
|
|
@Field("mobile") mobile: String?, @Field("type") type: String?,
|
|
|
- @Field("is_default") is_default: String?): Observable<Response<Any>>
|
|
|
+ @Field("is_default") is_default: String?): Observable<Resp<Any>>
|
|
|
|
|
|
|
|
|
/**
|
|
@@ -180,7 +181,7 @@ interface ApiService {
|
|
|
* @return
|
|
|
*/
|
|
|
@GET("api/address/addressGet")
|
|
|
- fun getAddress(@Query("addr_id") addr_id: String?): Observable<Response<AddressDetailsBean>>
|
|
|
+ fun getAddress(@Query("addr_id") addr_id: String?): Observable<Resp<AddressDetailsBean>>
|
|
|
|
|
|
|
|
|
/**
|
|
@@ -188,15 +189,14 @@ interface ApiService {
|
|
|
* @return
|
|
|
*/
|
|
|
@GET("api/address/addressDel")
|
|
|
- fun setAddressDel(@Query("addr_id") addr_id: String?): Observable<Response<Any>>
|
|
|
+ fun setAddressDel(@Query("addr_id") addr_id: String?): Observable<Resp<Any>>
|
|
|
|
|
|
/**
|
|
|
* 货源详情-货主端
|
|
|
* @return
|
|
|
*/
|
|
|
@GET("api/info/infoGet")
|
|
|
- fun infoGet(@Query("info_id") info_id: String?): Observable<Response<DataInfoBean>>
|
|
|
-
|
|
|
+ fun infoGet(@Query("info_id") info_id: String?): Observable<Resp<DataInfoBean>>
|
|
|
|
|
|
|
|
|
/**
|
|
@@ -204,8 +204,7 @@ interface ApiService {
|
|
|
* @return
|
|
|
*/
|
|
|
@GET("api/info/orderGet")
|
|
|
- fun orderGet(@Query("order_id") order_id: String?): Observable<Response<WaybillDetails>>
|
|
|
-
|
|
|
+ fun orderGet(@Query("order_id") order_id: String?): Observable<Resp<WaybillDetails>>
|
|
|
|
|
|
|
|
|
/**
|
|
@@ -225,7 +224,7 @@ interface ApiService {
|
|
|
@Field("data") data: String?,
|
|
|
@Field("send") send: String?,
|
|
|
@Field("receive") receive: String?
|
|
|
- ): Observable<Response<InfoEditBean>>
|
|
|
+ ): Observable<Resp<InfoEditBean>>
|
|
|
|
|
|
|
|
|
/**
|
|
@@ -234,7 +233,7 @@ interface ApiService {
|
|
|
*/
|
|
|
@POST("api/info/infoPay")
|
|
|
@FormUrlEncoded
|
|
|
- fun infoGetPay(@Field("info_id") info_id: String?, @Field("pay_pwd") pay_pwd: String?): Observable<Response<Any>>
|
|
|
+ fun infoGetPay(@Field("info_id") info_id: String?, @Field("pay_pwd") pay_pwd: String?): Observable<Resp<Any>>
|
|
|
|
|
|
|
|
|
/**
|
|
@@ -242,14 +241,14 @@ interface ApiService {
|
|
|
* @return
|
|
|
*/
|
|
|
@GET("api/info/infoCancel")
|
|
|
- fun infoCancel(@Query("info_id") info_id: String?): Observable<Response<Any>>
|
|
|
+ fun infoCancel(@Query("info_id") info_id: String?): Observable<Resp<Any>>
|
|
|
|
|
|
/**
|
|
|
* 货源列表
|
|
|
* @return
|
|
|
*/
|
|
|
@GET("api/info/infoList")
|
|
|
- fun infoList(@Query("info_state") info_state: String?, @Query("p") p: Int): Observable<Response<List<InfoListBean>>>
|
|
|
+ suspend fun infoList(@Query("info_state") info_state: String?, @Query("p") p: Int): Resp<List<InfoListBean>>
|
|
|
|
|
|
|
|
|
/**
|
|
@@ -257,7 +256,7 @@ interface ApiService {
|
|
|
* @return
|
|
|
*/
|
|
|
@GET("api/driver/myDriver")
|
|
|
- fun myDriver(@Query("k") k: String?, @Query("p") p: Int): Observable<Response<List<DriverBean>>>
|
|
|
+ suspend fun myDriver(@Query("k") k: String?, @Query("p") p: Int): Resp<List<DriverBean>>
|
|
|
|
|
|
|
|
|
/**
|
|
@@ -265,7 +264,7 @@ interface ApiService {
|
|
|
* @return
|
|
|
*/
|
|
|
@GET("api/driver/allDriver")
|
|
|
- fun allDriver(@Query("k") k: String?, @Query("p") p: Int): Observable<Response<List<DriverBean>>>
|
|
|
+ fun allDriver(@Query("k") k: String?, @Query("p") p: Int): Observable<Resp<List<DriverBean>>>
|
|
|
|
|
|
/**
|
|
|
* 常用司机-添加收藏
|
|
@@ -273,7 +272,7 @@ interface ApiService {
|
|
|
*/
|
|
|
@POST("api/driver/setDriver")
|
|
|
@FormUrlEncoded
|
|
|
- fun setDriver(@Field("arr") arr: String): Observable<Response<Any>>
|
|
|
+ fun setDriver(@Field("arr") arr: String): Observable<Resp<Any>>
|
|
|
|
|
|
|
|
|
/**
|
|
@@ -284,7 +283,7 @@ interface ApiService {
|
|
|
@FormUrlEncoded
|
|
|
fun setInfo(@Field("idcard_z") idcard_z: String?, @Field("idcard_f") idcard_f: String?,
|
|
|
@Field("name") name: String?, @Field("idcard") idcard: String?
|
|
|
- ): Observable<Response<Any>>
|
|
|
+ ): Observable<Resp<Any>>
|
|
|
|
|
|
/**
|
|
|
* 银行卡信息-保存
|
|
@@ -294,8 +293,7 @@ interface ApiService {
|
|
|
@FormUrlEncoded
|
|
|
fun setCardBank(@Field("name") name: String?, @Field("number") number: String?,
|
|
|
@Field("bank") bank: String?, @Field("kbank") kbank: String?,
|
|
|
- @Field("image") image: String?): Observable<Response<Any>>
|
|
|
-
|
|
|
+ @Field("image") image: String?): Observable<Resp<Any>>
|
|
|
|
|
|
|
|
|
/**
|
|
@@ -303,7 +301,7 @@ interface ApiService {
|
|
|
* @return
|
|
|
*/
|
|
|
@GET("api/user/getInfo")
|
|
|
- fun getInfo(@Query("type") type: String?): Observable<Response<InfoBean>>
|
|
|
+ fun getInfo(@Query("type") type: String?): Observable<Resp<InfoBean>>
|
|
|
|
|
|
|
|
|
/**
|
|
@@ -314,8 +312,7 @@ interface ApiService {
|
|
|
@FormUrlEncoded
|
|
|
fun setCompany(@Field("license_img") license_img: String?, @Field("license_sn") license_sn: String?,
|
|
|
@Field("company_name") company_name: String?
|
|
|
- ): Observable<Response<Any>>
|
|
|
-
|
|
|
+ ): Observable<Resp<Any>>
|
|
|
|
|
|
|
|
|
/**
|
|
@@ -336,12 +333,7 @@ interface ApiService {
|
|
|
@Field("organization") organization: String?, @Field("reg_date") reg_date: String?,
|
|
|
@Field("cert_date") cert_date: String?, @Field("driver_org") driver_org: String?,
|
|
|
@Field("start_date") start_date: String?, @Field("end_date") end_date: String?
|
|
|
- ): Observable<Response<Any>>
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
+ ): Observable<Resp<Any>>
|
|
|
|
|
|
|
|
|
/**
|
|
@@ -351,7 +343,7 @@ interface ApiService {
|
|
|
@POST("api/user/setPwd")
|
|
|
@FormUrlEncoded
|
|
|
fun setPwd(@Field("oldpwd") oldpwd: String?, @Field("newpwd") newpwd: String?,
|
|
|
- @Field("type") type: String?): Observable<Response<Any>>
|
|
|
+ @Field("type") type: String?): Observable<Resp<Any>>
|
|
|
|
|
|
|
|
|
/**
|
|
@@ -361,10 +353,10 @@ interface ApiService {
|
|
|
@POST("api/invoice/invoiceEdit")
|
|
|
@FormUrlEncoded
|
|
|
fun invoiceEdit(@Field("invoice_id") invoice_id: String?, @Field("company") company: String?,
|
|
|
- @Field("sn") sn: String?, @Field("addr") addr: String?,
|
|
|
+ @Field("sn") sn: String?, @Field("addr") addr: String?,
|
|
|
@Field("tel") tel: String?, @Field("bank") bank: String?,
|
|
|
- @Field("number") number: String?
|
|
|
- ): Observable<Response<Any>>
|
|
|
+ @Field("number") number: String?
|
|
|
+ ): Observable<Resp<Any>>
|
|
|
|
|
|
|
|
|
/**
|
|
@@ -372,8 +364,7 @@ interface ApiService {
|
|
|
* @return
|
|
|
*/
|
|
|
@GET("api/invoice/invoiceGet")
|
|
|
- fun invoiceGet(): Observable<Response<Invoice>>
|
|
|
-
|
|
|
+ fun invoiceGet(): Observable<Resp<Invoice>>
|
|
|
|
|
|
|
|
|
/**
|
|
@@ -381,8 +372,7 @@ interface ApiService {
|
|
|
* @return
|
|
|
*/
|
|
|
@GET("api/invoice/invoiceList")
|
|
|
- fun invoiceList(@Query("p") p: Int): Observable<Response<ArrayList<Invoice>>>
|
|
|
-
|
|
|
+ suspend fun invoiceList(@Query("p") p: Int): Resp<ArrayList<Invoice>>
|
|
|
|
|
|
|
|
|
/**
|
|
@@ -390,8 +380,7 @@ interface ApiService {
|
|
|
* @return
|
|
|
*/
|
|
|
@GET("api/order/infoList")
|
|
|
- fun infoListDriver(@Query("k") k: String?, @Query("p") p: Int): Observable<Response<List<InfoListBean>>>
|
|
|
-
|
|
|
+ suspend fun infoListDriver(@Query("k") k: String?, @Query("p") p: Int): Resp<List<InfoListBean>>
|
|
|
|
|
|
|
|
|
/**
|
|
@@ -399,7 +388,7 @@ interface ApiService {
|
|
|
* @return
|
|
|
*/
|
|
|
@GET("api/order/infoGet")
|
|
|
- fun infoGetDriver(@Query("info_id") info_id: String?): Observable<Response<DataInfoBean>>
|
|
|
+ fun infoGetDriver(@Query("info_id") info_id: String?): Observable<Resp<DataInfoBean>>
|
|
|
|
|
|
|
|
|
/**
|
|
@@ -407,8 +396,7 @@ interface ApiService {
|
|
|
* @return
|
|
|
*/
|
|
|
@GET("api/info/orderGet")
|
|
|
- fun orderGetDriver(@Query("order_id") order_id: String?): Observable<Response<WaybillDetails>>
|
|
|
-
|
|
|
+ fun orderGetDriver(@Query("order_id") order_id: String?): Observable<Resp<WaybillDetails>>
|
|
|
|
|
|
|
|
|
/**
|
|
@@ -416,8 +404,7 @@ interface ApiService {
|
|
|
* @return
|
|
|
*/
|
|
|
@GET("api/order/getInfo")
|
|
|
- fun getInfoDriver(@Query("info_id") info_id: String?): Observable<Response<Any>>
|
|
|
-
|
|
|
+ fun getInfoDriver(@Query("info_id") info_id: String?): Observable<Resp<Any>>
|
|
|
|
|
|
|
|
|
/**
|
|
@@ -425,7 +412,7 @@ interface ApiService {
|
|
|
* @return
|
|
|
*/
|
|
|
@GET("api/order/myList")
|
|
|
- fun myList(@Query("order_state") order_state: String?, @Query("p") p: Int): Observable<Response<List<InfoListBean>>>
|
|
|
+ suspend fun myList(@Query("order_state") order_state: String?, @Query("p") p: Int): Resp<List<InfoListBean>>
|
|
|
|
|
|
|
|
|
/**
|
|
@@ -434,7 +421,7 @@ interface ApiService {
|
|
|
*/
|
|
|
@FormUrlEncoded
|
|
|
@POST("api/order/setStatus")
|
|
|
- fun setStatus( @FieldMap params: HashMap<String, String>): Observable<Response<Any>>
|
|
|
+ fun setStatus(@FieldMap params: HashMap<String, String>): Observable<Resp<Any>>
|
|
|
|
|
|
|
|
|
/**
|
|
@@ -442,7 +429,7 @@ interface ApiService {
|
|
|
* @return
|
|
|
*/
|
|
|
@GET("api/wxocr/cv_idcard")
|
|
|
- fun cvIdcard(@Query("img") img: String?): Observable<Response<Idcard>>
|
|
|
+ fun cvIdcard(@Query("img") img: String?): Observable<Resp<Idcard>>
|
|
|
|
|
|
|
|
|
/**
|
|
@@ -450,7 +437,7 @@ interface ApiService {
|
|
|
* @return
|
|
|
*/
|
|
|
@GET("api/wxocr/cv_businessLicense")
|
|
|
- fun cvBusinessLicense(@Query("img") img: String?): Observable<Response<Business>>
|
|
|
+ fun cvBusinessLicense(@Query("img") img: String?): Observable<Resp<Business>>
|
|
|
|
|
|
|
|
|
/**
|
|
@@ -458,7 +445,7 @@ interface ApiService {
|
|
|
* @return
|
|
|
*/
|
|
|
@GET("api/wxocr/cv_bankCard")
|
|
|
- fun cvBankCard(@Query("img") img: String?): Observable<Response<BankCard>>
|
|
|
+ fun cvBankCard(@Query("img") img: String?): Observable<Resp<BankCard>>
|
|
|
|
|
|
|
|
|
/**
|
|
@@ -466,14 +453,14 @@ interface ApiService {
|
|
|
* @return
|
|
|
*/
|
|
|
@GET("api/wxocr/cv_vehicle")
|
|
|
- fun cvVehicle(@Query("img") img: String?): Observable<Response<CvVehicle>>
|
|
|
+ fun cvVehicle(@Query("img") img: String?): Observable<Resp<CvVehicle>>
|
|
|
|
|
|
/**
|
|
|
* 识别行驶证-OCR
|
|
|
* @return
|
|
|
*/
|
|
|
@GET("api/wxocr/cv_driving")
|
|
|
- fun cvDriving(@Query("img") img: String?): Observable<Response<CvDriving>>
|
|
|
+ fun cvDriving(@Query("img") img: String?): Observable<Resp<CvDriving>>
|
|
|
|
|
|
|
|
|
/**
|
|
@@ -481,7 +468,7 @@ interface ApiService {
|
|
|
* @return
|
|
|
*/
|
|
|
@GET("api/amount/amountCount")
|
|
|
- fun amountCount(): Observable<Response<AmountCount>>
|
|
|
+ fun amountCount(): Observable<Resp<AmountCount>>
|
|
|
|
|
|
|
|
|
/**
|
|
@@ -489,9 +476,7 @@ interface ApiService {
|
|
|
* @return
|
|
|
*/
|
|
|
@GET("api/amount/amountList")
|
|
|
- fun amountList(@Query("type") type: String,@Query("status") status: String, @Query("p") p: Int): Observable<Response<List<AmountList>>>
|
|
|
-
|
|
|
-
|
|
|
+ suspend fun amountList(@Query("type") type: String, @Query("status") status: String, @Query("p") p: Int): Resp<List<AmountList>>
|
|
|
|
|
|
/**
|
|
|
* 资金提现-资金
|
|
@@ -500,17 +485,16 @@ interface ApiService {
|
|
|
@POST("api/amount/withdraw")
|
|
|
@FormUrlEncoded
|
|
|
fun withdraw(@Field("money") money: String?, @Field("name") name: String?,
|
|
|
- @Field("bank") bank: String?, @Field("kbank") kbank: String?,
|
|
|
+ @Field("bank") bank: String?, @Field("kbank") kbank: String?,
|
|
|
@Field("number") number: String?
|
|
|
- ): Observable<Response<Any>>
|
|
|
+ ): Observable<Resp<Any>>
|
|
|
|
|
|
/**
|
|
|
*明细列表统计-资金
|
|
|
* @return
|
|
|
*/
|
|
|
@GET("api/amount/amountTotal")
|
|
|
- fun amountTotal(@Query("type") type: String,@Query("status") status: String, @Query("p") p: Int): Observable<Response<AmountCount>>
|
|
|
-
|
|
|
+ fun amountTotal(@Query("type") type: String, @Query("status") status: String, @Query("p") p: Int): Observable<Resp<AmountCount>>
|
|
|
|
|
|
|
|
|
/**
|
|
@@ -518,7 +502,7 @@ interface ApiService {
|
|
|
* @return
|
|
|
*/
|
|
|
@GET("api/amount/getCard")
|
|
|
- fun getCard(): Observable<Response<Card>>
|
|
|
+ fun getCard(): Observable<Resp<Card>>
|
|
|
|
|
|
|
|
|
/**
|
|
@@ -529,7 +513,7 @@ interface ApiService {
|
|
|
@FormUrlEncoded
|
|
|
fun amountAdd(@Field("money") money: String?,
|
|
|
@Field("pic") pic: String?
|
|
|
- ): Observable<Response<Any>>
|
|
|
+ ): Observable<Resp<Any>>
|
|
|
|
|
|
|
|
|
/**
|
|
@@ -537,9 +521,7 @@ interface ApiService {
|
|
|
* @return
|
|
|
*/
|
|
|
@GET("api/info/carList")
|
|
|
- fun carList(@Query("info_id") info_id: String?, @Query("p") p: Int): Observable<Response<List<DriverBean>>>
|
|
|
-
|
|
|
-
|
|
|
+ suspend fun carList(@Query("info_id") info_id: String?, @Query("p") p: Int): Resp<List<DriverBean>>
|
|
|
|
|
|
|
|
|
/**
|
|
@@ -548,7 +530,7 @@ interface ApiService {
|
|
|
*/
|
|
|
@POST("api/info/carPay")
|
|
|
@FormUrlEncoded
|
|
|
- fun carPay(@Field("money") money: String?,@Field("order_id") order_id: String?, @Field("pay_pwd") pay_pwd: String?): Observable<Response<Any>>
|
|
|
+ fun carPay(@Field("money") money: String?,@Field("order_id") order_id: String?, @Field("pay_pwd") pay_pwd: String?): Observable<Resp<Any>>
|
|
|
|
|
|
|
|
|
|
|
@@ -560,7 +542,7 @@ interface ApiService {
|
|
|
@FormUrlEncoded
|
|
|
fun eva(@Field("order_id") order_id: String?, @Field("score") score: String?,
|
|
|
@Field("content") content: String?
|
|
|
- ): Observable<Response<Any>>
|
|
|
+ ): Observable<Resp<Any>>
|
|
|
|
|
|
|
|
|
|
|
@@ -569,7 +551,7 @@ interface ApiService {
|
|
|
* @return
|
|
|
*/
|
|
|
@GET("api/info/orderEva")
|
|
|
- fun orderEva(@Query("order_id") order_id: String?,@Query("p") p: Int): Observable<Response<List<OrderEva>>>
|
|
|
+ suspend fun orderEva(@Query("order_id") order_id: String?,@Query("p") p: Int): Resp<List<OrderEva>>
|
|
|
|
|
|
|
|
|
|