|
@@ -13,49 +13,44 @@ import java.util.*
|
|
|
*/
|
|
|
interface ApiService {
|
|
|
|
|
|
+ //首页banner
|
|
|
+ @GET("Index/getBanner")
|
|
|
+ suspend fun getBanner(): Resp<List<HomeBanner>>
|
|
|
+ //首页精选 列表
|
|
|
|
|
|
- @POST("task/save")
|
|
|
- @FormUrlEncoded
|
|
|
- fun addTodo(@Field("title") title: String?): Observable<Resp<Any>>
|
|
|
-
|
|
|
- @POST("alipay/order_info")
|
|
|
- @FormUrlEncoded
|
|
|
- fun alipayPreOrder(@Field("vip_level") vip_level: Int): Observable<Resp<String>>
|
|
|
-
|
|
|
-
|
|
|
- @POST("bac")
|
|
|
- @FormUrlEncoded
|
|
|
- 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<Resp<String>>
|
|
|
+ @GET("Index/indexCollectionList")
|
|
|
+ suspend fun getCollectionList(): Resp<List<CollectionList>>
|
|
|
|
|
|
- @POST("task/checked")
|
|
|
- @FormUrlEncoded
|
|
|
- fun taskChecked(@Field("id") id: Int): Observable<Resp<Any>>
|
|
|
+ /**
|
|
|
+ * 登录
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @POST("Login/passwordLogin")
|
|
|
+ @FormUrlEncoded suspend fun getLogin(
|
|
|
+ @Field("phone") phone: String?,
|
|
|
+ @Field("password") password: String?
|
|
|
+ ): Resp<Any>
|
|
|
|
|
|
|
|
|
- @GET("user/logout")
|
|
|
- fun logout(): Observable<Resp<Any>>
|
|
|
+//
|
|
|
|
|
|
- @GET("order/submmit")
|
|
|
- fun order_submmit(): Observable<Resp<String>>
|
|
|
+ /**
|
|
|
+ * 地址列表
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @GET("api/address/addressList")
|
|
|
+ suspend fun addressList(
|
|
|
+ @Query("type") type: String?,
|
|
|
+ @Query("k") k: String, @Query("p") p: Int
|
|
|
+ ): Resp<List<AddressBean>>
|
|
|
|
|
|
- @POST("order/active")
|
|
|
- @FormUrlEncoded
|
|
|
- fun active(@Field("code") code: String?): Observable<Resp<Any>>
|
|
|
+ /**
|
|
|
+ * 用户信息
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @GET("api/user/getuserinfo")
|
|
|
+ fun getUser(): Observable<Resp<User>>
|
|
|
|
|
|
- @GET("func/getFuncIcon")
|
|
|
- fun getFuncIcon(@Query("host") host: String?): Observable<Resp<String>>
|
|
|
|
|
|
// ------------
|
|
|
|
|
@@ -66,26 +61,6 @@ interface ApiService {
|
|
|
|
|
|
|
|
|
/**
|
|
|
- * 获取验证码
|
|
|
- *
|
|
|
- * @return
|
|
|
- */
|
|
|
- @POST("api/index/loginSms")
|
|
|
- @FormUrlEncoded
|
|
|
- fun getRegisterCode(@Field("mobile") mobile: String?): Observable<Resp<SendSmsBean>>
|
|
|
-
|
|
|
-
|
|
|
- /**
|
|
|
- * 获取验证码-注册
|
|
|
- *
|
|
|
- * @return
|
|
|
- */
|
|
|
- @POST("api/index/sendSms")
|
|
|
- @FormUrlEncoded
|
|
|
- fun getRegisterSms(@Field("mobile") mobile: String?): Observable<Resp<SendSmsBean>>
|
|
|
-
|
|
|
-
|
|
|
- /**
|
|
|
* 极光一键登录
|
|
|
*
|
|
|
* @return
|
|
@@ -103,12 +78,12 @@ 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
|
|
|
+ @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<Resp<LoginBean>>
|
|
|
|
|
|
|
|
@@ -120,8 +95,8 @@ interface ApiService {
|
|
|
@POST("api/index/pwdLogin")
|
|
|
@FormUrlEncoded
|
|
|
fun login(
|
|
|
- @Field("mobile") mobile: String?,
|
|
|
- @Field("pwd") pwd: String?
|
|
|
+ @Field("mobile") mobile: String?,
|
|
|
+ @Field("pwd") pwd: String?
|
|
|
): Observable<Resp<LoginBean>>
|
|
|
|
|
|
/**
|
|
@@ -132,8 +107,8 @@ interface ApiService {
|
|
|
@POST("api/index/smslogin")
|
|
|
@FormUrlEncoded
|
|
|
fun smsLogin(
|
|
|
- @Field("mobile") mobile: String?,
|
|
|
- @Field("code") code: String?
|
|
|
+ @Field("mobile") mobile: String?,
|
|
|
+ @Field("code") code: String?
|
|
|
): Observable<Resp<LoginBean>>
|
|
|
|
|
|
/**
|
|
@@ -154,27 +129,10 @@ interface ApiService {
|
|
|
@POST("api/index/siml_register")
|
|
|
@FormUrlEncoded
|
|
|
fun simlRegister(
|
|
|
- @Field("mobile") mobile: String?,
|
|
|
- @Field("type") type: String?
|
|
|
+ @Field("mobile") mobile: String?,
|
|
|
+ @Field("type") type: String?
|
|
|
): Observable<Resp<LoginBean>>
|
|
|
|
|
|
- /**
|
|
|
- * 用户信息
|
|
|
- * @return
|
|
|
- */
|
|
|
- @GET("api/user/getuserinfo")
|
|
|
- fun getUser(): Observable<Resp<User>>
|
|
|
-
|
|
|
- /**
|
|
|
- * 地址列表
|
|
|
- * @return
|
|
|
- */
|
|
|
- @GET("api/address/addressList")
|
|
|
- suspend fun addressList(
|
|
|
- @Query("type") type: String?,
|
|
|
- @Query("k") k: String, @Query("p") p: Int
|
|
|
- ): Resp<List<AddressBean>>
|
|
|
-
|
|
|
|
|
|
/**
|
|
|
* 获取区域
|
|
@@ -182,8 +140,8 @@ interface ApiService {
|
|
|
*/
|
|
|
@GET("api/common/getArea")
|
|
|
suspend fun getArea(
|
|
|
- @Query("code") code: String?,
|
|
|
- @Query("page") page: Int
|
|
|
+ @Query("code") code: String?,
|
|
|
+ @Query("page") page: Int
|
|
|
): Resp<List<AreaBean>>
|
|
|
|
|
|
|
|
@@ -195,12 +153,12 @@ interface ApiService {
|
|
|
@POST("api/address/addressEdit")
|
|
|
@FormUrlEncoded
|
|
|
fun addressEdit(
|
|
|
- @Field("addr_id") addr_id: String?, @Field("lat") lat: String?,
|
|
|
- @Field("lng") lng: String?, @Field("province") province: String?,
|
|
|
- @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?
|
|
|
+ @Field("addr_id") addr_id: String?, @Field("lat") lat: String?,
|
|
|
+ @Field("lng") lng: String?, @Field("province") province: String?,
|
|
|
+ @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<Resp<Any>>
|
|
|
|
|
|
|
|
@@ -242,17 +200,17 @@ interface ApiService {
|
|
|
@POST("api/info/infoEdit")
|
|
|
@FormUrlEncoded
|
|
|
fun infoEdit(
|
|
|
- @Field("info_id") info_id: String?,
|
|
|
- @Field("type_id") type_id: String?,
|
|
|
- @Field("total") total: String?,
|
|
|
- @Field("driver") driver: String?,
|
|
|
- @Field("nums") nums: String?,
|
|
|
- @Field("is_public") is_public: String?,
|
|
|
- @Field("is_insurance") is_insurance: String?,
|
|
|
- @Field("type") type: String?,
|
|
|
- @Field("data") data: String?,
|
|
|
- @Field("send") send: String?,
|
|
|
- @Field("receive") receive: String?
|
|
|
+ @Field("info_id") info_id: String?,
|
|
|
+ @Field("type_id") type_id: String?,
|
|
|
+ @Field("total") total: String?,
|
|
|
+ @Field("driver") driver: String?,
|
|
|
+ @Field("nums") nums: String?,
|
|
|
+ @Field("is_public") is_public: String?,
|
|
|
+ @Field("is_insurance") is_insurance: String?,
|
|
|
+ @Field("type") type: String?,
|
|
|
+ @Field("data") data: String?,
|
|
|
+ @Field("send") send: String?,
|
|
|
+ @Field("receive") receive: String?
|
|
|
): Observable<Resp<InfoEditBean>>
|
|
|
|
|
|
|
|
@@ -263,8 +221,8 @@ interface ApiService {
|
|
|
@POST("api/info/infoPay")
|
|
|
@FormUrlEncoded
|
|
|
fun infoGetPay(
|
|
|
- @Field("info_id") info_id: String?,
|
|
|
- @Field("pay_pwd") pay_pwd: String?
|
|
|
+ @Field("info_id") info_id: String?,
|
|
|
+ @Field("pay_pwd") pay_pwd: String?
|
|
|
): Observable<Resp<Any>>
|
|
|
|
|
|
|
|
@@ -281,26 +239,26 @@ interface ApiService {
|
|
|
*/
|
|
|
@GET("api/info/infoList")
|
|
|
suspend fun infoList(
|
|
|
- @Query("k") k: String?,
|
|
|
- @Query("sp") sp: String?,
|
|
|
- @Query("sc") sc: String?,
|
|
|
- @Query("sa") sa: String?,
|
|
|
- @Query("rp") rp: String?,
|
|
|
- @Query("rc") rc: String?,
|
|
|
- @Query("ra") ra: String?,
|
|
|
- @Query("type_id") type_id: String?,
|
|
|
- @Query("s_time1") s_time1: String?,
|
|
|
- @Query("s_time2") s_time2: String?,
|
|
|
- @Query("r_time1") r_time1: String?,
|
|
|
- @Query("r_time2") r_time2: String?,
|
|
|
- @Query("price1") price1: String?,
|
|
|
- @Query("price2") price2: String?,
|
|
|
- @Query("sort") sort: String?,
|
|
|
- @Query("asc") asc: String?,
|
|
|
-
|
|
|
- @Query("info_state") info_state: String?,
|
|
|
- @Query("goods_type") goods_type: String?,
|
|
|
- @Query("p") p: Int
|
|
|
+ @Query("k") k: String?,
|
|
|
+ @Query("sp") sp: String?,
|
|
|
+ @Query("sc") sc: String?,
|
|
|
+ @Query("sa") sa: String?,
|
|
|
+ @Query("rp") rp: String?,
|
|
|
+ @Query("rc") rc: String?,
|
|
|
+ @Query("ra") ra: String?,
|
|
|
+ @Query("type_id") type_id: String?,
|
|
|
+ @Query("s_time1") s_time1: String?,
|
|
|
+ @Query("s_time2") s_time2: String?,
|
|
|
+ @Query("r_time1") r_time1: String?,
|
|
|
+ @Query("r_time2") r_time2: String?,
|
|
|
+ @Query("price1") price1: String?,
|
|
|
+ @Query("price2") price2: String?,
|
|
|
+ @Query("sort") sort: String?,
|
|
|
+ @Query("asc") asc: String?,
|
|
|
+
|
|
|
+ @Query("info_state") info_state: String?,
|
|
|
+ @Query("goods_type") goods_type: String?,
|
|
|
+ @Query("p") p: Int
|
|
|
): Resp<List<InfoListBean>>
|
|
|
|
|
|
|
|
@@ -335,8 +293,8 @@ interface ApiService {
|
|
|
@POST("api/user/setInfo")
|
|
|
@FormUrlEncoded
|
|
|
fun setInfo(
|
|
|
- @Field("idcard_z") idcard_z: String?, @Field("idcard_f") idcard_f: String?,
|
|
|
- @Field("name") name: String?, @Field("idcard") idcard: String?
|
|
|
+ @Field("idcard_z") idcard_z: String?, @Field("idcard_f") idcard_f: String?,
|
|
|
+ @Field("name") name: String?, @Field("idcard") idcard: String?
|
|
|
): Observable<Resp<Any>>
|
|
|
|
|
|
/**
|
|
@@ -346,9 +304,9 @@ interface ApiService {
|
|
|
@POST("api/user/setCard")
|
|
|
@FormUrlEncoded
|
|
|
fun setCardBank(
|
|
|
- @Field("name") name: String?, @Field("number") number: String?,
|
|
|
- @Field("bank") bank: String?, @Field("kbank") kbank: String?,
|
|
|
- @Field("image") image: String?
|
|
|
+ @Field("name") name: String?, @Field("number") number: String?,
|
|
|
+ @Field("bank") bank: String?, @Field("kbank") kbank: String?,
|
|
|
+ @Field("image") image: String?
|
|
|
): Observable<Resp<Any>>
|
|
|
|
|
|
|
|
@@ -367,8 +325,8 @@ interface ApiService {
|
|
|
@POST("api/user/setCompany")
|
|
|
@FormUrlEncoded
|
|
|
fun setCompany(
|
|
|
- @Field("license_img") license_img: String?, @Field("license_sn") license_sn: String?,
|
|
|
- @Field("company_name") company_name: String?, @Field("company_addr") company_addr: String?
|
|
|
+ @Field("license_img") license_img: String?, @Field("license_sn") license_sn: String?,
|
|
|
+ @Field("company_name") company_name: String?, @Field("company_addr") company_addr: String?
|
|
|
): Observable<Resp<Any>>
|
|
|
|
|
|
|
|
@@ -379,22 +337,22 @@ interface ApiService {
|
|
|
@POST("api/user/setCar")
|
|
|
@FormUrlEncoded
|
|
|
fun setCar(
|
|
|
- @Field("driver_img") driver_img: String?, @Field("driving_z") driving_z: String?,
|
|
|
- @Field("driving_f") driving_f: String?, @Field("tonnage") tonnage: String?,
|
|
|
- @Field("license_dl") license_dl: String?, @Field("license_cy") license_cy: String?,
|
|
|
- @Field("number") number: String?,
|
|
|
- @Field("color") color: String?, @Field("car_type") car_type: String?,
|
|
|
- @Field("car_load") car_load: String?, @Field("car_brand") car_brand: String?,
|
|
|
- @Field("driving_sn") driving_sn: String?, @Field("car_weight") car_weight: String?,
|
|
|
- @Field("car_size_l") car_size_l: String?, @Field("car_size_w") car_size_w: String?,
|
|
|
- @Field("car_size_h") car_size_h: String?,
|
|
|
- @Field("car_cate") car_cate: String?,
|
|
|
- @Field("car_energy") car_energy: String?, @Field("car_own") car_own: String?,
|
|
|
- @Field("car_use") car_use: String?, @Field("car_sn") car_sn: String?,
|
|
|
- @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?,
|
|
|
- @Field("car_class") car_class: String?
|
|
|
+ @Field("driver_img") driver_img: String?, @Field("driving_z") driving_z: String?,
|
|
|
+ @Field("driving_f") driving_f: String?, @Field("tonnage") tonnage: String?,
|
|
|
+ @Field("license_dl") license_dl: String?, @Field("license_cy") license_cy: String?,
|
|
|
+ @Field("number") number: String?,
|
|
|
+ @Field("color") color: String?, @Field("car_type") car_type: String?,
|
|
|
+ @Field("car_load") car_load: String?, @Field("car_brand") car_brand: String?,
|
|
|
+ @Field("driving_sn") driving_sn: String?, @Field("car_weight") car_weight: String?,
|
|
|
+ @Field("car_size_l") car_size_l: String?, @Field("car_size_w") car_size_w: String?,
|
|
|
+ @Field("car_size_h") car_size_h: String?,
|
|
|
+ @Field("car_cate") car_cate: String?,
|
|
|
+ @Field("car_energy") car_energy: String?, @Field("car_own") car_own: String?,
|
|
|
+ @Field("car_use") car_use: String?, @Field("car_sn") car_sn: String?,
|
|
|
+ @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?,
|
|
|
+ @Field("car_class") car_class: String?
|
|
|
|
|
|
): Observable<Resp<Any>>
|
|
|
|
|
@@ -419,10 +377,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("tel") tel: String?, @Field("bank") bank: String?,
|
|
|
- @Field("number") number: String?
|
|
|
+ @Field("invoice_id") invoice_id: String?, @Field("company") company: String?,
|
|
|
+ @Field("sn") sn: String?, @Field("addr") addr: String?,
|
|
|
+ @Field("tel") tel: String?, @Field("bank") bank: String?,
|
|
|
+ @Field("number") number: String?
|
|
|
): Observable<Resp<Any>>
|
|
|
|
|
|
|
|
@@ -448,24 +406,24 @@ interface ApiService {
|
|
|
*/
|
|
|
@GET("api/order/infoList")
|
|
|
suspend fun infoListDriver(
|
|
|
- @Query("k") k: String?,
|
|
|
- @Query("sp") sp: String?,
|
|
|
- @Query("sc") sc: String?,
|
|
|
- @Query("sa") sa: String?,
|
|
|
- @Query("rp") rp: String?,
|
|
|
- @Query("rc") rc: String?,
|
|
|
- @Query("ra") ra: String?,
|
|
|
- @Query("type_id") type_id: String?,
|
|
|
- @Query("s_time1") s_time1: String?,
|
|
|
- @Query("s_time2") s_time2: String?,
|
|
|
- @Query("r_time1") r_time1: String?,
|
|
|
- @Query("r_time2") r_time2: String?,
|
|
|
- @Query("price1") price1: String?,
|
|
|
- @Query("price2") price2: String?,
|
|
|
- @Query("sort") sort: String?,
|
|
|
- @Query("asc") asc: String?,
|
|
|
- @Query("goods_type") goods_type: String?,
|
|
|
- @Query("p") p: Int
|
|
|
+ @Query("k") k: String?,
|
|
|
+ @Query("sp") sp: String?,
|
|
|
+ @Query("sc") sc: String?,
|
|
|
+ @Query("sa") sa: String?,
|
|
|
+ @Query("rp") rp: String?,
|
|
|
+ @Query("rc") rc: String?,
|
|
|
+ @Query("ra") ra: String?,
|
|
|
+ @Query("type_id") type_id: String?,
|
|
|
+ @Query("s_time1") s_time1: String?,
|
|
|
+ @Query("s_time2") s_time2: String?,
|
|
|
+ @Query("r_time1") r_time1: String?,
|
|
|
+ @Query("r_time2") r_time2: String?,
|
|
|
+ @Query("price1") price1: String?,
|
|
|
+ @Query("price2") price2: String?,
|
|
|
+ @Query("sort") sort: String?,
|
|
|
+ @Query("asc") asc: String?,
|
|
|
+ @Query("goods_type") goods_type: String?,
|
|
|
+ @Query("p") p: Int
|
|
|
): Resp<List<InfoListBean>>
|
|
|
|
|
|
|
|
@@ -499,26 +457,26 @@ interface ApiService {
|
|
|
*/
|
|
|
@GET("api/order/myList")
|
|
|
suspend fun myList(
|
|
|
- @Query("k") k: String?,
|
|
|
- @Query("sp") sp: String?,
|
|
|
- @Query("sc") sc: String?,
|
|
|
- @Query("sa") sa: String?,
|
|
|
- @Query("rp") rp: String?,
|
|
|
- @Query("rc") rc: String?,
|
|
|
- @Query("ra") ra: String?,
|
|
|
- @Query("type_id") type_id: String?,
|
|
|
- @Query("s_time1") s_time1: String?,
|
|
|
- @Query("s_time2") s_time2: String?,
|
|
|
- @Query("r_time1") r_time1: String?,
|
|
|
- @Query("r_time2") r_time2: String?,
|
|
|
- @Query("price1") price1: String?,
|
|
|
- @Query("price2") price2: String?,
|
|
|
- @Query("sort") sort: String?,
|
|
|
- @Query("asc") asc: String?,
|
|
|
-
|
|
|
- @Query("order_state") order_state: String?,
|
|
|
- @Query("goods_type") goods_type: String?,
|
|
|
- @Query("p") p: Int
|
|
|
+ @Query("k") k: String?,
|
|
|
+ @Query("sp") sp: String?,
|
|
|
+ @Query("sc") sc: String?,
|
|
|
+ @Query("sa") sa: String?,
|
|
|
+ @Query("rp") rp: String?,
|
|
|
+ @Query("rc") rc: String?,
|
|
|
+ @Query("ra") ra: String?,
|
|
|
+ @Query("type_id") type_id: String?,
|
|
|
+ @Query("s_time1") s_time1: String?,
|
|
|
+ @Query("s_time2") s_time2: String?,
|
|
|
+ @Query("r_time1") r_time1: String?,
|
|
|
+ @Query("r_time2") r_time2: String?,
|
|
|
+ @Query("price1") price1: String?,
|
|
|
+ @Query("price2") price2: String?,
|
|
|
+ @Query("sort") sort: String?,
|
|
|
+ @Query("asc") asc: String?,
|
|
|
+
|
|
|
+ @Query("order_state") order_state: String?,
|
|
|
+ @Query("goods_type") goods_type: String?,
|
|
|
+ @Query("p") p: Int
|
|
|
): Resp<List<InfoListBean>>
|
|
|
|
|
|
|
|
@@ -584,11 +542,11 @@ interface ApiService {
|
|
|
*/
|
|
|
@GET("api/amount/amountList")
|
|
|
suspend fun amountList(
|
|
|
- @Query("status") status: String,
|
|
|
- @Query("type") type: String,
|
|
|
- @Query("time_start") time_start: String,
|
|
|
- @Query("time_end") time_end: String,
|
|
|
- @Query("p") p: Int
|
|
|
+ @Query("status") status: String,
|
|
|
+ @Query("type") type: String,
|
|
|
+ @Query("time_start") time_start: String,
|
|
|
+ @Query("time_end") time_end: String,
|
|
|
+ @Query("p") p: Int
|
|
|
): Resp<List<AmountList>>
|
|
|
|
|
|
/**
|
|
@@ -598,9 +556,9 @@ 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("number") number: String?
|
|
|
+ @Field("money") money: String?, @Field("name") name: String?,
|
|
|
+ @Field("bank") bank: String?, @Field("kbank") kbank: String?,
|
|
|
+ @Field("number") number: String?
|
|
|
): Observable<Resp<Any>>
|
|
|
|
|
|
/**
|
|
@@ -609,11 +567,11 @@ interface ApiService {
|
|
|
*/
|
|
|
@GET("api/amount/amountTotal")
|
|
|
fun amountTotal(
|
|
|
- @Query("status") status: String,
|
|
|
- @Query("type") type: String,
|
|
|
- @Query("time_start") time_start: String,
|
|
|
- @Query("time_end") time_end: String,
|
|
|
- @Query("p") p: Int
|
|
|
+ @Query("status") status: String,
|
|
|
+ @Query("type") type: String,
|
|
|
+ @Query("time_start") time_start: String,
|
|
|
+ @Query("time_end") time_end: String,
|
|
|
+ @Query("p") p: Int
|
|
|
): Observable<Resp<AmountCount>>
|
|
|
|
|
|
|
|
@@ -632,8 +590,8 @@ interface ApiService {
|
|
|
@POST("api/amount/amountAdd")
|
|
|
@FormUrlEncoded
|
|
|
fun amountAdd(
|
|
|
- @Field("money") money: String?,
|
|
|
- @Field("pic") pic: String?
|
|
|
+ @Field("money") money: String?,
|
|
|
+ @Field("pic") pic: String?
|
|
|
): Observable<Resp<Any>>
|
|
|
|
|
|
|
|
@@ -643,8 +601,8 @@ interface ApiService {
|
|
|
*/
|
|
|
@GET("api/info/carList")
|
|
|
suspend fun carList(
|
|
|
- @Query("info_id") info_id: String?,
|
|
|
- @Query("p") p: Int
|
|
|
+ @Query("info_id") info_id: String?,
|
|
|
+ @Query("p") p: Int
|
|
|
): Resp<List<DriverBean>>
|
|
|
|
|
|
|
|
@@ -655,9 +613,9 @@ 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?
|
|
|
+ @Field("money") money: String?,
|
|
|
+ @Field("order_id") order_id: String?,
|
|
|
+ @Field("pay_pwd") pay_pwd: String?
|
|
|
): Observable<Resp<Any>>
|
|
|
|
|
|
|
|
@@ -668,8 +626,8 @@ interface ApiService {
|
|
|
@POST("api/info/eva")
|
|
|
@FormUrlEncoded
|
|
|
fun eva(
|
|
|
- @Field("order_id") order_id: String?, @Field("score") score: String?,
|
|
|
- @Field("content") content: String?
|
|
|
+ @Field("order_id") order_id: String?, @Field("score") score: String?,
|
|
|
+ @Field("content") content: String?
|
|
|
): Observable<Resp<Any>>
|
|
|
|
|
|
|
|
@@ -679,8 +637,8 @@ interface ApiService {
|
|
|
*/
|
|
|
@GET("api/info/orderEva")
|
|
|
suspend fun orderEva(
|
|
|
- @Query("order_id") order_id: String?,
|
|
|
- @Query("p") p: Int
|
|
|
+ @Query("order_id") order_id: String?,
|
|
|
+ @Query("p") p: Int
|
|
|
): Resp<List<OrderEva>>
|
|
|
|
|
|
|
|
@@ -731,9 +689,9 @@ interface ApiService {
|
|
|
@POST("api/guestbook/guestEdit")
|
|
|
@FormUrlEncoded
|
|
|
suspend fun guestEdit(
|
|
|
- @Field("fk_id") fk_id: String?, @Field("title") title: String?,
|
|
|
- @Field("content") content: String?, @Field("mobile") mobile: String?,
|
|
|
- @Field("image") image: String?, @Field("type") type: String?
|
|
|
+ @Field("fk_id") fk_id: String?, @Field("title") title: String?,
|
|
|
+ @Field("content") content: String?, @Field("mobile") mobile: String?,
|
|
|
+ @Field("image") image: String?, @Field("type") type: String?
|
|
|
): Resp<Any>
|
|
|
|
|
|
|
|
@@ -755,8 +713,8 @@ interface ApiService {
|
|
|
@POST("api/user/setProfile")
|
|
|
@FormUrlEncoded
|
|
|
suspend fun setProfile(
|
|
|
- @Field("avatar") avatar: String?,
|
|
|
- @Field("name") name: String?
|
|
|
+ @Field("avatar") avatar: String?,
|
|
|
+ @Field("name") name: String?
|
|
|
): Resp<Any>
|
|
|
|
|
|
|
|
@@ -766,9 +724,9 @@ interface ApiService {
|
|
|
*/
|
|
|
@GET("api/invoice/infoList")
|
|
|
suspend fun infoList(
|
|
|
- @Query("start_time") start_time: String,
|
|
|
- @Query("end_time") end_time: String,
|
|
|
- @Query("p") p: Int
|
|
|
+ @Query("start_time") start_time: String,
|
|
|
+ @Query("end_time") end_time: String,
|
|
|
+ @Query("p") p: Int
|
|
|
): Resp<List<InvoiceList>>
|
|
|
|
|
|
|
|
@@ -806,7 +764,7 @@ interface ApiService {
|
|
|
@POST("api/invoice/invoiceAdd")
|
|
|
@FormUrlEncoded
|
|
|
suspend fun invoiceAdd(
|
|
|
- @Field("ids") ids: String?, @Field("money") money: String?
|
|
|
+ @Field("ids") ids: String?, @Field("money") money: String?
|
|
|
): Resp<Any>
|
|
|
|
|
|
|
|
@@ -832,8 +790,8 @@ interface ApiService {
|
|
|
*/
|
|
|
@GET("api/amount/amountLine")
|
|
|
suspend fun amountLine(
|
|
|
- @Query("start_time") start_time: String?,
|
|
|
- @Query("end_time") end_time: String?, @Query("k") k: String?
|
|
|
+ @Query("start_time") start_time: String?,
|
|
|
+ @Query("end_time") end_time: String?, @Query("k") k: String?
|
|
|
): Resp<IconData>
|
|
|
|
|
|
|
|
@@ -895,8 +853,8 @@ interface ApiService {
|
|
|
@FormUrlEncoded
|
|
|
@POST("api/baoxian/premiumTrial")
|
|
|
suspend fun premiumTrial(
|
|
|
- @Field("amount") amount: String?,
|
|
|
- @Field("schemeCode") schemeCode: String?
|
|
|
+ @Field("amount") amount: String?,
|
|
|
+ @Field("schemeCode") schemeCode: String?
|
|
|
): Resp<PremiumTrial>
|
|
|
|
|
|
/**
|
|
@@ -923,24 +881,24 @@ interface ApiService {
|
|
|
@FormUrlEncoded
|
|
|
@POST("api/baoxian/insure")
|
|
|
suspend fun insure(
|
|
|
- @Field("order_id") order_id: String,
|
|
|
- @Field("amount") amount: String,
|
|
|
- @Field("payMoney") payMoney: String,
|
|
|
- @Field("schemeCode") schemeCode: String,
|
|
|
- @Field("start_areaName") start_areaName: String,
|
|
|
- @Field("start_areaCode") start_areaCode: String,
|
|
|
- @Field("finish_areaName") finish_areaName: String,
|
|
|
- @Field("finish_areaCode") finish_areaCode: String,
|
|
|
- @Field("transfer_areaName[]") transfer_areaName: List<String>,
|
|
|
- @Field("transfer_areaCode[]") transfer_areaCode: List<String>,
|
|
|
- @Field("goodsName") goodsName: String,
|
|
|
- @Field("name") name: String,
|
|
|
- @Field("personnelType") personnelType: String,
|
|
|
- @Field("certificateType") certificateType: String,
|
|
|
- @Field("certificateNo") certificateNo: String,
|
|
|
- @Field("mobile") mobile: String,
|
|
|
- @Field("licensePlateNo") licensePlateNo: String,
|
|
|
- @Field("licensePlateType") licensePlateType: String,
|
|
|
+ @Field("order_id") order_id: String,
|
|
|
+ @Field("amount") amount: String,
|
|
|
+ @Field("payMoney") payMoney: String,
|
|
|
+ @Field("schemeCode") schemeCode: String,
|
|
|
+ @Field("start_areaName") start_areaName: String,
|
|
|
+ @Field("start_areaCode") start_areaCode: String,
|
|
|
+ @Field("finish_areaName") finish_areaName: String,
|
|
|
+ @Field("finish_areaCode") finish_areaCode: String,
|
|
|
+ @Field("transfer_areaName[]") transfer_areaName: List<String>,
|
|
|
+ @Field("transfer_areaCode[]") transfer_areaCode: List<String>,
|
|
|
+ @Field("goodsName") goodsName: String,
|
|
|
+ @Field("name") name: String,
|
|
|
+ @Field("personnelType") personnelType: String,
|
|
|
+ @Field("certificateType") certificateType: String,
|
|
|
+ @Field("certificateNo") certificateNo: String,
|
|
|
+ @Field("mobile") mobile: String,
|
|
|
+ @Field("licensePlateNo") licensePlateNo: String,
|
|
|
+ @Field("licensePlateType") licensePlateType: String,
|
|
|
): Resp<Any>
|
|
|
|
|
|
|