初始化
This commit is contained in:
@@ -0,0 +1,157 @@
|
||||
package com.arpa.hndahesudintocctmsdriver.request;
|
||||
|
||||
import android.content.Context;
|
||||
import android.os.Handler;
|
||||
import android.util.Log;
|
||||
|
||||
import com.arpa.hndahesudintocctmsdriver.util.map.MapUtil;
|
||||
import com.google.gson.Gson;
|
||||
import com.arpa.hndahesudintocctmsdriver.request.bean.IDInputBean;
|
||||
import com.arpa.hndahesudintocctmsdriver.request.bean.LicenseInputBean;
|
||||
import com.arpa.hndahesudintocctmsdriver.ui.login.LoginActivity;
|
||||
import com.arpa.hndahesudintocctmsdriver.ui.auth.CertificatesActivity;
|
||||
import com.arpa.hndahesudintocctmsdriver.util.sp.SPUtil;
|
||||
import com.arpa.hndahesudintocctmsdriver.util.http.OkDate;
|
||||
import com.arpa.hndahesudintocctmsdriver.util.http.OkHttpUtil;
|
||||
import com.arpa.hndahesudintocctmsdriver.util.http.RequestUtil;
|
||||
|
||||
import java.io.File;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
import okhttp3.Request;
|
||||
|
||||
/**
|
||||
* @author hlh
|
||||
* @version 1.0.0
|
||||
* @date 2021/8/5 15:09
|
||||
* @description:认证信息接口
|
||||
*/
|
||||
public class AuthRequest {
|
||||
|
||||
private String token;
|
||||
private Gson gson = new Gson();
|
||||
|
||||
public String getToken(Context con) {
|
||||
return SPUtil.getSP(con, LoginActivity.USER, LoginActivity.USER_TOKEN);
|
||||
}
|
||||
|
||||
//获取身份证认证信息
|
||||
public void getCard(Context con, Handler hd) {
|
||||
Request re = OkHttpUtil.posts(new OkDate(RequestConstant.getIsauthIdcard(), ""), getToken(con), con);
|
||||
RequestUtil.start(1, CertificatesActivity.ISAUTH, re, con, hd);
|
||||
}
|
||||
|
||||
//获取驾驶证认证信息
|
||||
public void getDriverAuthLicense(Context con, Handler hd) {
|
||||
Request re = OkHttpUtil.posts(new OkDate(RequestConstant.getIsauthDriverauthLicense(), ""), getToken(con), con);
|
||||
RequestUtil.start(1, CertificatesActivity.ISAUTH, re, con, hd);
|
||||
}
|
||||
|
||||
//上传文件
|
||||
public void upload(Context con, Handler hd, File file) {
|
||||
Request re = OkHttpUtil.postFile(new OkDate(RequestConstant.getUPLOAD(), ""), getToken(con), file);
|
||||
RequestUtil.start(12, "upload", re, con, hd);
|
||||
}
|
||||
|
||||
//上传个人信息
|
||||
//身份证认证{{url}}/app/driver/auth/driverAuthIdCard
|
||||
public void driverAuthIdCard(Context con, Handler hd, IDInputBean ib) {
|
||||
Request re = OkHttpUtil.posts(new OkDate(RequestConstant.getDRIVERAUTHIDCARD(), gson.toJson(ib)), getToken(con), con);
|
||||
RequestUtil.start(1, "driverAuthIdCard", re, con, hd);
|
||||
}
|
||||
|
||||
//驾驶证认证
|
||||
public void driverAuthLicense(Context con, Handler hd, LicenseInputBean iib) {
|
||||
Log.e("--认证信息--", gson.toJson(iib));
|
||||
Request re = OkHttpUtil.posts(new OkDate(RequestConstant.getDRIVERAUTHLICENSE(), gson.toJson(iib)), getToken(con), con);
|
||||
RequestUtil.start(1, "driverAuthLicense", re, con, hd);
|
||||
}
|
||||
|
||||
//保存车辆信息-行驶证/app/carDriver/saveVehicleLicense
|
||||
public void saveVehicleLicense(Context con, Handler hd, String data) {
|
||||
Request re = OkHttpUtil.posts(new OkDate(RequestConstant.getSAVEVEHICLELICENSE(), data), getToken(con), con);
|
||||
RequestUtil.start(1, "saveVehicleLicense", re, con, hd);
|
||||
}
|
||||
|
||||
//上传头像
|
||||
public void upHeadImg(Context con, Handler hd, String imgUrl) {
|
||||
String mt = "{\"headportrait\": \"" + imgUrl + "\"}";
|
||||
Request re = OkHttpUtil.posts(new OkDate(RequestConstant.getUploadHead(), mt), getToken(con), con);
|
||||
RequestUtil.start(1, "upHeadImg", re, con, hd);
|
||||
}
|
||||
|
||||
//上传车辆照片
|
||||
public void saveCarImg(Context con, Handler hd, String carId, int imgId, int type) {
|
||||
String mt = "{\n" +
|
||||
"\t\"carId\": " + carId + ",\n" +
|
||||
"\t\"imgId\": " + imgId + ",\n" +
|
||||
"\t\"type\": " + type + "\n" +
|
||||
"}";
|
||||
Request re = OkHttpUtil.posts(new OkDate(RequestConstant.getSAVECARIMG(), mt), getToken(con), con);
|
||||
RequestUtil.start(1, "saveCarImg", re, con, hd);
|
||||
}
|
||||
|
||||
//从业资格证认证/app/driver/auth/driverAuthQualification
|
||||
public void driverAuthQualification(Context con, Handler hd, String id, int imgid, String date) {
|
||||
String mt = "{\n" +
|
||||
"\t\"qualificationCertificate\": \"" + id + "\",\n" +
|
||||
"\t\"qualificationCertificatePhoto\": " + imgid + ",\n" +
|
||||
"\t\"qualificationCertificateValidity\": \"" + date + "\"\n" +
|
||||
"}";
|
||||
Request re = OkHttpUtil.posts(new OkDate(RequestConstant.getDriverAuthQualification(), mt), getToken(con), con);
|
||||
RequestUtil.start(1, "driverAuthQualification", re, con, hd);
|
||||
}
|
||||
|
||||
|
||||
//从业资格证认证/app/driver/auth/driverAuthQualification
|
||||
public void saveCarRegisterNo(Context con, Handler hd, String id, String registerNo) {
|
||||
String mt = "{\n" +
|
||||
"\t\"carId\": \"" + id + "\",\n" +
|
||||
"\t\"registerNo\": " + registerNo + ",\n" +
|
||||
"}";
|
||||
Request re = OkHttpUtil.posts(new OkDate(RequestConstant.getDriverSaveCarRegisterNo(), mt), getToken(con), con);
|
||||
RequestUtil.start(1, "saveCarRegisterNo", re, con, hd);
|
||||
}
|
||||
|
||||
//道路运输许可证编号
|
||||
public void saveCarRoadLicenseNo(Context con, Handler hd, String id, String registerNo) {
|
||||
String mt = "{\n" +
|
||||
"\t\"carId\": \"" + id + "\",\n" +
|
||||
"\t\"roadLicense\": " + registerNo + ",\n" +
|
||||
"}";
|
||||
Request re = OkHttpUtil.posts(new OkDate(RequestConstant.getDriverSaveCarRoadLicenseNo(), mt), getToken(con), con);
|
||||
RequestUtil.start(1, "saveCarRoadLicenseNo", re, con, hd);
|
||||
}
|
||||
|
||||
//获取资格证认证信息
|
||||
public void isDriverAuthQualification(Context con, Handler hd) {
|
||||
Request re = OkHttpUtil.posts(new OkDate(RequestConstant.getIsAuthDriverAuthQualification(), ""), getToken(con), con);
|
||||
RequestUtil.start(1, "isAuthDriverAuthQualification", re, con, hd);
|
||||
}
|
||||
|
||||
//添加挂车/app/carDriver/saveDrawCar
|
||||
public void saveDrawCar(Context con, Handler hd, String map) {
|
||||
Request re = OkHttpUtil.posts(new OkDate(RequestConstant.getSaveDrawCar(), map), getToken(con), con);
|
||||
RequestUtil.start(1, "saveDrawCar", re, con, hd);
|
||||
}
|
||||
|
||||
//获取实名认证的url
|
||||
public void getAuthUrl(Context con, Handler hd) {
|
||||
Request re = OkHttpUtil.posts(new OkDate(RequestConstant.getAuthUrl(), ""), getToken(con), con);
|
||||
RequestUtil.start(1, "authUrl", re, con, hd);
|
||||
}
|
||||
//获取车牌颜色
|
||||
public void getCarColor(Context con, Handler hd) {
|
||||
// Map<String, Object> map = new HashMap<>();
|
||||
Request re = OkHttpUtil.posts(new OkDate(RequestConstant.getCarColor(), ""), getToken(con), con);
|
||||
RequestUtil.start(1, CertificatesActivity.CAR_COLOR, re, con, hd);
|
||||
}
|
||||
|
||||
//获取燃油类型
|
||||
public void getCarEnergyType(Context con, Handler hd) {
|
||||
// Map<String, Object> map = new HashMap<>();
|
||||
Request re = OkHttpUtil.posts(new OkDate(RequestConstant.getCarEnergyType(), ""), getToken(con), con);
|
||||
RequestUtil.start(1, CertificatesActivity.CAR_ENERGY_TYPE, re, con, hd);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
package com.arpa.hndahesudintocctmsdriver.request;
|
||||
|
||||
import android.content.Context;
|
||||
import android.os.Handler;
|
||||
import android.util.Log;
|
||||
|
||||
import com.arpa.hndahesudintocctmsdriver.ui.business.Md5Util;
|
||||
import com.arpa.hndahesudintocctmsdriver.util.http.OkDate;
|
||||
import com.arpa.hndahesudintocctmsdriver.util.http.OkHttpUtil;
|
||||
import com.arpa.hndahesudintocctmsdriver.util.http.RequestUtil;
|
||||
|
||||
import okhttp3.Request;
|
||||
|
||||
/**
|
||||
* @author hlh
|
||||
* @version 1.0.0
|
||||
* @date 2021/9/6 14:04
|
||||
* @description:
|
||||
*/
|
||||
public class BusinessRequest {
|
||||
|
||||
public void GetBusinessList(Context con, Handler hd,String longitude,String latitude,String name){
|
||||
String url="https://openapi.dianping.com/router/poiinfo/commonsearch";
|
||||
Log.e("url",url+ Md5Util.resUrl(longitude,latitude,name));
|
||||
Request re = OkHttpUtil.get(new OkDate(url+ Md5Util.resUrl(longitude,latitude,name), "post", ""));
|
||||
RequestUtil.start(12, "business_list",re,con,hd);
|
||||
}
|
||||
public void GetBusiness(Context con, Handler hd, String id){
|
||||
String url="https://openapi.dianping.com/router/poiinfo/detailinfo";
|
||||
Request re = OkHttpUtil.get(new OkDate(url+Md5Util.resDelUrl(id), "post", ""));
|
||||
RequestUtil.start(1, "business",re,con,hd);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,160 @@
|
||||
package com.arpa.hndahesudintocctmsdriver.request;
|
||||
|
||||
import com.google.gson.Gson;
|
||||
import com.arpa.hndahesudintocctmsdriver.request.bean.LUInputBean;
|
||||
import com.arpa.hndahesudintocctmsdriver.request.bean.TrackInputBean;
|
||||
import com.arpa.hndahesudintocctmsdriver.request.bean.UploadReceiptInputBean;
|
||||
import com.arpa.hndahesudintocctmsdriver.ui.home.HuoYuanFragmengt;
|
||||
import com.arpa.hndahesudintocctmsdriver.ui.home.HuoYunDelActivity;
|
||||
import com.arpa.hndahesudintocctmsdriver.ui.home.StartYunDanActivity;
|
||||
import com.arpa.hndahesudintocctmsdriver.ui.home.shangchuan.OrderComplaintActivity;
|
||||
import com.arpa.hndahesudintocctmsdriver.ui.home.shangchuan.ShangChuangImgActivity;
|
||||
import com.arpa.hndahesudintocctmsdriver.ui.login.LoginActivity;
|
||||
import com.arpa.hndahesudintocctmsdriver.util.map.MapUtil;
|
||||
import com.arpa.hndahesudintocctmsdriver.util.sp.SPUtil;
|
||||
import com.arpa.hndahesudintocctmsdriver.util.http.OkDate;
|
||||
import com.arpa.hndahesudintocctmsdriver.util.http.OkHttpUtil;
|
||||
import com.arpa.hndahesudintocctmsdriver.util.http.RequestUtil;
|
||||
|
||||
import android.content.Context;
|
||||
import android.os.Handler;
|
||||
|
||||
import java.io.File;
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
import okhttp3.Request;
|
||||
|
||||
public class HuoYuanRequset{
|
||||
|
||||
private Context con;
|
||||
private Handler hd;
|
||||
|
||||
public HuoYuanRequset(Context con, Handler hd) {
|
||||
this.con = con;
|
||||
this.hd = hd;
|
||||
}
|
||||
|
||||
//引入gson
|
||||
private Gson gson=new Gson();
|
||||
|
||||
public String getToken(Context con) {
|
||||
return SPUtil.getSP(con, LoginActivity.USER,LoginActivity.USER_TOKEN);
|
||||
}
|
||||
//获取货源大厅列表数据
|
||||
public void getHuoYuan(int page,int limit){
|
||||
Map<String,Object> map=new HashMap<>();
|
||||
map.put("page",page);
|
||||
map.put("limit",limit);
|
||||
Request re;
|
||||
if (getToken(con).equals("")) {
|
||||
re = OkHttpUtil.post(new OkDate(RequestConstant.getGoodsHallUrl(), MapUtil.mapJson(map)),con);
|
||||
}else{
|
||||
re = OkHttpUtil.posts(new OkDate(RequestConstant.getGoodsHallUrl(), MapUtil.mapJson(map)),getToken(con),con);
|
||||
}
|
||||
RequestUtil.start(1,"hl",re,con,hd);
|
||||
}
|
||||
|
||||
//获取货源详情数据
|
||||
public void getHuoYuanDel(int id){
|
||||
Map<String,Object> map=new HashMap<>();
|
||||
map.put("orderId",id);
|
||||
Request re = OkHttpUtil.posts(new OkDate(RequestConstant.getGoodsDelUrl(),MapUtil.mapJson(map)),getToken(con),con);
|
||||
RequestUtil.start(1, HuoYunDelActivity.HUOYUANDEL,re,con,hd);
|
||||
}
|
||||
|
||||
//确认接单
|
||||
public void confirm(String cid,int wid){
|
||||
Map<String,Object> map=new HashMap<>();
|
||||
map.put("carId",cid);
|
||||
map.put("orderId",wid);
|
||||
Request re = OkHttpUtil.posts(new OkDate(RequestConstant.getAgreeOrder(),MapUtil.mapJson(map)),getToken(con),con);
|
||||
RequestUtil.start(1, HuoYunDelActivity.END,re,con,hd);
|
||||
}
|
||||
//获取执行中的运单
|
||||
public void startOrder(int id){
|
||||
Map<String,Object> map=new HashMap<>();
|
||||
map.put("waybillId",id);
|
||||
Request re = OkHttpUtil.posts(new OkDate(RequestConstant.getGetStartOrder(),MapUtil.mapJson(map)),getToken(con),con);
|
||||
RequestUtil.start(1, HuoYuanFragmengt.START_ORDER,re,con,hd);
|
||||
}
|
||||
//装货
|
||||
public void loading(LUInputBean lub){
|
||||
Request re = OkHttpUtil.posts(new OkDate(RequestConstant.getLOADING(), gson.toJson(lub)),getToken(con),con);
|
||||
RequestUtil.start(1, ShangChuangImgActivity.TYPE_NAME[0],re,con,hd);
|
||||
}
|
||||
//卸货
|
||||
public void dischargeCargo(LUInputBean lub){
|
||||
Request re = OkHttpUtil.posts(new OkDate(RequestConstant.getUNLOADING(), gson.toJson(lub)),getToken(con),con);
|
||||
RequestUtil.start(1, ShangChuangImgActivity.TYPE_NAME[1],re,con,hd);
|
||||
}
|
||||
//回单
|
||||
public void receipt(UploadReceiptInputBean urib){
|
||||
Request re = OkHttpUtil.posts(new OkDate(RequestConstant.getUploadReceipt(), gson.toJson(urib)),getToken(con),con);
|
||||
RequestUtil.start(1, ShangChuangImgActivity.TYPE_NAME[2],re,con,hd);
|
||||
}
|
||||
//轨迹跟踪
|
||||
public void trackTracking(TrackInputBean tib){
|
||||
Request re = OkHttpUtil.posts(new OkDate(RequestConstant.getTrackTracking(), gson.toJson(tib)),getToken(con),con);
|
||||
RequestUtil.start(1, "genzong",re,con,hd);
|
||||
}
|
||||
//上传文件
|
||||
public void uploadFile(File file){
|
||||
Request re = OkHttpUtil.postFile(new OkDate(RequestConstant.getUPLOAD(), ""),getToken(con),file);
|
||||
RequestUtil.start(12, "upload",re,con,hd);
|
||||
}
|
||||
//获取评价信息
|
||||
public void getEvaluate(int waybillId){
|
||||
Map<String,Object> map=new HashMap<>();
|
||||
map.put("waybillId",waybillId);
|
||||
Request re = OkHttpUtil.posts(new OkDate(RequestConstant.getGetEvaluate(),MapUtil.mapJson(map)),getToken(con),con);
|
||||
RequestUtil.start(1, StartYunDanActivity.GET_EVALUTE,re,con,hd);
|
||||
}
|
||||
//投诉
|
||||
public void Complaint(String content,int waybillId){
|
||||
Map<String,Object> map=new HashMap<>();
|
||||
map.put("content",content);
|
||||
map.put("fileIds",new ArrayList<>());
|
||||
map.put("waybillId",waybillId);
|
||||
Request re = OkHttpUtil.posts(new OkDate(RequestConstant.getCOMPLAINT(),MapUtil.mapJson(map)),getToken(con),con);
|
||||
RequestUtil.start(1, OrderComplaintActivity.COMPLAINT,re,con,hd);
|
||||
}
|
||||
//获取投诉信息
|
||||
public void getComplaint(int waybillId){
|
||||
Map<String,Object> map=new HashMap<>();
|
||||
map.put("waybillId",waybillId);
|
||||
Request re = OkHttpUtil.posts(new OkDate(RequestConstant.getGetComplaint(),MapUtil.mapJson(map)),getToken(con),con);
|
||||
RequestUtil.start(1, OrderComplaintActivity.GET_COMPLAINT,re,con,hd);
|
||||
}
|
||||
//保存评价信息
|
||||
public void keepEvaluate(int score,String content,int oid){
|
||||
Map<String,Object> map=new HashMap<>();
|
||||
map.put("attitudeScore",score);
|
||||
map.put("content",content);
|
||||
map.put("fileIds",new ArrayList<>());
|
||||
map.put("waybillId",oid);
|
||||
Request re = OkHttpUtil.posts(new OkDate(RequestConstant.getEvaluationV2(),MapUtil.mapJson(map)),getToken(con),con);
|
||||
RequestUtil.start(1, StartYunDanActivity.KEEP_EVALUTE,re,con,hd);
|
||||
}
|
||||
public final static String ASYMMETRYWAYBILL="waybill_getAsymmetryWaybill";
|
||||
|
||||
//获取装货失败信息
|
||||
public void getAsymmetryWaybill(){
|
||||
Request re = OkHttpUtil.posts(new OkDate(RequestConstant.getGetErrorOrder(),""),getToken(con),con);
|
||||
RequestUtil.start(1,ASYMMETRYWAYBILL,re,con,hd);
|
||||
}
|
||||
|
||||
public void getHuoYuanDealList(){
|
||||
Map<String,Object> map=new HashMap<>();
|
||||
map.put("page",1);
|
||||
map.put("limit",100);
|
||||
Request re;
|
||||
if (getToken(con).equals("")) {
|
||||
re = OkHttpUtil.post(new OkDate(RequestConstant.getGetExampleList(), MapUtil.mapJson(map)),con);
|
||||
}else{
|
||||
re = OkHttpUtil.posts(new OkDate(RequestConstant.getGetExampleList(), MapUtil.mapJson(map)),getToken(con),con);
|
||||
}
|
||||
RequestUtil.start(1,"dealList",re,con,hd);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,97 @@
|
||||
package com.arpa.hndahesudintocctmsdriver.request;
|
||||
|
||||
import android.content.Context;
|
||||
import android.os.Handler;
|
||||
import android.util.Log;
|
||||
|
||||
import com.arpa.hndahesudintocctmsdriver.util.map.MapUtil;
|
||||
import com.google.gson.Gson;
|
||||
import com.arpa.hndahesudintocctmsdriver.ui.login.LoginActivity;
|
||||
import com.arpa.hndahesudintocctmsdriver.ui.news.NewsActivity;
|
||||
import com.arpa.hndahesudintocctmsdriver.ui.news.NewsFragment;
|
||||
import com.arpa.hndahesudintocctmsdriver.util.sp.SPUtil;
|
||||
import com.arpa.hndahesudintocctmsdriver.util.http.OkDate;
|
||||
import com.arpa.hndahesudintocctmsdriver.util.http.OkHttpUtil;
|
||||
import com.arpa.hndahesudintocctmsdriver.util.http.RequestUtil;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import okhttp3.Request;
|
||||
|
||||
/**
|
||||
* @author hlh
|
||||
* @version 1.0.0
|
||||
* @date 2021/7/31 17:34
|
||||
* @description:消息模块的请求
|
||||
*/
|
||||
public class NewsRequest {
|
||||
|
||||
String token;
|
||||
private Gson gson=new Gson();
|
||||
public String getToken(Context con) {
|
||||
return SPUtil.getSP(con, LoginActivity.USER,LoginActivity.USER_TOKEN);
|
||||
}
|
||||
public void getXiaoXiLists(Context con, Handler hd){
|
||||
token= SPUtil.getSP(con, LoginActivity.USER,LoginActivity.USER_TOKEN);
|
||||
String mt="";
|
||||
Request re = OkHttpUtil.posts(new OkDate(RequestConstant.getXiaoXiListUrl(), mt),token,con);
|
||||
RequestUtil.start(1, NewsFragment.XIAOXILIST,re,con,hd);
|
||||
}
|
||||
public void getXiaoXiList(Context con, Handler hd,int type,int page){
|
||||
Map<String,Object> map=new HashMap<>();
|
||||
map.put("cate",type);
|
||||
map.put("content","");
|
||||
map.put("createTimeEnd","");
|
||||
map.put("createTimeStart","");
|
||||
map.put("createUserName","");
|
||||
map.put("limit",10);
|
||||
map.put("messageTypes","");
|
||||
map.put("page",page);
|
||||
map.put("receiverId",0);
|
||||
map.put("receiverName","");
|
||||
map.put("roleId",0);
|
||||
Request re = OkHttpUtil.posts(new OkDate(RequestConstant.getXiaoxiAll(), MapUtil.mapJson(map)),getToken(con),con);
|
||||
RequestUtil.start(1, NewsActivity.XIAOXILIST_TYPE,re,con,hd);
|
||||
}
|
||||
|
||||
public void DelNews(Context con, Handler hd,int id){
|
||||
Map<String,Object> map=new HashMap<>();
|
||||
map.put("id",id);
|
||||
Request re = OkHttpUtil.posts(new OkDate(RequestConstant.getXiaoxiDel(),MapUtil.mapJson(map)),getToken(con),con);
|
||||
RequestUtil.start(1, NewsActivity.NEWS_DEL,re,con,hd);
|
||||
}
|
||||
|
||||
public void delNewsAll(Context con, Handler hd,Model m){
|
||||
m.setId(0);
|
||||
token= SPUtil.getSP(con, LoginActivity.USER,LoginActivity.USER_TOKEN);
|
||||
Log.e("-xm-",gson.toJson(m));
|
||||
Request re = OkHttpUtil.posts(new OkDate(RequestConstant.getXiaoxiDelAll(),gson.toJson(m)),getToken(con),con);
|
||||
RequestUtil.start(1, NewsActivity.NEWS_DEL,re,con,hd);
|
||||
///app/message/setReadAll
|
||||
}
|
||||
|
||||
public static class Model{
|
||||
|
||||
private int id;
|
||||
private List<Integer> ids;
|
||||
|
||||
public int getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(int id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public List<?> getIds() {
|
||||
return ids;
|
||||
}
|
||||
|
||||
public void setIds(List<Integer> ids) {
|
||||
this.ids = ids;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,62 @@
|
||||
package com.arpa.hndahesudintocctmsdriver.request;
|
||||
|
||||
import android.content.Context;
|
||||
import android.os.Handler;
|
||||
|
||||
import com.arpa.hndahesudintocctmsdriver.ui.login.LoginActivity;
|
||||
import com.arpa.hndahesudintocctmsdriver.ui.auth.CertificatesActivity;
|
||||
import com.arpa.hndahesudintocctmsdriver.util.sp.SPUtil;
|
||||
import com.arpa.hndahesudintocctmsdriver.util.http.OkDate;
|
||||
import com.arpa.hndahesudintocctmsdriver.util.http.OkHttpUtil;
|
||||
import com.arpa.hndahesudintocctmsdriver.util.http.RequestUtil;
|
||||
import java.io.File;
|
||||
import okhttp3.Request;
|
||||
|
||||
public class OCRRequest {
|
||||
|
||||
public String getToken(Context con) {
|
||||
return SPUtil.getSP(con, LoginActivity.USER,LoginActivity.USER_TOKEN);
|
||||
}
|
||||
|
||||
//银行卡识别
|
||||
public void ORCBank(Context con, Handler hd, File file){
|
||||
Request re = OkHttpUtil.postFile(new OkDate(RequestConstant.getOrcBank()),getToken(con),file);
|
||||
RequestUtil.start(12, "OCR_BANK",re,con,hd);
|
||||
}
|
||||
//身份证正面识别
|
||||
public void OCRCard(Context con, Handler hd, File file){
|
||||
Request re = OkHttpUtil.postFile(new OkDate(RequestConstant.getIdCardFront()),getToken(con),file);
|
||||
RequestUtil.start(12, CertificatesActivity.TYPE_NAME[0],re,con,hd);
|
||||
}
|
||||
//身份证背面识别
|
||||
public void OCRCardBack(Context con, Handler hd, File file){
|
||||
Request re = OkHttpUtil.postFile(new OkDate(RequestConstant.getIdCardBack()),getToken(con),file);
|
||||
RequestUtil.start(12, CertificatesActivity.TYPE_NAME_BANK[0], re,con,hd);
|
||||
}
|
||||
//驾驶证正面识别
|
||||
public void OCRDrivingLicense(Context con, Handler hd, File file){
|
||||
Request re = OkHttpUtil.postFile(new OkDate(RequestConstant.getDrivingLicense()),getToken(con),file);
|
||||
RequestUtil.start(12, CertificatesActivity.TYPE_NAME[1],re,con,hd);
|
||||
}
|
||||
//驾驶证背面识别
|
||||
public void OCRDrivingLicenseBack(Context con, Handler hd, File file){
|
||||
Request re = OkHttpUtil.postFile(new OkDate(RequestConstant.getDrivingLicenseBack()),getToken(con),file);
|
||||
RequestUtil.start(12, CertificatesActivity.TYPE_NAME_BANK[1],re,con,hd);
|
||||
}
|
||||
//行驶证正面识别
|
||||
public void OCRVehicleLicense(Context con, Handler hd, File file){
|
||||
Request re = OkHttpUtil.postFile(new OkDate(RequestConstant.getVehicleLicense()),getToken(con),file);
|
||||
RequestUtil.start(12, CertificatesActivity.TYPE_NAME[2],re,con,hd);
|
||||
}
|
||||
//行驶证背面识别
|
||||
public void OCRVehicleLicenseBack(Context con, Handler hd, File file,String carId,String carNum){
|
||||
Request re = OkHttpUtil.postFiles(new OkDate(RequestConstant.getVehicleLicenseBack()),file,getToken(con),carId,carNum);
|
||||
RequestUtil.start(12, CertificatesActivity.TYPE_NAME_BANK[2],re,con,hd);
|
||||
}
|
||||
|
||||
public void OCRPlateLicense(Context con, Handler hd, File file){
|
||||
Request re = OkHttpUtil.postFile(new OkDate(RequestConstant.getPlateLicense()),getToken(con),file);
|
||||
RequestUtil.start(12, "carName",re,con,hd);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,400 @@
|
||||
package com.arpa.hndahesudintocctmsdriver.request;
|
||||
|
||||
public class RequestConstant {
|
||||
|
||||
public static String TOKEN="eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE2MzA0MDE3OTIsInVzZXJJZCI6ODAsImlhdCI6MTYyNzcyMzM5Mn0.f9Q-UZVduW6nt1s0L-3vYsrOJJ8iuSCSlJ9uu8yIxBI";
|
||||
//域名地址http://request.one-clouds.com/api https://huoyun.mzxd56.com/api http://app.dahehuoyun.com/api
|
||||
public static String BASE_URL ="http://app.dahehuoyun.com/api";
|
||||
//版本更新/app/check/version
|
||||
public static String VERSION ="/app/check/version";
|
||||
//全部代码
|
||||
public static String CODE_DATA ="/common/dic/listdata";
|
||||
//短信验证码
|
||||
private static final String SEND_CODE = "/common/sendcode";
|
||||
//登录
|
||||
private static final String REG="/common/register";
|
||||
//注册
|
||||
private static final String LOGIN="/common/register";
|
||||
//上传文件
|
||||
private static final String UPLOAD="/common/resource/upload";
|
||||
//配置项信息
|
||||
private static final String CONFIG="/common/config/list";
|
||||
//获取开屏页图片和轮播图
|
||||
private static final String GET_IMAGE="/common/resource/image/config";
|
||||
//司机认证信息
|
||||
private static final String DRIVER_AUTH_INFO="/app/driver/auth/authInfo";
|
||||
//货源大厅
|
||||
private static final String GOODS_HALL="/app/driver/order/getHallList";
|
||||
//历史成交货源
|
||||
private static final String GET_EXAMPLE_LIST="/app/driver/order/getExampleList";
|
||||
//货源详情
|
||||
private static final String GOODS_DEL="/app/driver/order/findOrderInfoV2";
|
||||
//账户信息
|
||||
private static final String USER="/app/user/getUserInfo";
|
||||
//银行卡列表
|
||||
private static final String BANK_CARD_LIST="/app/bankCard/findPage";
|
||||
//绑定银行卡
|
||||
private static final String INS_BANKCARD="/app/bankCard/bandCard";
|
||||
// private static final String INS_BANKCARD="/app/bankCard/save";
|
||||
//删除银行卡
|
||||
// private static final String DELETE_BANKCARD="/app/bankCard/deleteCard";
|
||||
private static final String DELETE_BANKCARD="/app/bankCard/unBandCard";
|
||||
//生成电子账户
|
||||
private static final String ADD_CONTRACTS="/app/bank/addContracts";
|
||||
//获取电子账户
|
||||
private static final String GET_CONTRACTS="/app/bank/getContracts";
|
||||
//获取账户未读消息
|
||||
private static final String XIAOXI_LIST="/app/message/findCurrentUserNotReadCount";
|
||||
//获取账户消息
|
||||
private static final String XIAOXI_ALL="/app/message/findPage";
|
||||
//已读消息
|
||||
private static final String XIAOXI_DEL="/app/message/setReadById";
|
||||
//已读全部消息
|
||||
private static final String XIAOXI_DEL_ALL="/app/message/setReadAll";
|
||||
//运单列表
|
||||
private static final String ORDER_LIST="/app/driver/waybill/listV2";
|
||||
//抢单
|
||||
private static final String AGREE_ORDER="/app/driver/waybill/grabDriverOrdersContruct";
|
||||
//获取正在执行的运单/运单详情
|
||||
private static final String GET_START_ORDER="/app/driver/waybill/getExecuteWaybill";
|
||||
//查看承运合同
|
||||
private static final String GET_CARRY_CONTRACT="/common/appContract/findCarrierContract";
|
||||
//评价信息保存
|
||||
private static final String EVALUATIONV2="/app/driver/waybill/evaluationV2";
|
||||
//装货
|
||||
private static final String LOADING="/app/driver/waybill/loadingV2";
|
||||
//卸货
|
||||
private static final String UNLOADING="/app/driver/waybill/unloadV2";
|
||||
//上传回单
|
||||
private static final String UPLOAD_RECEIPT="/app/driver/waybill/uploadReceipt";
|
||||
//轨迹跟踪
|
||||
private static final String TRACK_TRACKING="/app/driver/waybill/addAppLocation";
|
||||
//获取评价信息
|
||||
private static final String GET_EVALUATE="/app/driver/waybill/listAppraises";
|
||||
//获取投诉信息
|
||||
private static final String GET_COMPLAINT="/app/driver/waybill/listComplaint";
|
||||
//保存投诉信息
|
||||
private static final String COMPLAINT="/app/driver/waybill/complaintV2";
|
||||
//保存评价信息
|
||||
private static final String EVALUATION_V2="/app/driver/waybill/evaluationV2";
|
||||
//车辆列表
|
||||
private static final String GET_CAR_LIST="/app/carDriver/getCarList";
|
||||
//车辆详情
|
||||
private static final String GET_CAR_DEL="/app/carDriver/getCarInfo";
|
||||
//删除车辆
|
||||
private static final String DEL_CAR="/app/carDriver/removeCar";
|
||||
//上传车辆照片
|
||||
private static final String SAVECARIMG="/app/carDriver/saveCarImg";
|
||||
//上传头像保存
|
||||
private static final String UPLOAD_HEAD="/app/user/uploadHeadportrait";
|
||||
//获取上传失败的订单
|
||||
private static final String GET_ERROR_ORDER="/app/driver/waybill/getAsymmetryWaybill";
|
||||
//提现
|
||||
private static final String TIXIAN="/app/account/cashApply/bank/charge";
|
||||
//--ORC识别--
|
||||
|
||||
//银行卡识别
|
||||
private static final String ORC_BANK="/common/ocr/bank";
|
||||
//身份证正面
|
||||
private static final String ID_CARD_FRONT="/common/ocr/idCardFront";
|
||||
//身份证识别反面
|
||||
private static final String ID_CARD_BACK="/common/ocr/idCardBack";
|
||||
//驾驶证正面
|
||||
private static final String DRIVING_LICENSE="/common/ocr/drivingLicense";
|
||||
//驾驶证副页
|
||||
private static final String DRIVING_LICENSE_BACK="/common/ocr/drivingLicenseBack";
|
||||
//行驶证正面
|
||||
private static final String VEHICLE_LICENSE="/common/ocr/vehicleLicense";
|
||||
//行驶证副页
|
||||
private static final String VEHICLE_LICENSE_BACK="/common/ocr/v2/vehicleBackLicenseV3";
|
||||
//身份证认证信息
|
||||
private static final String ISAUTH_IDCARD="/app/driver/auth/isAuthIdCard";
|
||||
//驾驶证认证信息
|
||||
private static final String ISAUTH_DRIVERAUTH_LICENSE="/app/driver/auth/isAuthDriverAuthLicense";
|
||||
//资格证认证信息
|
||||
private static final String IS_AUTH_DRIVER_AUTH_QUALIFICATION="/app/driver/auth/isAuthDriverAuthQualification";
|
||||
//行驶证认证信息
|
||||
//身份证认证
|
||||
private static final String DRIVERAUTHIDCARD="/app/driver/auth/driverAuthIdCard";
|
||||
//驾驶证认证
|
||||
private static final String DRIVERAUTHLICENSE="/app/driver/auth/driverAuthLicense";
|
||||
//行驶证认证
|
||||
private static final String SAVEVEHICLELICENSE="/app/carDriver/saveVehicleLicense";
|
||||
//从业资格证认证
|
||||
private static final String DRIVER_AUTH_QUALIFICATION="/app/driver/auth/driverAuthQualification";
|
||||
//车辆等级证书
|
||||
private static final String DRIVER_AUTH_SAVECARREGISTERNO="/app/carDriver/saveCarRegisterNo";
|
||||
//道路运输信息
|
||||
private static final String DRIVER_AUTH_SAVECARROADLICENSENO="/app/carDriver/saveCarRoadLicenseNo";
|
||||
//党员认证
|
||||
private static final String PARTY_MEMBER="/app/user/partyMember";
|
||||
//实名认证
|
||||
private static final String AUTH_URL="/app/driver/auth/getAuthUrl";
|
||||
//车牌号
|
||||
private static final String PLATE_LICENSE="/common/ocr/plateLicense";
|
||||
|
||||
//添加挂车
|
||||
private static final String SAVE_DRAW_CAR="/app/carDriver/saveDrawCar";
|
||||
//提现记录
|
||||
private static final String CHANGE_RECORD="/app/account/change/record";
|
||||
|
||||
//提现手续费
|
||||
private static final String WITHDRAWALS_CHARGE="/app/account/withdrawals/charge";
|
||||
|
||||
//提现配置信息
|
||||
private static final String WITHDRAWALS_CONFIG="/app/account/withdrawals/config";
|
||||
|
||||
//获取车辆颜色
|
||||
private static final String CAR_COLOR="/app/common/carColorTypeList";
|
||||
|
||||
//获取车辆颜色
|
||||
private static final String CAR_ENERGYTYPE="/app/common/carEnergyTypeList";
|
||||
|
||||
//车辆自动审核触发器
|
||||
private static final String CAR_AUDIT="/app/carDriver/carAutomaticAudit";
|
||||
|
||||
public static String getCarAudit(){
|
||||
return BASE_URL +CAR_AUDIT;
|
||||
}
|
||||
|
||||
public static String getCarColor(){
|
||||
return BASE_URL +CAR_COLOR;
|
||||
}
|
||||
|
||||
public static String getCarEnergyType(){
|
||||
return BASE_URL + CAR_ENERGYTYPE;
|
||||
}
|
||||
|
||||
//app/driver/auth/driverExpire
|
||||
public static final String GET_CERTIFICATE_EXPIRED="/app/driver/auth/driverExpire";
|
||||
|
||||
public static String getSendCodeUrl() {
|
||||
return BASE_URL +SEND_CODE;
|
||||
}
|
||||
|
||||
public static String getREGUrl() {
|
||||
return BASE_URL +REG;
|
||||
}
|
||||
|
||||
public static String getLoginUrl() {
|
||||
return BASE_URL +LOGIN;
|
||||
}
|
||||
|
||||
public static String getDriverAuthInfoUrl() {
|
||||
return BASE_URL +DRIVER_AUTH_INFO;
|
||||
}
|
||||
|
||||
public static String getGoodsHallUrl() {
|
||||
return BASE_URL +GOODS_HALL;
|
||||
}
|
||||
|
||||
public static String getGoodsDelUrl() {
|
||||
return BASE_URL +GOODS_DEL;
|
||||
}
|
||||
|
||||
public static String getUserUrl() {
|
||||
return BASE_URL + USER;
|
||||
}
|
||||
|
||||
public static String getDeleteBankcard() {
|
||||
return BASE_URL + DELETE_BANKCARD;
|
||||
}
|
||||
|
||||
public static String getBankCardListUrl() {
|
||||
return BASE_URL + BANK_CARD_LIST;
|
||||
}
|
||||
|
||||
public static String getXiaoXiListUrl() { return BASE_URL + XIAOXI_LIST; }
|
||||
|
||||
public static String getXiaoxiAll() { return BASE_URL +XIAOXI_ALL; }
|
||||
|
||||
public static String getOrderList() {
|
||||
return BASE_URL +ORDER_LIST;
|
||||
}
|
||||
|
||||
public static String getAgreeOrder() {
|
||||
return BASE_URL +AGREE_ORDER;
|
||||
}
|
||||
|
||||
public static String getGetStartOrder() {
|
||||
return BASE_URL +GET_START_ORDER;
|
||||
}
|
||||
|
||||
public static String getGetCarryContract() {
|
||||
return BASE_URL +GET_CARRY_CONTRACT;
|
||||
}
|
||||
|
||||
public static String getEVALUATIONV2() {
|
||||
return BASE_URL +EVALUATIONV2;
|
||||
}
|
||||
|
||||
public static String getLOADING() {
|
||||
return BASE_URL +LOADING;
|
||||
}
|
||||
|
||||
public static String getUNLOADING() {
|
||||
return BASE_URL +UNLOADING;
|
||||
}
|
||||
|
||||
public static String getGetEvaluate() {
|
||||
return BASE_URL +GET_EVALUATE;
|
||||
}
|
||||
|
||||
public static String getGetComplaint() {
|
||||
return BASE_URL +GET_COMPLAINT;
|
||||
}
|
||||
|
||||
public static String getOrcBank() {
|
||||
return BASE_URL +ORC_BANK;
|
||||
}
|
||||
|
||||
public static String getIdCardFront() {
|
||||
return BASE_URL +ID_CARD_FRONT;
|
||||
}
|
||||
|
||||
public static String getIdCardBack() {
|
||||
return BASE_URL +ID_CARD_BACK;
|
||||
}
|
||||
|
||||
public static String getDrivingLicense() {
|
||||
return BASE_URL +DRIVING_LICENSE;
|
||||
}
|
||||
|
||||
public static String getDrivingLicenseBack() {
|
||||
return BASE_URL +DRIVING_LICENSE_BACK;
|
||||
}
|
||||
|
||||
public static String getVehicleLicense() {
|
||||
return BASE_URL +VEHICLE_LICENSE;
|
||||
}
|
||||
|
||||
public static String getVehicleLicenseBack() {
|
||||
return BASE_URL +VEHICLE_LICENSE_BACK;
|
||||
}
|
||||
|
||||
public static String getGetCarList() {
|
||||
return BASE_URL +GET_CAR_LIST;
|
||||
}
|
||||
|
||||
public static String getGetCarDel() {
|
||||
return BASE_URL +GET_CAR_DEL;
|
||||
}
|
||||
|
||||
public static String getCodeData() {
|
||||
return BASE_URL +CODE_DATA;
|
||||
}
|
||||
|
||||
public static String getIsauthIdcard() {
|
||||
return BASE_URL +ISAUTH_IDCARD;
|
||||
}
|
||||
|
||||
public static String getIsauthDriverauthLicense() { return BASE_URL +ISAUTH_DRIVERAUTH_LICENSE; }
|
||||
|
||||
public static String getUploadReceipt() { return BASE_URL +UPLOAD_RECEIPT; }
|
||||
|
||||
public static String getUPLOAD() { return BASE_URL +UPLOAD; }
|
||||
|
||||
public static String getTrackTracking() {return BASE_URL +TRACK_TRACKING; }
|
||||
|
||||
public static String getEvaluationV2() { return BASE_URL +EVALUATION_V2; }
|
||||
|
||||
public static String getDRIVERAUTHIDCARD() {
|
||||
return BASE_URL +DRIVERAUTHIDCARD;
|
||||
}
|
||||
|
||||
public static String getDRIVERAUTHLICENSE() {
|
||||
return BASE_URL +DRIVERAUTHLICENSE;
|
||||
}
|
||||
|
||||
public static String getSAVEVEHICLELICENSE() {
|
||||
return BASE_URL +SAVEVEHICLELICENSE;
|
||||
}
|
||||
|
||||
public static String getSAVECARIMG() {
|
||||
return BASE_URL +SAVECARIMG;
|
||||
}
|
||||
|
||||
public static String getUploadHead() { return BASE_URL +UPLOAD_HEAD; }
|
||||
|
||||
public static String getInsBankcard() {
|
||||
return BASE_URL +INS_BANKCARD;
|
||||
}
|
||||
|
||||
public static String getDelCar() { return BASE_URL +DEL_CAR; }
|
||||
|
||||
public static String getXiaoxiDel() { return BASE_URL +XIAOXI_DEL; }
|
||||
|
||||
public static String getCOMPLAINT() { return BASE_URL+COMPLAINT; }
|
||||
|
||||
public static String getXiaoxiDelAll() { return BASE_URL+XIAOXI_DEL_ALL; }
|
||||
|
||||
public static String getDriverAuthQualification() { return BASE_URL+DRIVER_AUTH_QUALIFICATION; }
|
||||
|
||||
public static String getDriverSaveCarRegisterNo() { return BASE_URL+DRIVER_AUTH_SAVECARREGISTERNO; }
|
||||
|
||||
public static String getDriverSaveCarRoadLicenseNo() { return BASE_URL+DRIVER_AUTH_SAVECARROADLICENSENO; }
|
||||
|
||||
public static String getSaveDrawCar() { return BASE_URL+SAVE_DRAW_CAR; }
|
||||
|
||||
public static String getIsAuthDriverAuthQualification() {
|
||||
return BASE_URL+IS_AUTH_DRIVER_AUTH_QUALIFICATION;
|
||||
}
|
||||
|
||||
public static String getVERSION() {
|
||||
return BASE_URL+VERSION;
|
||||
}
|
||||
|
||||
public static String getAddContracts() {
|
||||
return BASE_URL+ADD_CONTRACTS;
|
||||
}
|
||||
|
||||
public static String getGetContracts() {
|
||||
return BASE_URL+GET_CONTRACTS;
|
||||
}
|
||||
|
||||
public static String getTIXIAN() {
|
||||
return BASE_URL+TIXIAN;
|
||||
}
|
||||
|
||||
public static String getPartyMember() {
|
||||
return BASE_URL+PARTY_MEMBER;
|
||||
}
|
||||
|
||||
public static String getCONFIG() {
|
||||
return BASE_URL+CONFIG;
|
||||
}
|
||||
|
||||
public static String getChangeRecord() {
|
||||
return BASE_URL+CHANGE_RECORD;
|
||||
}
|
||||
|
||||
public static String getChangeCharge() {
|
||||
return BASE_URL+WITHDRAWALS_CHARGE;
|
||||
}
|
||||
|
||||
public static String getChangeConfig() {
|
||||
return BASE_URL+WITHDRAWALS_CONFIG;
|
||||
}
|
||||
|
||||
public static String getGetErrorOrder() { return BASE_URL+GET_ERROR_ORDER; }
|
||||
|
||||
public static String getGetExampleList() {
|
||||
return BASE_URL+GET_EXAMPLE_LIST;
|
||||
}
|
||||
|
||||
public static String getAuthUrl() {
|
||||
return BASE_URL+AUTH_URL;
|
||||
}
|
||||
|
||||
public static String getPlateLicense() {
|
||||
return BASE_URL+PLATE_LICENSE;
|
||||
}
|
||||
|
||||
public static String getGetImage() {
|
||||
return BASE_URL+GET_IMAGE;
|
||||
}
|
||||
|
||||
public static String getGetCertificateExpired() {
|
||||
return BASE_URL+GET_CERTIFICATE_EXPIRED;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,227 @@
|
||||
package com.arpa.hndahesudintocctmsdriver.request;
|
||||
|
||||
import android.content.Context;
|
||||
import android.content.Intent;
|
||||
import android.content.pm.PackageManager;
|
||||
import android.net.Uri;
|
||||
import android.os.Build;
|
||||
import android.os.Handler;
|
||||
import android.provider.Settings;
|
||||
|
||||
import androidx.annotation.RequiresApi;
|
||||
|
||||
import com.arpa.hndahesudintocctmsdriver.event.VehicleEvent;
|
||||
import com.arpa.hndahesudintocctmsdriver.ui.auth.CertificatesActivity;
|
||||
import com.arpa.hndahesudintocctmsdriver.ui.business.Md5Util;
|
||||
import com.google.gson.Gson;
|
||||
import com.arpa.hndahesudintocctmsdriver.request.bean.LoginRegInputBean;
|
||||
import com.arpa.hndahesudintocctmsdriver.ui.home.OrderAllActivity;
|
||||
import com.arpa.hndahesudintocctmsdriver.ui.login.LoginActivity;
|
||||
import com.arpa.hndahesudintocctmsdriver.ui.auth.VehicleAuthActivity;
|
||||
import com.arpa.hndahesudintocctmsdriver.ui.my.WoDeFragment;
|
||||
import com.arpa.hndahesudintocctmsdriver.util.map.MapUtil;
|
||||
import com.arpa.hndahesudintocctmsdriver.util.sp.SPUtil;
|
||||
import com.arpa.hndahesudintocctmsdriver.util.http.OkDate;
|
||||
import com.arpa.hndahesudintocctmsdriver.util.http.OkHttpUtil;
|
||||
import com.arpa.hndahesudintocctmsdriver.util.http.RequestUtil;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
import okhttp3.Request;
|
||||
|
||||
public class UserRequset {
|
||||
|
||||
private Context con;
|
||||
private Handler hd;
|
||||
|
||||
public UserRequset(Context con, Handler hd) {
|
||||
this.con = con;
|
||||
this.hd = hd;
|
||||
}
|
||||
|
||||
private Gson gson = new Gson();
|
||||
|
||||
public String getToken(Context con) {
|
||||
return SPUtil.getSP(con, LoginActivity.USER, LoginActivity.USER_TOKEN);
|
||||
}
|
||||
|
||||
//获取全部代码表
|
||||
public void getCodeData() {
|
||||
Request re = OkHttpUtil.post(new OkDate(RequestConstant.getSendCodeUrl(), ""), con);
|
||||
RequestUtil.start(1, "未知", re, con, hd);
|
||||
}
|
||||
|
||||
//获取手机验证码
|
||||
public void getPhoneCode(String phone) {
|
||||
Map<String, Object> map = new HashMap<>();
|
||||
map.put("phone", phone);
|
||||
map.put("sendType", 1);
|
||||
Request re = OkHttpUtil.post(new OkDate(RequestConstant.getSendCodeUrl(), MapUtil.mapJson(map)), con);
|
||||
RequestUtil.start(1, LoginActivity.CODE_RESULT, re, con, hd);
|
||||
}
|
||||
|
||||
//账户注册
|
||||
public void UserReg() {
|
||||
Request re = OkHttpUtil.post(new OkDate(RequestConstant.getREGUrl(), ""), con);
|
||||
RequestUtil.start(1, "", re, con, hd);
|
||||
}
|
||||
|
||||
//账户登录
|
||||
public void UserLogin(LoginRegInputBean lrib) {
|
||||
Request re = OkHttpUtil.post(new OkDate(RequestConstant.getLoginUrl(), gson.toJson(lrib)), con);
|
||||
RequestUtil.start(1, LoginActivity.LOGIN_RESULT, re, con, hd);
|
||||
}
|
||||
|
||||
//账户信息
|
||||
public void User() {
|
||||
Request re = OkHttpUtil.posts(new OkDate(RequestConstant.getUserUrl(), ""), getToken(con), con);
|
||||
RequestUtil.start(1, "userdata", re, con, hd);
|
||||
}
|
||||
|
||||
//司机认证信息
|
||||
public void driverAuthData() {
|
||||
String mt = "{}";
|
||||
Request re = OkHttpUtil.posts(new OkDate(RequestConstant.getDriverAuthInfoUrl(), mt), getToken(con), con);
|
||||
RequestUtil.start(1, WoDeFragment.AUTH_DATA, re, con, hd);
|
||||
}
|
||||
|
||||
//车辆列表
|
||||
public void vehicleList(String type) {
|
||||
Map<String, Object> map = new HashMap<>();
|
||||
map.put("type", type);
|
||||
Request re = OkHttpUtil.posts(new OkDate(RequestConstant.getGetCarList(), MapUtil.mapJson(map)), getToken(con), con);
|
||||
RequestUtil.start(1, WoDeFragment.VEHICLE_LIST, re, con, hd);
|
||||
}
|
||||
|
||||
//删除车辆
|
||||
public void delVehicle(String id) {
|
||||
Map<String, Object> map = new HashMap<>();
|
||||
map.put("carId", id);
|
||||
Request re = OkHttpUtil.posts(new OkDate(RequestConstant.getDelCar(), MapUtil.mapJson(map)), getToken(con), con);
|
||||
RequestUtil.start(1, VehicleAuthActivity.DEL_CAR, re, con, hd);
|
||||
}
|
||||
|
||||
//解绑车辆
|
||||
public void relieveVehicle(String id) {
|
||||
Map<String, Object> map = new HashMap<>();
|
||||
map.put("carId", id);
|
||||
Request re = OkHttpUtil.posts(new OkDate(RequestConstant.getGetCarDel(), MapUtil.mapJson(map)), getToken(con), con);
|
||||
RequestUtil.start(1, WoDeFragment.VEHICLE_DEL, re, con, hd);
|
||||
}
|
||||
|
||||
//车辆详情
|
||||
public void vehicleDel(String id) {
|
||||
Map<String, Object> map = new HashMap<>();
|
||||
map.put("carId", id);
|
||||
Request re = OkHttpUtil.posts(new OkDate(RequestConstant.getGetCarDel(), MapUtil.mapJson(map)), getToken(con), con);
|
||||
RequestUtil.start(1, WoDeFragment.VEHICLE_DEL, re, con, hd);
|
||||
}
|
||||
|
||||
//司机身份证认证
|
||||
public void driverIDAuth() {
|
||||
String url = RequestConstant.BASE_URL + "/app/driver/auth/authInfo";
|
||||
String mt = "";
|
||||
Request re = OkHttpUtil.posts(new OkDate(url, mt), getToken(con), con);
|
||||
RequestUtil.start(1, "", re, con, hd);
|
||||
}
|
||||
|
||||
//司机运单列表
|
||||
public void getListV2(int page, int limit) {
|
||||
Map<String, Object> map = new HashMap<>();
|
||||
map.put("page", page);
|
||||
map.put("limit", limit);
|
||||
Request re = OkHttpUtil.posts(new OkDate(RequestConstant.getOrderList(), MapUtil.mapJson(map)), getToken(con), con);
|
||||
RequestUtil.start(1, OrderAllActivity.USER_ORDER_LIST, re, con, hd);
|
||||
}
|
||||
|
||||
//app更新
|
||||
public void upApp() {
|
||||
String vs = "1.0.0";
|
||||
try {
|
||||
// isOpenAppNoRe();
|
||||
vs = con.getPackageManager().getPackageInfo(con.getPackageName(), 0).versionName;
|
||||
} catch (PackageManager.NameNotFoundException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
Map<String, Object> map = new HashMap<>();
|
||||
map.put("source", 0);
|
||||
map.put("version", vs);
|
||||
Request re = OkHttpUtil.post(new OkDate(RequestConstant.getVERSION(), MapUtil.mapJson(map)), con);
|
||||
RequestUtil.start(1, "up_app", re, con, hd);
|
||||
}
|
||||
|
||||
/**
|
||||
* 判断是否开启未知应用安装权限
|
||||
*/
|
||||
private void isOpenAppNoRe(){
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
|
||||
boolean b = con.getPackageManager().canRequestPackageInstalls();
|
||||
if (!b) {
|
||||
startInstallPermissionSettingActivity();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 跳转到设置-允许安装未知来源-页面
|
||||
*/
|
||||
@RequiresApi(api = Build.VERSION_CODES.O)
|
||||
private void startInstallPermissionSettingActivity() {
|
||||
//注意这个是8.0新API
|
||||
Uri packageURI = Uri.parse("package:" +con.getPackageName());
|
||||
Intent intent = new Intent(Settings.ACTION_MANAGE_UNKNOWN_APP_SOURCES,packageURI);
|
||||
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
|
||||
con.startActivity(intent);
|
||||
}
|
||||
|
||||
//党员认证
|
||||
public void partyMember(String url) {
|
||||
Map<String, Object> map = new HashMap<>();
|
||||
map.put("partyMemberUrl", url);
|
||||
Request re = OkHttpUtil.posts(new OkDate(RequestConstant.getPartyMember(), MapUtil.mapJson(map)), getToken(con), con);
|
||||
RequestUtil.start(1, "partyMember", re, con, hd);
|
||||
}
|
||||
|
||||
public void getImage(int type) {
|
||||
Map<String, Object> map = new HashMap<>();
|
||||
map.put("type", type);
|
||||
Request re;
|
||||
if (getToken(con).equals("")) {
|
||||
re = OkHttpUtil.post(new OkDate(RequestConstant.getGetImage(), MapUtil.mapJson(map)), con);
|
||||
} else {
|
||||
re = OkHttpUtil.posts(new OkDate(RequestConstant.getGetImage(), MapUtil.mapJson(map)), getToken(con), con);
|
||||
}
|
||||
RequestUtil.start(1, "getImage", re, con, hd);
|
||||
}
|
||||
|
||||
//app/driver/auth/driverExpire
|
||||
public void getDriverExpire() {
|
||||
Request re = OkHttpUtil.posts(new OkDate(RequestConstant.getGetCertificateExpired(), ""), getToken(con), con);
|
||||
RequestUtil.start(1, "driverExpire", re, con, hd);
|
||||
}
|
||||
|
||||
|
||||
public void getJtt(int id) {
|
||||
HashMap<String, Object> map = new HashMap<>();
|
||||
map.put("waybillId", id);
|
||||
Request re = OkHttpUtil.posts(new OkDate("http://app.dahehuoyun.com/api/traffic/getTrafficConfigByWaybillId", MapUtil.mapJson(map)), getToken(con), con);
|
||||
RequestUtil.start(1, "jttRes", re, con, hd);
|
||||
}
|
||||
|
||||
public void getJtts(String id) {
|
||||
HashMap<String, Object> map = new HashMap<>();
|
||||
map.put("waybillNum", id);
|
||||
Request re = OkHttpUtil.posts(new OkDate("http://app.dahehuoyun.com/api/traffic/getTrafficConfigByWaybillNum", MapUtil.mapJson(map)), getToken(con), con);
|
||||
RequestUtil.start(1, "jttRes", re, con, hd);
|
||||
|
||||
}
|
||||
|
||||
//获取燃油类型
|
||||
public void carAudit(String carId) {
|
||||
Map<String, Object> map = new HashMap<>();
|
||||
map.put("carId", carId);
|
||||
Request re = OkHttpUtil.get(new OkDate(RequestConstant.getCarAudit(),"get", Md5Util.resNoUrl(map)),getToken(con));
|
||||
RequestUtil.start(1, VehicleAuthActivity.CAR_AUDIO, re, con, hd);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,98 @@
|
||||
package com.arpa.hndahesudintocctmsdriver.request;
|
||||
|
||||
import android.content.Context;
|
||||
import android.os.Handler;
|
||||
|
||||
import com.arpa.hndahesudintocctmsdriver.util.map.MapUtil;
|
||||
import com.google.gson.Gson;
|
||||
import com.arpa.hndahesudintocctmsdriver.request.bean.InsBankInputBean;
|
||||
import com.arpa.hndahesudintocctmsdriver.ui.login.LoginActivity;
|
||||
import com.arpa.hndahesudintocctmsdriver.ui.wallet.WalletFragment;
|
||||
import com.arpa.hndahesudintocctmsdriver.util.sp.SPUtil;
|
||||
import com.arpa.hndahesudintocctmsdriver.util.http.OkDate;
|
||||
import com.arpa.hndahesudintocctmsdriver.util.http.OkHttpUtil;
|
||||
import com.arpa.hndahesudintocctmsdriver.util.http.RequestUtil;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
import okhttp3.Request;
|
||||
|
||||
public class WalletRequest {
|
||||
private Context con;
|
||||
private Handler hd;
|
||||
|
||||
public WalletRequest(Context con, Handler hd) {
|
||||
this.con = con;
|
||||
this.hd = hd;
|
||||
}
|
||||
|
||||
//引入gson
|
||||
private Gson gson=new Gson();
|
||||
|
||||
public String getToken(Context con) {
|
||||
return SPUtil.getSP(con, LoginActivity.USER,LoginActivity.USER_TOKEN);
|
||||
}
|
||||
|
||||
//提现
|
||||
public void takeMoney(String bid,String money){
|
||||
Map<String,Object> map=new HashMap<>();
|
||||
map.put("bankCardId",bid);
|
||||
map.put("tradeMoney",money);
|
||||
map.put("tradeTitle","");
|
||||
Request re = OkHttpUtil.posts(new OkDate(RequestConstant.getTIXIAN(), MapUtil.mapJson(map)),getToken(con),con);
|
||||
RequestUtil.start(1, "tixian",re,con,hd);
|
||||
}
|
||||
//获取银行卡列表
|
||||
public void getBankCardList(){
|
||||
Map<String,Object> map=new HashMap<>();
|
||||
map.put("cardType",1);
|
||||
map.put("createUser",SPUtil.getSP(con, LoginActivity.USER,LoginActivity.USER_ID));
|
||||
Request re = OkHttpUtil.posts(new OkDate(RequestConstant.getBankCardListUrl(), MapUtil.mapJson(map)),getToken(con),con);
|
||||
RequestUtil.start(1, WalletFragment.dataName2,re,con,hd);
|
||||
}
|
||||
//删除银行卡信息
|
||||
public void deleteBankCard(int id){
|
||||
Map<String,Object> map=new HashMap<>();
|
||||
map.put("id",id);
|
||||
Request re = OkHttpUtil.posts(new OkDate(RequestConstant.getDeleteBankcard(), MapUtil.mapJson(map)),getToken(con),con);
|
||||
RequestUtil.start(1, "bankdelete",re,con,hd);
|
||||
}
|
||||
//绑定银行卡
|
||||
public void insBankCard(InsBankInputBean ibib){
|
||||
Request re = OkHttpUtil.posts(new OkDate(RequestConstant.getInsBankcard(),gson.toJson(ibib)),getToken(con),con);
|
||||
RequestUtil.start(1, "insBank",re,con,hd);
|
||||
}
|
||||
//创建电子账户
|
||||
public void addContracts(){
|
||||
Request re = OkHttpUtil.posts(new OkDate(RequestConstant.getAddContracts(),""),getToken(con),con);
|
||||
RequestUtil.start(1, "addContracts",re,con,hd);
|
||||
}
|
||||
//获取电子账户
|
||||
public void getContracts(){
|
||||
Request re = OkHttpUtil.posts(new OkDate(RequestConstant.getGetContracts(),""),getToken(con),con);
|
||||
RequestUtil.start(1, "getContracts",re,con,hd);
|
||||
}
|
||||
//提现记录/app/account/change/record
|
||||
public void changeRecord(){
|
||||
Map<String,Object> map=new HashMap<>();
|
||||
map.put("pageNum",1);
|
||||
map.put("pageSize",30);
|
||||
Request re = OkHttpUtil.posts(new OkDate(RequestConstant.getChangeRecord(),MapUtil.mapJson(map)),getToken(con),con);
|
||||
RequestUtil.start(1, "change",re,con,hd);
|
||||
}
|
||||
|
||||
public void charge(String amount){
|
||||
Map<String,Object> map=new HashMap<>();
|
||||
map.put("amount",amount);
|
||||
Request re = OkHttpUtil.get(new OkDate(RequestConstant.getChangeCharge()+"?amount="+amount,"get",MapUtil.mapJson(map)),getToken(con));
|
||||
RequestUtil.start(1, "charge",re,con,hd);
|
||||
}
|
||||
|
||||
public void config(){
|
||||
Map<String,Object> map=new HashMap<>();
|
||||
// map.put("amount",amount);
|
||||
Request re = OkHttpUtil.get(new OkDate(RequestConstant.getChangeConfig(),"get",MapUtil.mapJson(map)),getToken(con));
|
||||
RequestUtil.start(1, "config",re,con,hd);
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,83 @@
|
||||
package com.arpa.hndahesudintocctmsdriver.request.bean;
|
||||
|
||||
/**
|
||||
* @author hlh
|
||||
* @version 1.0.0
|
||||
* @date 2021/8/17 11:50
|
||||
* @description:
|
||||
*/
|
||||
public class IDInputBean {
|
||||
|
||||
private String idcarName;
|
||||
private String idcard;
|
||||
private String idcardAddress;
|
||||
private String idcardValidityStart;
|
||||
private int idcardPhoto;
|
||||
private int idcardPhotoBack;
|
||||
private int idcardSex;
|
||||
private String idcardValidity;
|
||||
|
||||
public String getIdcardValidityStart() {
|
||||
return idcardValidityStart;
|
||||
}
|
||||
|
||||
public void setIdcardValidityStart(String idcardValidityStart) {
|
||||
this.idcardValidityStart = idcardValidityStart;
|
||||
}
|
||||
|
||||
public String getIdcarName() {
|
||||
return idcarName;
|
||||
}
|
||||
|
||||
public void setIdcarName(String idcarName) {
|
||||
this.idcarName = idcarName;
|
||||
}
|
||||
|
||||
public String getIdcard() {
|
||||
return idcard;
|
||||
}
|
||||
|
||||
public void setIdcard(String idcard) {
|
||||
this.idcard = idcard;
|
||||
}
|
||||
|
||||
public String getIdcardAddress() {
|
||||
return idcardAddress;
|
||||
}
|
||||
|
||||
public void setIdcardAddress(String idcardAddress) {
|
||||
this.idcardAddress = idcardAddress;
|
||||
}
|
||||
|
||||
public int getIdcardPhoto() {
|
||||
return idcardPhoto;
|
||||
}
|
||||
|
||||
public void setIdcardPhoto(int idcardPhoto) {
|
||||
this.idcardPhoto = idcardPhoto;
|
||||
}
|
||||
|
||||
public int getIdcardPhotoBack() {
|
||||
return idcardPhotoBack;
|
||||
}
|
||||
|
||||
public void setIdcardPhotoBack(int idcardPhotoBack) {
|
||||
this.idcardPhotoBack = idcardPhotoBack;
|
||||
}
|
||||
|
||||
public int getIdcardSex() {
|
||||
return idcardSex;
|
||||
}
|
||||
|
||||
public void setIdcardSex(int idcardSex) {
|
||||
this.idcardSex = idcardSex;
|
||||
}
|
||||
|
||||
public String getIdcardValidity() {
|
||||
return idcardValidity;
|
||||
}
|
||||
|
||||
public void setIdcardValidity(String idcardValidity) {
|
||||
this.idcardValidity = idcardValidity;
|
||||
}
|
||||
}
|
||||
+146
@@ -0,0 +1,146 @@
|
||||
package com.arpa.hndahesudintocctmsdriver.request.bean;
|
||||
|
||||
/**
|
||||
* @author hlh
|
||||
* @version 1.0.0
|
||||
* @date 2021/8/18 15:57
|
||||
* @description:
|
||||
*/
|
||||
public class InsBankInputBean {
|
||||
|
||||
private String address;
|
||||
private int auditStatus;
|
||||
private int bankId;
|
||||
private String bankName;
|
||||
private String cardNo;
|
||||
private int cardType;
|
||||
private int cardUserType;
|
||||
private String companyCode;
|
||||
private String companyName;
|
||||
private String createTime;
|
||||
private int id;
|
||||
private int isDeleted;
|
||||
private String openBank;
|
||||
private String phone;
|
||||
private int imageId;
|
||||
|
||||
public int getImageId() {
|
||||
return imageId;
|
||||
}
|
||||
|
||||
public void setImageId(int imageId) {
|
||||
this.imageId = imageId;
|
||||
}
|
||||
|
||||
public String getAddress() {
|
||||
return address;
|
||||
}
|
||||
|
||||
public void setAddress(String address) {
|
||||
this.address = address;
|
||||
}
|
||||
|
||||
public int getAuditStatus() {
|
||||
return auditStatus;
|
||||
}
|
||||
|
||||
public void setAuditStatus(int auditStatus) {
|
||||
this.auditStatus = auditStatus;
|
||||
}
|
||||
|
||||
public int getBankId() {
|
||||
return bankId;
|
||||
}
|
||||
|
||||
public void setBankId(int bankId) {
|
||||
this.bankId = bankId;
|
||||
}
|
||||
|
||||
public String getBankName() {
|
||||
return bankName;
|
||||
}
|
||||
|
||||
public void setBankName(String bankName) {
|
||||
this.bankName = bankName;
|
||||
}
|
||||
|
||||
public String getCardNo() {
|
||||
return cardNo;
|
||||
}
|
||||
|
||||
public void setCardNo(String cardNo) {
|
||||
this.cardNo = cardNo;
|
||||
}
|
||||
|
||||
public int getCardType() {
|
||||
return cardType;
|
||||
}
|
||||
|
||||
public void setCardType(int cardType) {
|
||||
this.cardType = cardType;
|
||||
}
|
||||
|
||||
public int getCardUserType() {
|
||||
return cardUserType;
|
||||
}
|
||||
|
||||
public void setCardUserType(int cardUserType) {
|
||||
this.cardUserType = cardUserType;
|
||||
}
|
||||
|
||||
public String getCompanyCode() {
|
||||
return companyCode;
|
||||
}
|
||||
|
||||
public void setCompanyCode(String companyCode) {
|
||||
this.companyCode = companyCode;
|
||||
}
|
||||
|
||||
public String getCompanyName() {
|
||||
return companyName;
|
||||
}
|
||||
|
||||
public void setCompanyName(String companyName) {
|
||||
this.companyName = companyName;
|
||||
}
|
||||
|
||||
public String getCreateTime() {
|
||||
return createTime;
|
||||
}
|
||||
|
||||
public void setCreateTime(String createTime) {
|
||||
this.createTime = createTime;
|
||||
}
|
||||
|
||||
public int getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(int id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public int getIsDeleted() {
|
||||
return isDeleted;
|
||||
}
|
||||
|
||||
public void setIsDeleted(int isDeleted) {
|
||||
this.isDeleted = isDeleted;
|
||||
}
|
||||
|
||||
public String getOpenBank() {
|
||||
return openBank;
|
||||
}
|
||||
|
||||
public void setOpenBank(String openBank) {
|
||||
this.openBank = openBank;
|
||||
}
|
||||
|
||||
public String getPhone() {
|
||||
return phone;
|
||||
}
|
||||
|
||||
public void setPhone(String phone) {
|
||||
this.phone = phone;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,58 @@
|
||||
package com.arpa.hndahesudintocctmsdriver.request.bean;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author hlh
|
||||
* @version 1.0.0
|
||||
* @date 2021/8/13 10:27
|
||||
* @description:装卸货输入参数实体
|
||||
*/
|
||||
public class LUInputBean {
|
||||
|
||||
private List<Integer> imageId;
|
||||
private String latitude;
|
||||
private String locationAddress;
|
||||
private String longitude;
|
||||
private String waybillId;
|
||||
|
||||
public List<Integer> getImageId() {
|
||||
return imageId;
|
||||
}
|
||||
|
||||
public void setImageId(List<Integer> imageId) {
|
||||
this.imageId = imageId;
|
||||
}
|
||||
|
||||
public String getLatitude() {
|
||||
return latitude;
|
||||
}
|
||||
|
||||
public void setLatitude(String latitude) {
|
||||
this.latitude = latitude;
|
||||
}
|
||||
|
||||
public String getLocationAddress() {
|
||||
return locationAddress;
|
||||
}
|
||||
|
||||
public void setLocationAddress(String locationAddress) {
|
||||
this.locationAddress = locationAddress;
|
||||
}
|
||||
|
||||
public String getLongitude() {
|
||||
return longitude;
|
||||
}
|
||||
|
||||
public void setLongitude(String longitude) {
|
||||
this.longitude = longitude;
|
||||
}
|
||||
|
||||
public String getWaybillId() {
|
||||
return waybillId;
|
||||
}
|
||||
|
||||
public void setWaybillId(String waybillId) {
|
||||
this.waybillId = waybillId;
|
||||
}
|
||||
}
|
||||
+86
@@ -0,0 +1,86 @@
|
||||
package com.arpa.hndahesudintocctmsdriver.request.bean;
|
||||
|
||||
/**
|
||||
* @author hlh
|
||||
* @version 1.0.0
|
||||
* @date 2021/8/17 11:52
|
||||
* @description:
|
||||
*/
|
||||
public class LicenseInputBean {
|
||||
|
||||
private String allowType;
|
||||
private String archivesName;
|
||||
private String driverLicense;
|
||||
private int driverLicenseBackPhoto;
|
||||
private String driverLicenseName;
|
||||
private int driverLicensePhoto;
|
||||
private String endTime;
|
||||
private String firstTime;
|
||||
|
||||
|
||||
|
||||
public String getAllowType() {
|
||||
return allowType;
|
||||
}
|
||||
|
||||
public void setAllowType(String allowType) {
|
||||
this.allowType = allowType;
|
||||
}
|
||||
|
||||
public String getArchivesName() {
|
||||
return archivesName;
|
||||
}
|
||||
|
||||
public void setArchivesName(String archivesName) {
|
||||
this.archivesName = archivesName;
|
||||
}
|
||||
|
||||
public String getDriverLicense() {
|
||||
return driverLicense;
|
||||
}
|
||||
|
||||
public void setDriverLicense(String driverLicense) {
|
||||
this.driverLicense = driverLicense;
|
||||
}
|
||||
|
||||
public int getDriverLicenseBackPhoto() {
|
||||
return driverLicenseBackPhoto;
|
||||
}
|
||||
|
||||
public void setDriverLicenseBackPhoto(int driverLicenseBackPhoto) {
|
||||
this.driverLicenseBackPhoto = driverLicenseBackPhoto;
|
||||
}
|
||||
|
||||
public String getDriverLicenseName() {
|
||||
return driverLicenseName;
|
||||
}
|
||||
|
||||
public void setDriverLicenseName(String driverLicenseName) {
|
||||
this.driverLicenseName = driverLicenseName;
|
||||
}
|
||||
|
||||
public int getDriverLicensePhoto() {
|
||||
return driverLicensePhoto;
|
||||
}
|
||||
|
||||
public void setDriverLicensePhoto(int driverLicensePhoto) {
|
||||
this.driverLicensePhoto = driverLicensePhoto;
|
||||
}
|
||||
|
||||
public String getEndTime() {
|
||||
return endTime;
|
||||
}
|
||||
|
||||
public void setEndTime(String endTime) {
|
||||
this.endTime = endTime;
|
||||
}
|
||||
|
||||
public String getFirstTime() {
|
||||
return firstTime;
|
||||
}
|
||||
|
||||
public void setFirstTime(String firstTime) {
|
||||
this.firstTime = firstTime;
|
||||
}
|
||||
|
||||
}
|
||||
+92
@@ -0,0 +1,92 @@
|
||||
package com.arpa.hndahesudintocctmsdriver.request.bean;
|
||||
|
||||
/**
|
||||
* @author hlh
|
||||
* @version 1.0.0
|
||||
* @date 2021/8/2 9:45
|
||||
* @description:登录和注册的入参实体
|
||||
*/
|
||||
public class LoginRegInputBean {
|
||||
|
||||
private String captcha;
|
||||
private String companyName;
|
||||
private int registerType;
|
||||
private String reupass;
|
||||
private String rname;
|
||||
private int roleId;
|
||||
private String smscode;
|
||||
private String uname;
|
||||
private String upass;
|
||||
|
||||
public String getCaptcha() {
|
||||
return captcha;
|
||||
}
|
||||
|
||||
public void setCaptcha(String captcha) {
|
||||
this.captcha = captcha;
|
||||
}
|
||||
|
||||
public String getCompanyName() {
|
||||
return companyName;
|
||||
}
|
||||
|
||||
public void setCompanyName(String companyName) {
|
||||
this.companyName = companyName;
|
||||
}
|
||||
|
||||
public int getRegisterType() {
|
||||
return registerType;
|
||||
}
|
||||
|
||||
public void setRegisterType(int registerType) {
|
||||
this.registerType = registerType;
|
||||
}
|
||||
|
||||
public String getReupass() {
|
||||
return reupass;
|
||||
}
|
||||
|
||||
public void setReupass(String reupass) {
|
||||
this.reupass = reupass;
|
||||
}
|
||||
|
||||
public String getRname() {
|
||||
return rname;
|
||||
}
|
||||
|
||||
public void setRname(String rname) {
|
||||
this.rname = rname;
|
||||
}
|
||||
|
||||
public int getRoleId() {
|
||||
return roleId;
|
||||
}
|
||||
|
||||
public void setRoleId(int roleId) {
|
||||
this.roleId = roleId;
|
||||
}
|
||||
|
||||
public String getSmscode() {
|
||||
return smscode;
|
||||
}
|
||||
|
||||
public void setSmscode(String smscode) {
|
||||
this.smscode = smscode;
|
||||
}
|
||||
|
||||
public String getUname() {
|
||||
return uname;
|
||||
}
|
||||
|
||||
public void setUname(String uname) {
|
||||
this.uname = uname;
|
||||
}
|
||||
|
||||
public String getUpass() {
|
||||
return upass;
|
||||
}
|
||||
|
||||
public void setUpass(String upass) {
|
||||
this.upass = upass;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
package com.arpa.hndahesudintocctmsdriver.request.bean;
|
||||
|
||||
/**
|
||||
* @author hlh
|
||||
* @version 1.0.0
|
||||
* @date 2021/8/13 18:47
|
||||
* @description:
|
||||
*/
|
||||
public class TrackInputBean {
|
||||
|
||||
private String latitude;
|
||||
private String longitude;
|
||||
private String shippingNoteNumber;
|
||||
|
||||
public String getLatitude() {
|
||||
return latitude;
|
||||
}
|
||||
|
||||
public void setLatitude(String latitude) {
|
||||
this.latitude = latitude;
|
||||
}
|
||||
|
||||
public String getLongitude() {
|
||||
return longitude;
|
||||
}
|
||||
|
||||
public void setLongitude(String longitude) {
|
||||
this.longitude = longitude;
|
||||
}
|
||||
|
||||
public String getShippingNoteNumber() {
|
||||
return shippingNoteNumber;
|
||||
}
|
||||
|
||||
public void setShippingNoteNumber(String shippingNoteNumber) {
|
||||
this.shippingNoteNumber = shippingNoteNumber;
|
||||
}
|
||||
|
||||
}
|
||||
+67
@@ -0,0 +1,67 @@
|
||||
package com.arpa.hndahesudintocctmsdriver.request.bean;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author hlh
|
||||
* @version 1.0.0
|
||||
* @date 2021/8/13 10:39
|
||||
* @description:上传回单输入参数实体
|
||||
*/
|
||||
public class UploadReceiptInputBean {
|
||||
|
||||
private String latitude;
|
||||
private String locationAddress;
|
||||
private String longitude;
|
||||
private List<Integer> receiptId;
|
||||
private int type;
|
||||
private String waybillId;
|
||||
|
||||
public String getLatitude() {
|
||||
return latitude;
|
||||
}
|
||||
|
||||
public void setLatitude(String latitude) {
|
||||
this.latitude = latitude;
|
||||
}
|
||||
|
||||
public String getLocationAddress() {
|
||||
return locationAddress;
|
||||
}
|
||||
|
||||
public void setLocationAddress(String locationAddress) {
|
||||
this.locationAddress = locationAddress;
|
||||
}
|
||||
|
||||
public String getLongitude() {
|
||||
return longitude;
|
||||
}
|
||||
|
||||
public void setLongitude(String longitude) {
|
||||
this.longitude = longitude;
|
||||
}
|
||||
|
||||
public List<Integer> getReceiptId() {
|
||||
return receiptId;
|
||||
}
|
||||
|
||||
public void setReceiptId(List<Integer> receiptId) {
|
||||
this.receiptId = receiptId;
|
||||
}
|
||||
|
||||
public int getType() {
|
||||
return type;
|
||||
}
|
||||
|
||||
public void setType(int type) {
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
public String getWaybillId() {
|
||||
return waybillId;
|
||||
}
|
||||
|
||||
public void setWaybillId(String waybillId) {
|
||||
this.waybillId = waybillId;
|
||||
}
|
||||
}
|
||||
+128
@@ -0,0 +1,128 @@
|
||||
package com.arpa.hndahesudintocctmsdriver.request.bean;
|
||||
|
||||
/**
|
||||
* @author hlh
|
||||
* @version 1.0.0
|
||||
* @date 2021/8/3 17:51
|
||||
* @description:
|
||||
*/
|
||||
public class XiaoXiInputBean {
|
||||
|
||||
private int cate;
|
||||
private String content;
|
||||
private String createTimeEnd;
|
||||
private String createTimeStart;
|
||||
private String createUserName;
|
||||
private int forwordType;
|
||||
private int isRead;
|
||||
private int limit;
|
||||
private String messageTypes;
|
||||
private int page;
|
||||
private int receiverId;
|
||||
private String receiverName;
|
||||
private int roleId;
|
||||
|
||||
public int getCate() {
|
||||
return cate;
|
||||
}
|
||||
|
||||
public void setCate(int cate) {
|
||||
this.cate = cate;
|
||||
}
|
||||
|
||||
public String getContent() {
|
||||
return content;
|
||||
}
|
||||
|
||||
public void setContent(String content) {
|
||||
this.content = content;
|
||||
}
|
||||
|
||||
public String getCreateTimeEnd() {
|
||||
return createTimeEnd;
|
||||
}
|
||||
|
||||
public void setCreateTimeEnd(String createTimeEnd) {
|
||||
this.createTimeEnd = createTimeEnd;
|
||||
}
|
||||
|
||||
public String getCreateTimeStart() {
|
||||
return createTimeStart;
|
||||
}
|
||||
|
||||
public void setCreateTimeStart(String createTimeStart) {
|
||||
this.createTimeStart = createTimeStart;
|
||||
}
|
||||
|
||||
public String getCreateUserName() {
|
||||
return createUserName;
|
||||
}
|
||||
|
||||
public void setCreateUserName(String createUserName) {
|
||||
this.createUserName = createUserName;
|
||||
}
|
||||
|
||||
public int getForwordType() {
|
||||
return forwordType;
|
||||
}
|
||||
|
||||
public void setForwordType(int forwordType) {
|
||||
this.forwordType = forwordType;
|
||||
}
|
||||
|
||||
public int getIsRead() {
|
||||
return isRead;
|
||||
}
|
||||
|
||||
public void setIsRead(int isRead) {
|
||||
this.isRead = isRead;
|
||||
}
|
||||
|
||||
public int getLimit() {
|
||||
return limit;
|
||||
}
|
||||
|
||||
public void setLimit(int limit) {
|
||||
this.limit = limit;
|
||||
}
|
||||
|
||||
public String getMessageTypes() {
|
||||
return messageTypes;
|
||||
}
|
||||
|
||||
public void setMessageTypes(String messageTypes) {
|
||||
this.messageTypes = messageTypes;
|
||||
}
|
||||
|
||||
public int getPage() {
|
||||
return page;
|
||||
}
|
||||
|
||||
public void setPage(int page) {
|
||||
this.page = page;
|
||||
}
|
||||
|
||||
public int getReceiverId() {
|
||||
return receiverId;
|
||||
}
|
||||
|
||||
public void setReceiverId(int receiverId) {
|
||||
this.receiverId = receiverId;
|
||||
}
|
||||
|
||||
public String getReceiverName() {
|
||||
return receiverName;
|
||||
}
|
||||
|
||||
public void setReceiverName(String receiverName) {
|
||||
this.receiverName = receiverName;
|
||||
}
|
||||
|
||||
public int getRoleId() {
|
||||
return roleId;
|
||||
}
|
||||
|
||||
public void setRoleId(int roleId) {
|
||||
this.roleId = roleId;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user