package edu.whut.api;

import edu.whut.api.dto.LockMarketPayOrderRequestDTO;
import edu.whut.api.dto.LockMarketPayOrderResponseDTO;
import edu.whut.api.dto.SettlementMarketPayOrderRequestDTO;
import edu.whut.api.dto.SettlementMarketPayOrderResponseDTO;
import edu.whut.api.response.Response;

/**
 * 营销交易服务接口
 */
public interface IMarketTradeService {

    /**
     * 拼团交易锁单
     * @param lockMarketPayOrderRequestDTO
     * @return
     */
    Response<LockMarketPayOrderResponseDTO> lockMarketPayOrder(LockMarketPayOrderRequestDTO lockMarketPayOrderRequestDTO);

    /**
     * 营销结算
     *
     * @param requestDTO 结算商品信息
     * @return 结算结果信息
     */
    Response<SettlementMarketPayOrderResponseDTO> settlementMarketPayOrder(SettlementMarketPayOrderRequestDTO requestDTO);


}
