package com.fdkankan.platform.order.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.fdkankan.platform.order.entity.ExpansionOrder;
import com.fdkankan.platform.order.vo.ResponseExpansionOrder;
import com.fdkankan.platform.user.request.RequestCamera;
import com.fdkankan.platform.user.request.RequestExpansionOrder;

import java.math.BigDecimal;

/**
 * <p>
 * 扩容订单表（八目相机） 服务类
 * </p>
 *
 * @author 
 * @since 2021-12-24
 */
public interface IExpansionOrderService extends IService<ExpansionOrder> {

    ResponseExpansionOrder saveByOrderParam(Long userId, RequestExpansionOrder order, BigDecimal bigDecimal, String unit, int unitSize, int month, int delay);

    Page<ResponseExpansionOrder> getExpansionListByParam(RequestCamera param);

    ExpansionOrder getByOrderSn(String orderSn);

    boolean paySuccessExpansionOrder(String orderSn, String tradeNo, int paymentTypeName, int status);
}
