package com.wuban.tron.explore.dao;

import com.wuban.tron.explore.entity.TransactionHex;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <core>区块hex DAO</core>
 *
 * @author sky
 * @date 2020/11/02
 */
@Repository
public interface TransactionHexRepository {

    /**
     * 添加记录
     * @param record
     * @return
     */
    int insert(@Param("record") TransactionHex record);

    /**
     * 批量添加
     *
     * @param records
     * @return
     */
    int batchInsert(@Param("records") List<TransactionHex> records);

}
