package com.bonus.canteen.core.account.service;

import com.bonus.canteen.core.account.constants.AccTradeTypeEnum;
import com.bonus.canteen.core.account.domain.AccountTrade;
import com.bonus.canteen.core.account.domain.bo.TradeAndWalletInfo;
import com.bonus.canteen.core.account.domain.param.AccConsumeDetailQueryParam;
import com.bonus.canteen.core.account.domain.param.AccWalletOperationQueryParam;
import com.bonus.canteen.core.account.domain.vo.AccConsumeDetailVO;
import com.bonus.canteen.core.account.domain.vo.AccOperationListVO;
import com.bonus.canteen.core.account.domain.vo.AccTradeVo;

import java.util.List;

/**
 * 账户交易记录Service接口
 * 
 * @author xsheng
 * @date 2025-04-05
 */
public interface IAccTradeService {
    /**
     * 查询账户交易记录
     * 
     * @param tradeId 账户交易记录主键
     * @return 账户交易记录
     */
    public AccountTrade selectAccTradeByTradeId(Long tradeId);

    public List<AccountTrade> selectAccTradeByOrderNo(Long orderNo);

    /**
     * 查询账户交易记录列表
     * 
     * @param accountTrade 账户交易记录
     * @return 账户交易记录集合
     */
    public List<AccountTrade> selectAccTradeList(AccountTrade accountTrade);

    /**
     * 新增账户交易记录
     * 
     * @param accountTrade 账户交易记录
     * @return 结果
     */
    public int insertAccTrade(AccountTrade accountTrade);

    public int insertAccTradeVo(AccTradeVo accTrade);

    /**
     * 修改账户交易记录
     * 
     * @param accountTrade 账户交易记录
     * @return 结果
     */
    public int updateAccTrade(AccountTrade accountTrade);

    public int updateAccTradeVoByOrderNo(AccTradeVo accTrade);

    /**
     * 批量删除账户交易记录
     * 
     * @param tradeIds 需要删除的账户交易记录主键集合
     * @return 结果
     */
    public int deleteAccTradeByTradeIds(Long[] tradeIds);

    /**
     * 删除账户交易记录信息
     * 
     * @param tradeId 账户交易记录主键
     * @return 结果
     */
    public int deleteAccTradeByTradeId(Long tradeId);

    List<AccOperationListVO> queryAccOperationList(AccWalletOperationQueryParam param);

    List<TradeAndWalletInfo> queryTradeAndWallerInfoByOrderNo(String orderNo, AccTradeTypeEnum accTradeTypeEnum);

    List<AccConsumeDetailVO> queryAccConsumeDetail(AccConsumeDetailQueryParam param);
}
