package top.tqx.demo_1.service;

import top.tqx.demo_1.dto.*;
import top.tqx.demo_1.entity.FAQ;

import java.util.List;

public interface FAQService {

    FAQListResponse getFAQList(Integer page, Integer pageSize);

    FAQSuggestionListResponse getFAQSuggestions(Integer page, Integer pageSize);

    boolean approveSuggestion(Long id, String answer);

    boolean rejectSuggestion(Long id);

    FAQ createFAQ(FAQCreateRequest request);

    FAQ getFAQById(Long id);

    FAQ updateFAQ(Long id, FAQUpdateRequest request);

    boolean deleteFAQ(Long id);

    int batchDeleteFAQs(List<Long> ids);

    List<FAQ> listFAQs(String status, Integer limit);
}