package com.qnfhq.modules.user.dao;

import com.qnfhq.common.dao.BaseDao;
import com.qnfhq.modules.user.entity.AppAssetEntity;
import org.apache.ibatis.annotations.Mapper;

import java.util.Map;

/**
 * 玩家资产表
 *
 * @author yelz 30262728@qq.com
 * @since 1.0.0 2025-11-13
 */
@Mapper
public interface AppAssetDao extends BaseDao<AppAssetEntity> {

    /**
     * 冻结资产
     * @param params
     * @return
     */
    int frozeAssetByUserId(Map<String,Object> params);

    /**
     * 解冻资产
     * @param params
     * @return
     */
    int unblockAssetByUserId(Map<String, Object> params);

    /**
     * c2c买币 增加资产
     * @param params
     * @return
     */
    int addAssetByUserId(Map<String, Object> params);

    /**
     * C2C卖家放币 减少资产
     * @param params
     * @return
     */
    int releaseAssetByUserId(Map<String, Object> params);
}