| | |
| | | /** |
| | | * 查询车辆信息列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:vehicle:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(VehicleInfo vehicleInfo) { |
| | | startPage(); |
| | |
| | | /** |
| | | * 导出车辆信息列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:vehicle:export')") |
| | | @Log(title = "车辆信息", businessType = BusinessType.EXPORT) |
| | | @GetMapping("/export") |
| | | public AjaxResult export(VehicleInfo vehicleInfo) { |
| | |
| | | /** |
| | | * 获取车辆信息详细信息 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:vehicle:query')") |
| | | @GetMapping(value = "/{vehicleId}") |
| | | public AjaxResult getInfo(@PathVariable("vehicleId") Long vehicleId) { |
| | | return success(vehicleInfoService.selectVehicleInfoById(vehicleId)); |
| | |
| | | /** |
| | | * 新增车辆信息 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:vehicle:add')") |
| | | @Log(title = "车辆信息", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | public AjaxResult add(@RequestBody VehicleInfo vehicleInfo) { |
| | |
| | | /** |
| | | * 修改车辆信息 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:vehicle:edit')") |
| | | @Log(title = "车辆信息", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | public AjaxResult edit(@RequestBody VehicleInfo vehicleInfo) { |
| | |
| | | /** |
| | | * 删除车辆信息 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:vehicle:remove')") |
| | | @Log(title = "车辆信息", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{vehicleIds}") |
| | | public AjaxResult remove(@PathVariable Long[] vehicleIds) { |