package com.cyksj.service.advertisement;

import com.baomidou.mybatisplus.extension.service.IService;
import com.cyksj.model.dto.H5JsPayParams;
import com.cyksj.model.entity.AdvertisementOrderDon;
import com.cyksj.model.entity.AdvertisementUser;
import com.cyksj.model.views.PaySuccessViews;

import java.math.BigDecimal;
import java.util.Map;

/**
 * @author chan
 * @date 2023/5/16 11:07 AM
 */
public interface AdvertisementOrderDonService extends IService<AdvertisementOrderDon> {
    H5JsPayParams pay(Long popularizeId, BigDecimal money, String appId, AdvertisementUser user, AdvertisementOrderDon.Source source, String callback, String callbackType) throws Exception;

    void prepayNotify(Map<String, String> map) throws Exception;

    PaySuccessViews isPay(Long orderId);

}
