package com.jeesharp.business.modules.mall.service;

import com.jeesharp.business.modules.mall.entity.MallBargainHelp;
import com.jeesharp.business.modules.mall.vo.MallBargainHelpInfoVO;
import com.jeesharp.business.modules.mall.vo.MallBargainHelpListVO;
import com.jeesharp.business.modules.mall.vo.MallBargainHelpQueryVO;
import com.jeesharp.framework.pojo.Page;
import com.jeesharp.framework.pojo.query.PageRespVO;
import com.jeesharp.framework.mybatis.core.service.BaseInterface;

import java.math.BigDecimal;
import java.util.List;

/**
 * 砍价助力 Service 接口
 */
public interface MallBargainHelpService extends BaseInterface<MallBargainHelp, MallBargainHelpQueryVO> {

    void createHelp(MallBargainHelp entity);

    void updateHelp(MallBargainHelp entity);
BigDecimal helpBargain(String recordId, String memberId, Integer helpType);

    List<MallBargainHelpInfoVO> getBargainHelps(String recordId);

    PageRespVO<MallBargainHelpListVO> findHelpPage(Page<MallBargainHelp> page, MallBargainHelpQueryVO query);
}
