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

import com.github.microservice.components.data.mongo.mongo.dao.MongoDao;
import com.zhongshu.card.server.core.dao.devices.extend.PermissSettingListDaoExtend;
import com.zhongshu.card.server.core.domain.devices.permiss.PermissSetting;
import com.zhongshu.card.server.core.domain.devices.permiss.PermissSettingList;

import java.util.List;

/**
 * @author TRX
 * @date 2024/3/21
 */
public interface PermissSettingListDao extends MongoDao<PermissSettingList>, PermissSettingListDaoExtend {

    PermissSettingList findTopById(String id);

    List<PermissSettingList> findByPermissSettingOrderBySortAsc(PermissSetting permissSetting);

    void deleteByPermissSetting(PermissSetting permissSetting);
}
