package com.zhongshu.card.server.core.dao.devices;

import com.github.microservice.components.data.mongo.mongo.dao.MongoDao;
import com.zhongshu.card.client.type.DataState;
import com.zhongshu.card.client.type.device.TimeSlotType;
import com.zhongshu.card.server.core.dao.devices.extend.PermissTimeSlotDaoExtend;
import com.zhongshu.card.server.core.domain.devices.permiss.PermissTimeSlot;

import java.util.List;

/**
 * 权限时间段数据
 *
 * @author TRX
 * @date 2024/3/21
 */
public interface PermissTimeSlotDao extends MongoDao<PermissTimeSlot>, PermissTimeSlotDaoExtend {

    PermissTimeSlot findTopById(String id);

    List<PermissTimeSlot> findByProjectOidAndStateAndType(String projectOid, DataState state, TimeSlotType type);
}
