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

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yuchen.saas.park.api.entity.park.PmgBatParkManage;
import com.yuchen.saas.park.api.vo.park.PmgBatParkManageVo;
import org.nest.springwrap.core.datascope.annotation.DataAuth;
import org.nest.springwrap.core.datascope.enums.DataScopeEnum;

import java.util.List;

/**
 * @author 刘通
 * @date 2020/12/11 17:27
 */
public interface PmgBatParkManageMapper extends BaseMapper<PmgBatParkManage> {
    @DataAuth(type = DataScopeEnum.OWN_DEPT_CHILD)
    List<PmgBatParkManageVo> getManageList(Long parentId);
    @DataAuth(type = DataScopeEnum.OWN_DEPT_CHILD)
    PmgBatParkManageVo getDetail(Long id);
}
