package com.ruoyi.ss.channel.mapper;

import com.ruoyi.ss.channel.domain.Channel;
import com.ruoyi.ss.channel.domain.ChannelQuery;
import com.ruoyi.ss.channel.domain.ChannelVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 充值渠道Mapper接口
 *
 * @author ruoyi
 * @date 2024-04-15
 */
public interface ChannelMapper
{
    /**
     * 查询充值渠道
     *
     * @param channelId 充值渠道主键
     * @return 充值渠道
     */
    public ChannelVO selectSmChannelByChannelId(Long channelId);

    /**
     * 查询充值渠道列表
     *
     * @param smChannel 充值渠道
     * @return 充值渠道集合
     */
    public List<ChannelVO> selectSmChannelList(@Param("query") ChannelQuery smChannel);

    /**
     * 新增充值渠道
     *
     * @param channel 充值渠道
     * @return 结果
     */
    public int insertSmChannel(Channel channel);

    /**
     * 修改充值渠道
     *
     * @param channel 充值渠道
     * @return 结果
     */
    public int updateSmChannel(@Param("data") Channel channel);

    /**
     * 删除充值渠道
     *
     * @param channelId 充值渠道主键
     * @return 结果
     */
    public int deleteSmChannelByChannelId(Long channelId);

    /**
     * 批量删除充值渠道
     *
     * @param channelIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteSmChannelByChannelIds(Long[] channelIds);
}
