2026-08-10 a378f38df1785cbc8c9f1d55ace6a37952d2f65b
yudao-module-system/src/main/java/cn/iocoder/yudao/module/system/api/dept/DeptApiImpl.java
@@ -2,6 +2,7 @@
import cn.iocoder.yudao.framework.common.util.object.BeanUtils;
import cn.iocoder.yudao.module.system.api.dept.dto.DeptRespDTO;
import cn.iocoder.yudao.module.system.controller.admin.dept.vo.dept.DeptListReqVO;
import cn.iocoder.yudao.module.system.dal.dataobject.dept.DeptDO;
import cn.iocoder.yudao.module.system.service.dept.DeptService;
import org.springframework.stereotype.Service;
@@ -13,7 +14,7 @@
/**
 * 部门 API 实现类
 *
 * @author 芋道源码
 * @author 超级管理员
 */
@Service
public class DeptApiImpl implements DeptApi {
@@ -34,6 +35,12 @@
    }
    @Override
    public List<DeptRespDTO> getDeptList() {
        List<DeptDO> depts = deptService.getDeptList(new DeptListReqVO());
        return BeanUtils.toBean(depts, DeptRespDTO.class);
    }
    @Override
    public void validateDeptList(Collection<Long> ids) {
        deptService.validateDeptList(ids);
    }