package com.czg.account.service;

import com.czg.account.entity.ShopUserFlow;
import com.czg.account.vo.ShopUserFlowVO;
import com.mybatisflex.core.paginate.Page;
import com.mybatisflex.core.service.IService;
import jakarta.servlet.http.HttpServletResponse;

import java.io.IOException;
import java.math.BigDecimal;

/**
 * 用户余额流水 服务层。
 *
 * @author zs
 * @since 2025-02-13
 */
public interface ShopUserFlowService extends IService<ShopUserFlow> {

   void updateRefund(Long id, BigDecimal refundAmount);

    Page<ShopUserFlowVO> pageInfo(Long shopId, Integer userId, String bizCode, String startTime, String endTime);

    void flowDownload(Long shopId, Integer userId, String bizCode, String startTime, String endTime, HttpServletResponse response) throws IOException;
}
