package com.pqs9900.mapper.terminal;

import com.pqs9900.pojo.terminal.FlowStrategyBindDTO;
import com.pqs9900.pojo.terminal.FlowStrategyVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Description 流量策略
 * @Author cdf
 * @Date 2020/8/10 14:58
 **/
public interface FlowStrategyMapper {

    /**
    * @Author chendaofei
    * @Description  新增流量策略字典
    * @Date 15:35 2020/8/10
    **/
    Integer addFsdic(@Param("fsdIndex")String fsdIndex,@Param("percent")Integer percent,@Param("type")Integer type);

    /**
     * @Author chendaofei
     * @Description  修改流量策略字典
     * @Date 15:35 2020/8/10
     **/
    Integer updateFsdic(@Param("fsdIndex")String fsdIndex,@Param("percent")Integer percent,@Param("type")Integer type);

    /**
     * @Author chendaofei
     * @Description  删除流量策略字典
     * @Date 15:35 2020/8/10
     **/
    Integer delFsdic(@Param("fsdIndex") String fsdIndex);



    /**
     * @Author chendaofei
     * @Description  新增流量策略
     * @Date 15:35 2020/8/10
     **/
    Integer addStrategy(FlowStrategyVO flowStrategyVO);

    /**
     * @Author chendaofei
     * @Description  修改流量策略
     * @Date 15:35 2020/8/10
     **/
    Integer updateStrategy(FlowStrategyVO flowStrategyVO);

    /**
     * @Author chendaofei
     * @Description  修改流量策略
     * @Date 15:35 2020/8/10
     **/
    Integer delStrategy(@Param("fsIndex") String fsIndex);

    /**
     * @Author chendaofei
     * @Description  获取流量策略列表
     * @Date 15:35 2020/8/10
     **/
    List<FlowStrategyVO> getStrategyList(@Param("name")String name,@Param("type")Integer type,@Param("fsIndex")String fsIndex);

    /**
     * @Author chendaofei
     * @Description  获取流量策略
     * @Date 15:35 2020/8/10
     **/
    FlowStrategyVO getStrategy(@Param("fsIndex")String fsIndex);

    /**
     * @Author chendaofei
     * @Description  新增流量策略字典绑定类型
     * @Date 15:35 2020/8/10
     **/
    Integer addFun(@Param("list") List<FlowStrategyBindDTO> list);

    /**
     * @Author chendaofei
     * @Description  删除流量策略字典绑定类型
     * @Date 15:35 2020/8/10
     **/
    Integer delFun(@Param("fsdIndex")String fsdIndex);

    /**
    * @Author chendaofei
    * @Description
    * @Date 16:57 2020/8/20
    **/
    List<String> getFun(@Param("fsdIndex")String fsdIndex);



}
