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

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yuchen.saas.park.api.dto.elevator.PermissionDTO;
import com.yuchen.saas.park.api.dto.elevator.SaasParkElevatorPermissionElevatorGroupDTO;
import com.yuchen.saas.park.api.entity.elevator.SaasParkElevatorPermissionElevatorGroup;
import com.yuchen.saas.park.api.request.ElevatorPointGroupReq;
import com.yuchen.saas.park.api.request.ElevatorTreeRequest;
import com.yuchen.saas.park.api.vo.elevator.ElevatorPointGroupVO;
import com.yuchen.saas.park.api.vo.pldoor.PlDoorPointGroupVO;
import com.yuchen.saas.park.api.vo.request.PlDoorPointGroupReq;
import org.nest.springwrap.core.mp.support.Query;
import org.nest.springwrap.core.tool.api.R;

/**
 * <p>
 * 梯控分组 服务类
 * </p>
 *
 * @author baichaojie
 * @since 2024-07-08
 */
public interface ISaasParkElevatorPermissionElevatorGroupService extends IService<SaasParkElevatorPermissionElevatorGroup> {

    /***
     * 分页 梯控分组
     * @param page
     * @param req
     * @return
     */
    IPage<ElevatorPointGroupVO> pageByParam(Page<ElevatorPointGroupReq> page, ElevatorPointGroupReq req);

    /**
     * 梯控分组设备树
     * @param page
     * @param req
     * @return
     */
    IPage<PermissionDTO> tree(Page<ElevatorTreeRequest> page, ElevatorTreeRequest req);

    /**
     * 电梯分组 新增/修改
     * @param saasParkElevatorPermissionElevatorGroupDTO
     * @return
     */
    boolean saveOrUpdateByParam(SaasParkElevatorPermissionElevatorGroupDTO saasParkElevatorPermissionElevatorGroupDTO);

    /**
     * 电梯分组详情
     * @param id
     * @return
     */
    ElevatorPointGroupVO detailById(Long id);

    /**
     * 根据主表id删除电梯分组
     * @param id
     * @return
     * @throws Exception
     */
    boolean deleteById(Long id) throws Exception;






}
