package com.ruoyi.xq.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.common.core.domain.PageQuery;
import com.ruoyi.xq.domain.User;
import com.ruoyi.xq.domain.WxTransLog;
import com.ruoyi.xq.dto.admin.account.WxTransLogAdminVo;
import com.ruoyi.xq.dto.app.account.WxTransLogListVo;
import com.ruoyi.xq.dto.app.account.WxTransLogQuery;
import com.ruoyi.xq.enums.account.WxTransLogCateEnum;

/**
 * 微信交换记录Service接口
 *
 * @author 77
 * @date 2024-03-25
 */
public interface WxTransLogService extends IService<WxTransLog> {
    Page<WxTransLogListVo> pageApp(PageQuery pageQuery, WxTransLogQuery query);

    Page<WxTransLogAdminVo> pageAdmin(PageQuery pageQuery, WxTransLogAdminVo bo);
    void consumerSaveLog(Long sponsorUserId, String traceId, User receiveUser);

    void saveLog(Long userId, Integer wxTransNum, WxTransLogCateEnum cateEnum, String traceId, String remark);

    void saveLogAdmin(User user, Integer wxTransNum, String traceId);

}
