package com.ruoyi.api;

import com.ruoyi.ai.domain.AiHelp;
import com.ruoyi.ai.service.IAiHelpService;
import com.ruoyi.common.annotation.Anonymous;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.utils.poi.ExcelUtil;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * 【帮助管理】Controller
 * 
 * @author shi
 * @date 2025-11-13
 */
@Api(tags = "ai-帮助管理")
@RestController
@RequestMapping("/api/help")
public class AiHelpApiController extends BaseController
{
    @Autowired
    private IAiHelpService aiHelpService;

    /**
     * 查询【帮助管理】列表
     */
    @Anonymous
    @ApiOperation("查询帮助列表")
    @GetMapping("/list")
    public TableDataInfo list(AiHelp aiHelp)
    {
        startPage();
        List<AiHelp> list = aiHelpService.selectAiHelpList(aiHelp);
        return getDataTable(list);
    }

}
