package com.usky.vpp.service;

import com.usky.common.core.bean.CommonPage;
import com.usky.vpp.service.vo.ResponseDeviationPriceAdjustmentRequest;
import com.usky.vpp.service.vo.ResponseDeviationPriceAdjustmentVO;

import java.math.BigDecimal;

/**
 * 响应量偏差价格调整配置服务。
 */
public interface VppResponseDeviationPriceService {

    /**
     * 分页查询。completionRate 非空时按结构化区间匹配命中配置。
     */
    CommonPage<ResponseDeviationPriceAdjustmentVO> page(BigDecimal completionRate, Integer current, Integer size);

    ResponseDeviationPriceAdjustmentVO get(Long id);

    Long create(ResponseDeviationPriceAdjustmentRequest request);

    void update(Long id, ResponseDeviationPriceAdjustmentRequest request);

    void delete(Long id);
}
