ChannelService.java 1.68 KB
package com.cnlive.shenhe.service;

import com.cnlive.shenhe.dto.ChannelDTO;
import com.cnlive.shenhe.entity.ShyChannel;
import com.github.pagehelper.PageInfo;

import java.util.List;

/**
 * @Author: yan-zhao-wang
 * @DateTime: 2022-10-31 9:53
 */
public interface ChannelService {
    /**
     * 根据条件查询频道集合
     *
     * @param shyChannel
     * @return
     */
    List<ShyChannel> findshyChannel(ShyChannel shyChannel);

    /**
     * 修改频道 返回布尔类型
     *
     * @param shyChannel
     * @return
     */
    boolean updateshyChannel(ShyChannel shyChannel);

    /**
     * 导入频道 返回布尔类型
     *
     * @param shyChannel
     * @return
     */
    boolean impotChannel(ShyChannel shyChannel);

    /**
     * 获取分页、条件查询结果集
     *
     * @param channelDTO
     * @return
     */
    PageInfo<ShyChannel> getPage(ChannelDTO channelDTO);

    /**
     * 获取频道详情
     *
     * @param id
     * @return
     */
    ShyChannel getDetailsChannel(Integer id);

    /**
     * 修改频道状态
     *
     * @param ids
     * @param state
     * @param userId
     * @param updater
     * @param msg
     * @return
     */
    boolean updateState(String ids, Integer state, String userId, String updater, String msg);

    /**
     * 根据主键查询频道对象
     *
     * @param id
     * @return
     */
    ShyChannel selectByPrimaryKey(Integer id);

    /**
     * 根据主键修改频道对象
     *
     * @param channel
     * @return
     */
    int updateByPrimaryKeySelective(ShyChannel channel);

    /**
     * 获得审核类型
     *
     * @param shyChannel
     */
    void getShenheType(ShyChannel shyChannel);
}