package com.cyksj.mapper.corp;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cyksj.model.entity.CorpGroupChatMember;
import com.cyksj.model.response.corp.CorpGroupChatMemberObj;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/*
 *项目名: netflix
 *文件名: CorpGroupChatMemberMapper
 *创建者: JavaZou
 *创建时间:2023/8/8 13:45
 */
public interface CorpGroupChatMemberMapper extends BaseMapper<CorpGroupChatMember> {

	void batchInsert(@Param("groupChatId") Long groupChatId, @Param("wxCorpId") Long wxCorpId, @Param("memberList") List<CorpGroupChatMemberObj> memberList);

	List<String> getAllMemberByCorpIdAndChatId(Long groupChatId);

	void batchDeleteByChatIdAndUserId(@Param("groupChatId") Long groupChatId, @Param("delUserIds") List<String> delUserIds);
}
