/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.ifish.helper;

import com.ifish.bean.Tbl_Live_Message;
import com.ifish.bean.Tbl_Live_Room;
import com.ifish.controller.LiveRoom;
import org.springframework.web.multipart.MultipartFile;

/**
 *
 * @author Administrator
 */
public interface LiveRoomHelperI {

    /**
     * 新增直播间
     *
     * @param fileUpload
     * @param liveRoom
     */
    Object addLiveRoom(MultipartFile fileUpload, Tbl_Live_Room liveRoom);

    /**
     * 直播间点赞
     *
     * @param roomId
     * @param userId
     * @return
     */
    Object liveRoomsZan(Integer roomId, Integer userId);

    /**
     * 直播间留言
     *
     * @param liveMessage
     * @return
     */
    Object leaveMessage(Tbl_Live_Message liveMessage);

    /**
     * 根据直播间ID获取直播间评论列表
     *
     * @param roomId
     * @return
     */
    Object getLeaveMessage(Integer firstResult, Integer pageSize, Integer roomId);

    /**
     * 根据用户ID获取直播间信息
     *
     * @param userId
     * @return
     */
    Object getLiveRoomInfo(Integer rommId);

    /**
     * 根据条件查询直播间列表
     *
     * @param firstResult
     * @param pageSize
     * @param userId
     * @param orders
     * @return
     */
    Object getLiveRooms(Integer firstResult, Integer pageSize, String orders);

    /**
     * 修改直播间
     *
     * @param fileUpload
     * @param liveRoom
     * @return
     */
    Object updateLiveRoom(MultipartFile fileUpload, Tbl_Live_Room liveRoom);

    /**
     * 直播间人气值加1
     *
     * @param roomId
     * @param userId
     * @return
     */
    Object popularityValue(Integer roomId, Integer userId);
}
