package com.sonic.bear.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.sonic.bear.domain.entity.UserNicknamePool;
import com.sonic.bear.domain.output.NicknameOutput;

import java.util.List;

/**
 * @author coder
 */
public interface UserNicknamePoolService extends IService<UserNicknamePool> {

    /**
     * 同步昵称池
     * @param userId
     * @param userType
     * @param nickname
     * @param optType
     */
    void syncPool(Long userId, Integer userType, String nickname, String optType);

    /**
     * 批量获取昵称池
     * @param userIdList
     */
    List<NicknameOutput> batchGetNickname(List<Long> userIdList);

    /**
     * 校验昵称是否已经存在
     * @param userId
     * @param nickname
     * @return
     */
    boolean existCheck(Long userId, String nickname);

}
