package com.caliverse.admin.scheduler.batch.service.impl;

import com.caliverse.admin.dynamodb.service.DynamodbBattleEventService;
import com.caliverse.admin.dynamodb.service.DynamodbMailService;
import com.caliverse.admin.scheduler.batch.service.DataClearService;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

@Slf4j
@Service
@AllArgsConstructor
public class DataClearServiceImpl implements DataClearService {
    private final DynamodbMailService dynamodbMailService;
    private final DynamodbBattleEventService dynamodbBattleEventService;

    @Override
    public void oldDataClear() {
        dynamodbMailService.oldSystemMetaMailClear();
        dynamodbBattleEventService.oldBattleEventClear();
    }
}
