package com.platform.modules.live.dao;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.platform.modules.foreign.entity.SceneStreamForeignEntity;
import com.platform.modules.live.entity.LiveSceneLiveInfoEntity;
import com.platform.modules.live.vo.LiveInfoVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 现场直播信息表
 * 
 * @author TROY
 * @email 
 * @date 2019-01-19 14:50:50
 */
@Mapper
public interface LiveSceneLiveInfoDao extends BaseMapper<LiveSceneLiveInfoEntity> {

	void save(LiveSceneLiveInfoEntity liveSceneLiveInfo);

	List<SceneStreamForeignEntity> selectLiveInfoForeign(@Param("sceneId") Integer sceneId);

    List<LiveInfoVo> selectOnlineLiveStreamList(@Param("sceneId") Integer sceneId, @Param("pushState") Integer pushState);

	List<LiveSceneLiveInfoEntity> selectLiveInfoByInfoType(@Param("sceneId") Integer sceneId, @Param("infoType") Integer infoType);
}
