Administrator
2 days ago f7def4651e48093c47008031a313c88df9811c88
src/main/java/cc/mrbird/febs/ai/controller/knowledge/AiKnowledgeController.java
@@ -14,6 +14,7 @@
import org.springframework.web.bind.annotation.*;
import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import java.util.Map;
/**
@@ -51,4 +52,22 @@
        return aiKnowledgeFileService.update(dto);
    }
    @GetMapping("refresh/{id}")
    @ControllerEndpoint(operation = "刷新", exceptionMessage = "操作失败")
    public FebsResponse refresh(
            @NotNull(message = "{required}") @PathVariable String id
    ) {
        return aiKnowledgeFileService.refresh(id);
    }
    @GetMapping("delete/{id}")
    @ControllerEndpoint(operation = "删除", exceptionMessage = "操作失败")
    public FebsResponse delete(
            @NotNull(message = "{required}") @PathVariable String id
    ) {
        return aiKnowledgeFileService.delete(id);
    }
}