Browse Source

数据迁移 接口文档 调整参数

lvxianyun 2 years ago
parent
commit
8472f3d03b
2 changed files with 25 additions and 8 deletions
  1. 1 3
      docs/README.md
  2. 24 5
      docs/migrate/migrate_api.md

+ 1 - 3
docs/README.md

@@ -35,6 +35,4 @@
 
 ## 数据迁移
 
-#### [接口文档](/migrate/index.md)
-
-#### [说明文档](/migrate/migrate_api.md)
+#### [接口文档](/migrate/migrate_api.md)

+ 24 - 5
docs/migrate/migrate_api.md

@@ -99,10 +99,20 @@ POST请求
 #### RequestBody
 ```
 {
-"order": "lastUpdate asc, objId asc",
-"pageNumber": 1,
-"pageSize": 15,
-"filters": "projectId='Pj9909990004';sign=2;type='create';objectType='building';creationTime='20220125121146'"
+    "page": 1,
+    "size": 50,
+    "onlyCount": false,
+    "withoutCount": false,
+    "criteria": {
+        "sign": 2,
+        "type": "create",
+        "tableName": "dt_relation",
+        "creationTime": {
+            "$gte": 20220120121146,
+            "$lte": 20220123121146
+        },
+        "valid": 1
+    }
 }
 ```
 
@@ -124,7 +134,16 @@ POST请求
 #### RequestBody
 ```
 {
-"filters": "projectId='Pj9909990004';sign=2;type='create';tableName='dt_relation';creationTime='20220125121146'"
+    "criteria": {
+        "sign": 2,
+        "type": "create",
+        "tableName": "dt_relation",
+        "creationTime": {
+            "$gte": 20220120121146,
+            "$lte": 20220123121146
+        },
+        "valid": 1
+    }
 }
 ```