package com.njcn.gather.tool.adddata.service.impl;

import com.njcn.gather.tool.adddata.component.AddDataTemplateRegistry;
import com.njcn.gather.tool.adddata.pojo.vo.AddDataTemplateVO;
import com.njcn.gather.tool.adddata.service.AddDataTemplateService;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 数据补录模板服务实现。
 */
@Service
@RequiredArgsConstructor
public class AddDataTemplateServiceImpl implements AddDataTemplateService {

    /** 模板注册器。 */
    private final AddDataTemplateRegistry addDataTemplateRegistry;

    @Override
    public List<AddDataTemplateVO> listTemplates() {
        return addDataTemplateRegistry.getTemplates();
    }
}
