package com.red.circle.wallet.infra.database.mongo.service.log.impl;

import com.red.circle.wallet.infra.database.mongo.entity.log.LogSyncCacheDbBalance;
import com.red.circle.wallet.infra.database.mongo.service.log.LogSyncCacheDbBalanceService;
import lombok.RequiredArgsConstructor;
import org.springframework.data.mongodb.core.MongoTemplate;
import org.springframework.stereotype.Service;

/**
 * 同步缓存db日志 服务实现.
 *
 * @author pengliang on 2023/9/18
 */
@Service
@RequiredArgsConstructor
public class LogSyncCacheDbBalanceServiceImpl implements LogSyncCacheDbBalanceService {

  private final MongoTemplate mongoTemplate;

  @Override
  public void add(LogSyncCacheDbBalance log) {
    mongoTemplate.save(log);
  }

}

