package com.gic.haoban.manage.service.dao.mapper.chat;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.gic.haoban.manage.api.dto.chat.GroupChatOwnerHistoryDTO;
import com.gic.haoban.manage.service.entity.chat.TabGroupChatOwnerHistory;

/**
 * 
 * @ClassName: TabHaobanGroupChatOwnerHistoryMapper
 * @Description: TODO
 * @Author 徐高华
 * @Date 2022年12月06日 13:19:52
 * @Modify
 * @CopyRight 
 */
public interface GroupChatOwnerHistoryMapper {

    public int insert(TabGroupChatOwnerHistory entity);
    
    public TabGroupChatOwnerHistory getGroupChatNowStaff(@Param("groupChatId") Long groupChatId, @Param("staffId") String staffId) ;

    public int updateOwnerEnd(@Param("groupChatId") Long groupChatId, @Param("staffId") String staffId);

    public List<GroupChatOwnerHistoryDTO> listAll(@Param("groupChatId")Long groupChatId,@Param("wxEnterpriseId") String wxEnterpriseId);

}