package com.njcn.device.pq.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.njcn.device.pq.pojo.param.FlowStrategyParam;
import com.njcn.device.pq.pojo.po.FlowStrategy;
import com.njcn.device.pq.pojo.vo.FlowStrategyVO;
import com.njcn.device.pq.pojo.vo.ShowFlowStrategyVO;

import java.util.List;

/**
 * @version 1.0.0
 * @author: chenchao
 * @date: 2022/05/18 10:19
 */
public interface FlowStrategyService  extends IService<FlowStrategy> {

    /**
     * 获取流量策略管理
     */
    List<FlowStrategyVO> getRateOfFlowStrategy();

    /**
     * 新增流量策略
     * @param flowStrategyParam
     * @return
     */
    boolean addRateOfFlowStrategy(FlowStrategyParam flowStrategyParam);
    /**
     * 流量策略数据回显
     * @param id
     * @return
     */
    ShowFlowStrategyVO getFlowStrategyById(String id);
    /**
     * 修改流量策略
     * @param flowStrategyUpdateParam
     * @return
     */
    boolean updateRateOfFlowStrategy(FlowStrategyParam.FlowStrategyUpdateParam flowStrategyUpdateParam);
    /**
     * 删除流量策略
     * @param id
     * @return
     */
    boolean deleteRateOfFlowStrategy(String id);

}
