package top.tqx.demo_1.service;

import top.tqx.demo_1.entity.FAQSuggestion;

import java.util.List;

public interface FAQSuggestionService {

    FAQSuggestion save(FAQSuggestion suggestion);

    FAQSuggestion findById(Long id);

    List<FAQSuggestion> findByStatus(String status);

    FAQSuggestion approve(Long id, String answer);

    void reject(Long id);

    void updateFrequency(Long id, Integer frequency);

    FAQSuggestion findOrCreate(String query, String answer);
}