package com.yc.ship.module.product.service.productRefundRule;


import com.yc.ship.framework.common.pojo.PageResult;
import com.yc.ship.module.product.controller.admin.productSpu.refundRuleVO.ProductRefundRulePageReqVO;
import com.yc.ship.module.product.controller.admin.productSpu.refundRuleVO.ProductRefundRuleSaveReqVO;
import com.yc.ship.module.product.dal.dataobject.productRefundRule.ProductRefundRuleDO;

import javax.validation.Valid;

/**
 * 产品退款规则 Service 接口
 *
 * @author 管理员
 */
public interface ProductRefundRuleService {

    /**
     * 创建产品退款规则
     *
     * @param createReqVO 创建信息
     * @return 编号
     */
    Long createRefundRule(@Valid ProductRefundRuleSaveReqVO createReqVO);

    /**
     * 更新产品退款规则
     *
     * @param updateReqVO 更新信息
     */
    void updateRefundRule(@Valid ProductRefundRuleSaveReqVO updateReqVO);

    /**
     * 删除产品退款规则
     *
     * @param id 编号
     */
    void deleteRefundRule(Long id);

    /**
     * 获得产品退款规则
     *
     * @param id 编号
     * @return 产品退款规则
     */
    ProductRefundRuleDO getRefundRule(Long id);

    /**
     * 获得产品退款规则分页
     *
     * @param pageReqVO 分页查询
     * @return 产品退款规则分页
     */
    PageResult<ProductRefundRuleDO> getRefundRulePage(ProductRefundRulePageReqVO pageReqVO);

}