package com.qnfhq.modules.c2c.service;

import com.qnfhq.common.service.CrudService;
import com.qnfhq.modules.c2c.dto.AppAssetLogDTO;
import com.qnfhq.modules.c2c.entity.AppAssetLogEntity;

import java.math.BigDecimal;

/**
 * c2c用户资产变动日志
 *
 * @author yelz 30262728@qq.com
 * @since 1.0.0 2025-11-19
 */
public interface AppAssetLogService extends CrudService<AppAssetLogEntity, AppAssetLogDTO> {

    /**
     * 插入资产日志
     * @param orderId
     * @param userId
     * @param symbol
     * @param type
     * @param beforeAmount
     * @param afterAmount
     * @param beforeAvail
     * @param afterAvail
     * @param beforeFrozen
     * @param afterFrozen
     * @param remark
     * @return
     */
    boolean insertAssetLog(Long orderId, Long userId, String symbol, Integer type,
                           BigDecimal beforeAmount, BigDecimal afterAmount,
                           BigDecimal beforeAvail, BigDecimal afterAvail,
                           BigDecimal beforeFrozen, BigDecimal afterFrozen,
                           String remark);
}