package com.cico.nest.lcdp.boot.core.system.api.sensitiveword;

import com.cico.nest.lcdp.boot.core.system.service.sensitiveword.SensitiveWordService;
import com.cico.nest.lcdp.boot.api.system.sensitiveword.SensitiveWordApi;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 敏感词 API 实现类
 *
 * @author zws
 */
@Service
public class SensitiveWordApiImpl implements SensitiveWordApi {

    @Resource
    private SensitiveWordService sensitiveWordService;

    @Override
    public List<String> validateText(String text, List<String> tags) {
        return sensitiveWordService.validateText(text, tags);
    }

    @Override
    public boolean isTextValid(String text, List<String> tags) {
        return sensitiveWordService.isTextValid(text, tags);
    }
}
