mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-07-23 00:46:42 +08:00
Refactor: Doc batch change status (#14337)
### What problem does this PR solve? Before migration Web API: POST /v1/document/change_status After consolidation, Restful API POST /api/v1/datasets/<dataset_id>/documents/batch-update-status ### Type of change - [x] Refactoring
This commit is contained in:
@@ -372,6 +372,17 @@ export const updateDocumentMetaDataConfig = ({
|
||||
data: { ...data },
|
||||
});
|
||||
|
||||
export const changeDocumentsStatus = ({
|
||||
kb_id,
|
||||
doc_ids,
|
||||
status,
|
||||
}: {
|
||||
kb_id: string;
|
||||
doc_ids?: string[];
|
||||
status: number;
|
||||
}) =>
|
||||
request.post(api.documentChangeStatus(kb_id), { data: { doc_ids, status } });
|
||||
|
||||
export const listDataPipelineLogDocument = (
|
||||
datasetId: string,
|
||||
params?: Record<string, any>,
|
||||
|
||||
Reference in New Issue
Block a user