package com.product.administration.test; import com.product.common.utils.HttpTest; import java.util.HashMap; import java.util.Map; /** * @author: ZhouJie * @date: 2021/4/29 10:27 * @description: 车辆事故记录测试类 */ public class VehicleAccidentTest extends HttpTest { public static void main(String[] args) { //saveVehicleAccident(); //deleteVehicleAccident(); VehicleAccidentList(); //VehicleAccidentInfo(); } //保存车辆事故记录 public static void saveVehicleAccident(){ Map map=new HashMap<>(); map.put("url/api", "/api/accident/save-accident/v1"); map.put("~table~", "product_oa_vehicle_accident_record"); //map.put("uuid", "e8a1a7d9-f0ae-4e1a-81d2-6fa89801a35a"); map.put("vehicle_info_uuid", "3e6ef27c-59e5-4410-8c6f-136d68bc54a9"); map.put("accident_time", "2021-04-29 11:00:19"); map.put("driver_info_uuid", "8994cbed-b0de-472f-b60a-b5962d858082"); map.put("accident_location", "上海"); map.put("accident_cause", "高速堵车追尾3"); testPost(map); } //删除车辆事故记录 public static void deleteVehicleAccident(){ Map map=new HashMap<>(); map.put("url/api", "/api/accident/delete-accident/v1"); map.put("~table~", "product_oa_vehicle_accident_record"); map.put("uuid", "b8e40e2b-b52c-44af-ac2e-3a6ad272c256"); testPost(map); } //车辆事故记录列表 public static void VehicleAccidentList(){ Map map=new HashMap<>(); map.put("url/api", "/api/accident/list-accident/v1"); map.put("~table~", "product_oa_vehicle_accident_record"); map.put("pagesize", "25"); map.put("cpage", "1"); testPost(map); } //车辆事故记录详情 public static void VehicleAccidentInfo(){ Map map=new HashMap<>(); map.put("url/api", "/api/accident/info-accident/v1"); map.put("~table~", "product_oa_vehicle_accident_record"); map.put("uuid", "d964a8b9-35c2-46bd-b17f-c96bf4124361"); testPost(map); } }