package cn.fateverse.admin.dubbo;

import cn.fateverse.admin.facade.DeptFacade;
import cn.fateverse.admin.vo.DeptVo;
import lombok.RequiredArgsConstructor;
import org.apache.dubbo.config.annotation.DubboService;

import java.util.List;

/**
 * @author Clay
 * @date 2023-02-20
 */
@DubboService
@RequiredArgsConstructor
public class DubboDeptServiceImpl implements DubboDeptService {


    private final DeptFacade deptFacade;


    @Override
    public List<DeptVo> searchDeptByDeptId(List<Long> deptIds) {
        return deptFacade.searchByIds(deptIds);
    }
}
