package com.yuchen.saas.park.service.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.yuchen.saas.park.api.entity.park.ParkingSpaceEntity;
import com.yuchen.saas.park.api.request.ParkingSpaceRequest;
import com.yuchen.saas.park.api.response.ParkingSpaceResponse;
import com.yuchen.saas.park.api.response.SpaceStaticResponse;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @author 肖祥
 * @create 2022/11/29 14:42
 */
@Mapper
public interface ParkingSpaceMapper extends BaseMapper<ParkingSpaceEntity> {
    IPage<ParkingSpaceResponse> listPage(IPage<ParkingSpaceResponse> iPage, @Param("space") ParkingSpaceRequest parkingSpaceRequest,
                                         String tenantId, Long parkId);

    SpaceStaticResponse spaceStatics(@Param("space") ParkingSpaceRequest parkingSpaceRequest);
}
