package com.ruoyi.cai.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.cai.domain.RechargeOrder;
import com.ruoyi.cai.dto.AddRechargeOrderAdminDto;
import com.ruoyi.cai.dto.app.query.order.AddRechargeOrderDto;
import com.ruoyi.cai.dto.ConsumeResp;
import com.ruoyi.cai.dto.admin.vo.RechargeOrderAdminVo;
import com.ruoyi.cai.pay.PayTypeEnum;
import com.ruoyi.common.core.domain.PageQuery;

import java.util.Map;

/**
 * 充值订单Service接口
 *
 * @author 77
 * @date 2024-01-03
 */
public interface RechargeOrderService extends IService<RechargeOrder> {

    RechargeOrder getByOrderNo(String orderNo);

    Page<RechargeOrderAdminVo> pageAdmin(PageQuery pageQuery, RechargeOrderAdminVo bo);

    RechargeOrder addRechargeOrder(AddRechargeOrderDto addRechargeOrderDto);

    ConsumeResp orderSuccess(String orderNo, Map<String,String> params, String appId, PayTypeEnum payTypeEnum);

    RechargeOrder updateAdminRechargeOrder(AddRechargeOrderAdminDto dto);
}
