package com.product.administration.test; import com.product.common.utils.HttpTest; import java.util.HashMap; import java.util.Map; /** * Copyright LX * @Title: DriverInfoTest * @Project: product-server * @date: 2021-04-27 18:16 * @author: ZhouJie * @Description: */ public class DriverInfoTest extends HttpTest { public static void main(String[] args) { //saveDriver(); //deleteDriver(); //DriverList(); DriverInfo(); } //保存车辆信息 public static void saveDriver(){ Map map=new HashMap<>(); map.put("url/api", "/api/driverinfo/save-driver/v1"); map.put("~table~", "product_oa_driver_info"); //map.put("uuid", "e8a1a7d9-f0ae-4e1a-81d2-6fa89801a35a"); map.put("name", "车主3"); map.put("driver_license_num", "333333333"); map.put("IDCard_num", "333333333333333333"); map.put("driving_model", 2); map.put("driving_experience", 3); testPost(map); } //删除车辆信息 public static void deleteDriver(){ Map map=new HashMap<>(); map.put("url/api", "/api/driverinfo/delete-driver/v1"); map.put("~table~", "product_oa_driver_info"); map.put("uuid", "e8a1a7d9-f0ae-4e1a-81d2-6fa89801a35a"); testPost(map); } //车辆信息列表 public static void DriverList(){ Map map=new HashMap<>(); map.put("url/api", "/api/driverinfo/list-driver/v1"); map.put("~table~", "product_oa_driver_info"); map.put("pagesize", "25"); map.put("cpage", "1"); testPost(map); } //车辆信息详情 public static void DriverInfo(){ Map map=new HashMap<>(); map.put("url/api", "/api/driverinfo/info-driver/v1"); map.put("~table~", "product_oa_driver_info"); map.put("uuid", "8994cbed-b0de-472f-b60a-b5962d858082"); testPost(map); } }