package com.sptg.estate.biz.service;

import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.IService;
import com.sptg.common.core.beans.ResultBean;
import com.sptg.estate.api.dto.ParkingLotDto;
import com.sptg.estate.api.entity.ParkingLot;
import com.sptg.estate.api.entity.ParkingLot;

public interface ParkingLotServiceInterface extends IService<ParkingLot> {

    /**
     * 查询
     * @param dto
     * @return
     */
    ResultBean<Page<ParkingLot>> page(ParkingLotDto dto);

    /**
     * 新增
     * @param dto
     * @return
     */
    ResultBean<Boolean> add(ParkingLotDto dto);

    /**
     * 修改
     * @param dto
     * @return
     */
    ResultBean<Boolean> edit(ParkingLotDto dto);

    /**
     * 删除
     * @param dto
     * @return
     */
    ResultBean<Boolean> delete(ParkingLotDto dto);

    ParkingLot getById(Long id);
}
