package com.tanpu.community.service; import com.tanpu.community.dao.entity.user.UserInfoEntity; import com.tanpu.community.dao.mapper.user.UserInfoMapper; import org.springframework.stereotype.Service; import javax.annotation.Resource; import java.util.List; @Service public class UserInfoService { @Resource private UserInfoMapper userInfoMapper;
public UserInfoEntity queryUserById(String userId) {
return userInfoMapper.selectById(userId); }
public List<UserInfoEntity> queryUserByIds(List<String> ids) {
return userInfoMapper.selectBatchIds(ids); } }