LiveService.java 1.97 KB
package com.cnlive.shenhe.service;

import com.cnlive.shenhe.bean.ResponseBean;
import com.cnlive.shenhe.dto.LiveDTO;
import com.cnlive.shenhe.entity.ShyLive;
import com.github.pagehelper.PageInfo;

import java.util.List;

/**
 * @Author: yan-zhao-wang
 * @DateTime: 2022-11-02 14:25
 */
public interface LiveService {
    /**
     * 直播导入
     *
     * @param shyLive
     * @return
     */
    boolean impotVideo(ShyLive shyLive);

    /**
     * 根据id查询  返回直播对象
     *
     * @param id
     * @return
     */
    ShyLive selectByPrimaryKey(Integer id);

    /**
     * 根据条件查询  返回直播对象集合
     *
     * @param shyLive
     * @return
     */
    List<ShyLive> findShyLive(ShyLive shyLive);

    /**
     * 修改直播对象 返回boolean类型
     *
     * @param shyLive
     * @return
     */
    boolean updateShyLive(ShyLive shyLive);

    /**
     * 根据id查询,修改对象的关键信息 返回int类型
     *
     * @param id
     * @param auditorId
     * @param updater
     * @param activityStatus
     * @param msg
     * @return
     */
    int updateLive(Integer id, String auditorId, String updater, Integer activityStatus, String msg);

    /**
     * 分页、条件查询、返回分页结果集合
     *
     * @param liveDTO
     * @return
     */
    PageInfo<ShyLive> getListLive(LiveDTO liveDTO);

    /**
     * 根据id获取直播详情信息
     *
     * @param id
     * @return
     */
    ShyLive getDetailsLive(Integer id);

    /**
     * 认领
     *
     * @param ids
     * @param num
     * @param userId
     * @param spid
     * @return
     */
    Integer receive(String ids, Integer num, String userId, Integer spid);

    /**
     * 退领
     *
     * @param ids
     * @param userId
     * @return
     */
    ResponseBean retReceive(String ids, String userId);

    /**
     * 根据条件导出数据excel
     *
     * @param liveDTO
     * @return
     */
    List<ShyLive> findByCondition(LiveDTO liveDTO);
}