package com.ruoyi.frequency.rechargerecord.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.frequency.rechargerecord.entity.RechargeRecord;
import com.ruoyi.response.ResponseData;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * 充值记录Service接口
 * 
 * @author liwenlong
 * @date 2023-10-25
 */
public interface RechargeRecordService extends IService<RechargeRecord>
{
    /**
     * 查询充值记录
     * 
     * @param id 充值记录主键
     * @return 充值记录
     */
    public RechargeRecord selectRechargeRecordById(Long id);

    /**
     * 查询充值记录列表
     * 
     * @param rechargeRecord 充值记录
     * @return 充值记录集合
     */
    public List<RechargeRecord> selectRechargeRecordList(RechargeRecord rechargeRecord);

    /**
     * 新增充值记录
     * 
     * @param rechargeRecord 充值记录
     * @return 结果
     */
    public int insertRechargeRecord(RechargeRecord rechargeRecord);

    /**
     * 修改充值记录
     * 
     * @param rechargeRecord 充值记录
     * @return 结果
     */
    public int updateRechargeRecord(RechargeRecord rechargeRecord);

    /**
     * 批量删除充值记录
     * 
     * @param ids 需要删除的充值记录主键集合
     * @return 结果
     */
    public int deleteRechargeRecordByIds(Long[] ids);

    /**
     * 删除充值记录信息
     * 
     * @param id 充值记录主键
     * @return 结果
     */
    public int deleteRechargeRecordById(Long id);


    /**
     * 支付宝回调
     * @param request
     * @param response
     * @return
     */
    ResponseData rechargeAliNotify(HttpServletRequest request, HttpServletResponse response);


    /**
     * 微信回调
     * @param request
     * @param response
     * @return
     */
    ResponseData rechargeWxNotify(HttpServletRequest request, HttpServletResponse response);
}
