package com.hotwj.platform.resourceManagement.vehicleInfo.controller;

import cn.dev33.satoken.annotation.SaCheckPermission;
import com.hotwj.platform.resourceManagement.vehicleInfo.domain.bo.VehicleInfoBo;
import com.hotwj.platform.resourceManagement.vehicleInfo.domain.vo.VehicleInfoVo;
import com.hotwj.platform.resourceManagement.vehicleInfo.service.IVehicleInfoService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.RequiredArgsConstructor;
import org.dromara.common.mybatis.core.page.PageQuery;
import org.dromara.common.mybatis.core.page.TableDataInfo;
import org.dromara.common.web.core.BaseController;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Validated
@RequiredArgsConstructor
@RestController
@RequestMapping("/resourceManagement/vehicle-info")
@Tag(name = "车辆信息", description = "政府端车辆信息分页查询")
public class VehicleInfoController extends BaseController {

    private final IVehicleInfoService vehicleInfoService;

    //@SaCheckPermission("resourceManagement:vehicleInfo:list")
    @GetMapping("/page")
    @Operation(summary = "车辆信息分页查询（政府端）")
    public TableDataInfo<VehicleInfoVo> page(PageQuery pageQuery, VehicleInfoBo bo) {
        return vehicleInfoService.queryPageByGovDistrict(pageQuery, bo);
    }
}

