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

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yuchen.saas.park.api.dto.elevator.ElevatorPersonDTO;
import com.yuchen.saas.park.api.dto.elevator.ElevatorPersonGroupDTO;
import com.yuchen.saas.park.api.entity.elevator.SaasParkElevatorPermissionPersonGroup;
import com.yuchen.saas.park.api.request.ElevatorPersonGroupRequest;
import com.yuchen.saas.park.api.request.ElevatorPersonRequest;
import com.yuchen.saas.park.api.vo.elevator.ElevatorPersonGroupVO;
import com.yuchen.saas.park.api.vo.elevator.ElevatorPersonVO;
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 ISaasParkElevatorPermissionPersonGroupService extends IService<SaasParkElevatorPermissionPersonGroup> {



    /**
     * 分页 人员分组
     * @param query
     * @param req
     * @return
     */
    R<IPage<ElevatorPersonGroupVO>> list(ElevatorPersonGroupRequest req, Query query);


    /**
     * 人员分组 新增或修改
     * @param elevatorPersonGroupDTO
     * @return
     */
    boolean saveOrUpdateByParam(ElevatorPersonGroupDTO elevatorPersonGroupDTO);
}
