class DepartmentManagementImpl implements DepartmentManagementService {

    @Override
    public CommonResult listAllDepartments() {
        List<Department> list = departmentMapper.list();
        return CommonResult.success(list);
    }

}