package com.red.circle.other.app.inner.service.user.user.impl;

import com.red.circle.other.infra.database.mongo.service.user.count.UserGuardCountService;
import com.red.circle.other.app.inner.service.user.user.UserGuardCountClientService;
import java.util.List;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

/**
 * 守护贡献.
 *
 * @author pengliang on 2023/10/17
 */
@Service
@RequiredArgsConstructor
public class UserGuardCountClientServiceImpl implements UserGuardCountClientService {

  private final UserGuardCountService userGuardCountService;

  @Override
  public void incrLasts15Days(Long userId, Long guardUserId, Long quantity) {
    userGuardCountService.incrLasts15Days(userId, guardUserId, quantity);
  }

  @Override
  public void incrLasts15Days(Long userId, List<Long> guardUserIds, Long quantity) {
    userGuardCountService.incrLasts15Days(userId, guardUserIds, quantity);
  }

}
