新增标注导出和JSON数据集导入
This commit is contained in:
@@ -40,3 +40,19 @@ export APP_COS_PUBLIC_BASE_URL=''
|
||||
- `POST /api/cos/objects` accepts multipart file upload and stores the file through the backend.
|
||||
|
||||
Both endpoints return the standard `ApiResponse<T>` shape.
|
||||
|
||||
## Replace The Annotation Dataset
|
||||
|
||||
The import runner accepts only `solidworks.rebuild_extract.v1` JSON files. It clears existing
|
||||
models, histories, annotations, structures, functions, and their relations before importing the
|
||||
new dataset. It is disabled by default and should run as a non-web process:
|
||||
|
||||
```bash
|
||||
APP_JSON_DATASET_IMPORT_ENABLED=true \
|
||||
APP_JSON_DATASET_IMPORT_SOURCE_DIRECTORY='/absolute/path/to/output_json 2' \
|
||||
APP_JSON_DATASET_IMPORT_CATEGORY_ID=1 \
|
||||
mvn spring-boot:run -Dspring-boot.run.arguments=--spring.main.web-application-type=none
|
||||
```
|
||||
|
||||
The source files contain feature trees only. The importer creates annotation histories but does
|
||||
not fabricate STEP, GLB, or topology assets.
|
||||
|
||||
Reference in New Issue
Block a user