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

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yuchen.saas.park.api.entity.park.PmgBatWarningLevel;
import org.nest.springwrap.core.datascope.annotation.DataAuth;
import org.nest.springwrap.core.datascope.enums.DataScopeEnum;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 */
@Repository
public interface WarningLevelMapper extends BaseMapper<PmgBatWarningLevel> {

    @DataAuth(type = DataScopeEnum.OWN_DEPT_CHILD)
    List<PmgBatWarningLevel> getAllLevel();

}
