package com.sckw.operation.service;

import com.sckw.core.model.constant.Global;
import com.sckw.core.model.enums.CooperateTypeEnum;
import com.sckw.system.api.RemoteSystemService;

import com.sckw.system.api.model.dto.res.EntCacheResDto;
import com.sckw.system.api.model.dto.res.SysDictResDto;
import com.sckw.system.api.model.dto.res.UserCacheResDto;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.*;
import java.util.stream.Collectors;

/**
 * @author sky
 * @desc 公共
 * @date 2023/7/12
 */
@Service
public class CommonBusinessService {

    @DubboReference(version = "1.0.0", group = "design", check = false)
    private RemoteSystemService remoteSystemService;




    /**
     * @param userIds 用户id
     * @return UserCacheResDto
     * @desc: 查用户信息
     * @author: czh
     * @date: 2023/7/12
     */
    public Map<Long, UserCacheResDto> queryUserCacheMapByIds(List<Long> userIds){
        return remoteSystemService.queryUserCacheMapByIds(userIds);
    }

}
