package com.fdkankan.platform.order.service;

import com.fdkankan.platform.order.entity.CommerceOrder;
import com.baomidou.mybatisplus.extension.service.IService;
import com.fdkankan.platform.order.vo.ResponseCommerceOrder;
import com.fdkankan.platform.user.request.RequestCommerceOrder;

import java.math.BigDecimal;

/**
 * <p>
 * 商业订单表（八目相机） 服务类
 * </p>
 *
 * @author 
 * @since 2021-12-24
 */
public interface ICommerceOrderService extends IService<CommerceOrder> {

    ResponseCommerceOrder saveByOrderParam(Long userId, RequestCommerceOrder param, BigDecimal bigDecimal);

    CommerceOrder getByOrderSn(String orderSn);

    boolean paySuccessCommerceOrder(String orderSn, String tradeNo, int paymentTypeName);
}
