package com.xxfc.platform.universal.controller;

import com.github.wxiaoqi.security.common.msg.ObjectRestResponse;
import com.xxfc.platform.universal.dto.VehicleViolateDto;
import com.xxfc.platform.universal.service.VehicleViolateService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName : VehicleViolateController
 * @Description : 车辆违章查询
 * @Author : jiaoruizhen
 * @Date: 2020-11-19 11:14
 */
@RestController
@RequestMapping(value = "/violate")
public class VehicleViolateController {

	@Autowired
	VehicleViolateService vehicleViolateService;

	@PostMapping(value = "get")
	public ObjectRestResponse getVehicleViolate(@RequestBody VehicleViolateDto vehicleViolateDto) {
		return vehicleViolateService.getRequest2(vehicleViolateDto);
	}

}
