package com.zcloud.personnel.positioning.service;

import com.alibaba.cola.dto.PageResponse;
import com.zcloud.personnel.positioning.api.PositionVehicleServiceI;
import com.zcloud.personnel.positioning.dto.PositionVehiclePageQry;
import com.zcloud.personnel.positioning.dto.clientobject.OptionCO;
import com.zcloud.personnel.positioning.dto.clientobject.PositionVehicleCO;
import org.springframework.stereotype.Service;

import java.util.Collections;
import java.util.List;

@Service
public class PositionVehicleServiceImpl implements PositionVehicleServiceI {
    @Override
    public PageResponse<PositionVehicleCO> list(PositionVehiclePageQry qry) {
        PositionVehiclePageQry query = qry == null ? new PositionVehiclePageQry() : qry;
        int pageIndex = Math.max(query.getPageIndex(), 1);
        int pageSize = Math.max(query.getPageSize(), 1);
        return PageResponse.of(Collections.emptyList(), 0, pageSize, pageIndex);
    }

    @Override
    public List<OptionCO> listCompanyOptions(String keyword) {
        return Collections.emptyList();
    }

    @Override
    public PositionVehicleCO queryById(Long vehicleId) {
        return null;
    }
}
