package com.rj.controller;
import com.rj.entity.KnowledgeBase;
import com.rj.service.IKnowledgeBaseService;
import com.rj.service.MinIOService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
*
* 知识库管理表 前端控制器
*
*
* @author 李中华 ,spllzh
* @since 2025-01-27
*/
@Slf4j
@RestController
@RequestMapping("/api/knowledgeBase")
@Tag(name = "知识库管理", description = "知识库管理相关接口")
public class KnowledgeBaseController {
@Autowired
private IKnowledgeBaseService knowledgeBaseService;
@Autowired
private MinIOService minIOService;
/**
* 新增知识
*/
@PostMapping("/add")
@Operation(summary = "新增知识", description = "添加新的知识信息")
public ResponseEntity