package com.yami.shop.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yami.shop.bean.model.Channel;
import com.yami.shop.bean.vo.ChannelVO;
import com.yami.shop.bean.vo.IdNameVo;
import com.yami.shop.common.util.PageParam;

import java.util.List;

/**
 * 渠道管理服务接口
 * @author fbj 2024/01/01.
 */
public interface ChannelService extends IService<Channel> {

    /**
     * 渠道统计分页
     * @param pageParam 分页参数
     * @param channel 渠道参数
     * @return 渠道统计分页数据
     */
    IPage<ChannelVO> statisticsPage(PageParam pageParam, Channel channel);

    List<IdNameVo> queryMyChannel(Long userId);

    /**
     * 根据规则清除渠道拆单配置
     */
    void updateSplitRule(Integer splitRule );
}

