package com.YuyeTech.TPlat.service;

import com.YuyeTech.TPlat.dataobject.Pictures;
import com.YuyeTech.TPlat.dto.UserDTO;
import com.YuyeTech.TPlat.dataobject.UserInfo;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

/**
 * @author:slambb
 * @date:2019/12/5
 */
public interface UserInfoService {

//    UserInfo

    UserInfo findUserInfoById(String userId,Boolean bDomain);

    UserInfo addUserInfo(UserInfo userInfo);

    String deleteUserInfoById(String userId);

    /**
     * 获取默认头像
     * @return
     */
    List<Pictures> getDefaultAvatar();


    /**
     * 获取用户列表
     * @return
     */
    List<UserDTO> findUserInfoListByIDs(List<String> userIdList);


    /**
     * 分页查询用户信息
     * @param pageable
     * @return
     */
    Page<UserDTO> findAllByPageable(Pageable pageable);

    /**
     * 分页查询用户信息
     * @param pageable
     * @return
     */
    Page<UserInfo> findAllUserInfoByPageable(Pageable pageable);

    /**
     * 根据用户名模糊查询
     * @param pageable
     * @param username
     * @return
     */
    Page<UserInfo> searchByUsername(Pageable pageable,String username);
}
