diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbDatabaseAddRequest.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbDatabaseAddRequest.json new file mode 100644 index 00000000..571b85f9 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbDatabaseAddRequest.json @@ -0,0 +1,4 @@ +{ + "env": "test2-4a89da", + "query": "" +} \ No newline at end of file diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbDatabaseAddResponse.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbDatabaseAddResponse.json new file mode 100644 index 00000000..8bffc655 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbDatabaseAddResponse.json @@ -0,0 +1,8 @@ +{ + "errcode": 0, + "errmsg": "ok", + "id_list": [ + "be62d9c4-43ec-4dc6-8ca1-30b206eeed24", + "0f4b8add5cdd728a003bf5c83ed99dff" + ] +} \ No newline at end of file diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbDatabaseAggregateRequest.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbDatabaseAggregateRequest.json new file mode 100644 index 00000000..338d3471 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbDatabaseAggregateRequest.json @@ -0,0 +1,4 @@ +{ + "env": "test2-4a89da", + "query": "db.collection(\"test_collection\").aggregate().match({tags:\"cloud\"}).limit(10).end()" +} \ No newline at end of file diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbDatabaseAggregateResponse.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbDatabaseAggregateResponse.json new file mode 100644 index 00000000..ae2b6fb8 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbDatabaseAggregateResponse.json @@ -0,0 +1,10 @@ +{ + "errcode": 0, + "errmsg": "ok", + "data": [ + "{\"_id\":\"f77e039f-f1cf-4aa8-bd59-16cbaa91e6ea\",\"location\":{\"type\":\"Point\",\"coordinates\":[{\"$numberDouble\":\"113.0\"},{\"$numberDouble\":\"23.0\"}]},\"done\":false,\"description\":\"learn cloud database\",\"due\":\"2019-09-09\",\"tags\":[\"cloud\",\"database\"]}", + "{\"_id\":\"6bb88938-49ea-42b6-a6f5-ce408970cfc6\",\"due\":\"2019-09-09\",\"tags\":[\"cloud\",\"database\"],\"location\":{\"type\":\"Point\",\"coordinates\":[{\"$numberDouble\":\"113.0\"},{\"$numberDouble\":\"23.0\"}]},\"done\":false,\"description\":\"学习 cloud database\"}", + "{\"_id\":\"51f4f67e-a6a1-4c3e-a50f-827380b8da86\",\"description\":\"学习 cloud database\",\"due\":\"2019-09-09\",\"tags\":[\"cloud\",\"database\"],\"location\":{\"coordinates\":[{\"$numberDouble\":\"113.0\"},{\"$numberDouble\":\"23.0\"}],\"type\":\"Point\"},\"done\":false}", + "{\"_id\":\"ee1d69da-b7ec-4e7a-bc1f-2fae31da4ce0\",\"tags\":[\"cloud\",\"database\"],\"location\":{\"type\":\"Point\",\"coordinates\":[{\"$numberDouble\":\"113.0\"},{\"$numberDouble\":\"23.0\"}]},\"done\":false,\"description\":\"学习 cloud database\",\"due\":\"2019-09-09\"}" + ] +} \ No newline at end of file diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbDatabaseCollectionAddRequest.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbDatabaseCollectionAddRequest.json new file mode 100644 index 00000000..6bd86dd5 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbDatabaseCollectionAddRequest.json @@ -0,0 +1,4 @@ +{ + "env": "test2-4a89da", + "collection_name": "test_add_collection" +} \ No newline at end of file diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbDatabaseCollectionAddResponse.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbDatabaseCollectionAddResponse.json new file mode 100644 index 00000000..f752befe --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbDatabaseCollectionAddResponse.json @@ -0,0 +1,4 @@ +{ + "errcode": 0, + "errmsg": "ok" +} \ No newline at end of file diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbDatabaseCollectionDeleteRequest.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbDatabaseCollectionDeleteRequest.json new file mode 100644 index 00000000..899396db --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbDatabaseCollectionDeleteRequest.json @@ -0,0 +1,4 @@ +{ + "env": "test2-4a89da", + "collection_name": "test_delete_collection" +} \ No newline at end of file diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbDatabaseCollectionDeleteResponse.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbDatabaseCollectionDeleteResponse.json new file mode 100644 index 00000000..f752befe --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbDatabaseCollectionDeleteResponse.json @@ -0,0 +1,4 @@ +{ + "errcode": 0, + "errmsg": "ok" +} \ No newline at end of file diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbDatabaseCollectionGetRequest.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbDatabaseCollectionGetRequest.json new file mode 100644 index 00000000..a229324b --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbDatabaseCollectionGetRequest.json @@ -0,0 +1,5 @@ +{ + "env": "test2-4a89da", + "limit": 10, + "offset": 0 +} \ No newline at end of file diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbDatabaseCollectionGetResponse.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbDatabaseCollectionGetResponse.json new file mode 100644 index 00000000..758b9b3e --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbDatabaseCollectionGetResponse.json @@ -0,0 +1,25 @@ +{ + "errcode": 0, + "errmsg": "ok", + "collections": [ + { + "name": "geo", + "count": 13, + "size": 2469, + "index_count": 1, + "index_size": 36864 + }, + { + "name": "test_collection", + "count": 1, + "size": 67, + "index_count": 1, + "index_size": 16384 + } + ], + "pager": { + "Offset": 0, + "Limit": 10, + "Total": 2 + } +} \ No newline at end of file diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbDatabaseCountRequest.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbDatabaseCountRequest.json new file mode 100644 index 00000000..fa387a41 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbDatabaseCountRequest.json @@ -0,0 +1,4 @@ +{ + "env": "test2-4a89da", + "query": "db.collection(\"geo\").where({done:true}).count()" +} \ No newline at end of file diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbDatabaseCountResponse.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbDatabaseCountResponse.json new file mode 100644 index 00000000..44c55521 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbDatabaseCountResponse.json @@ -0,0 +1,5 @@ +{ + "errcode": 0, + "errmsg": "ok", + "count": 3 +} \ No newline at end of file diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbDatabaseDeleteRequest.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbDatabaseDeleteRequest.json new file mode 100644 index 00000000..0a1f0cfa --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbDatabaseDeleteRequest.json @@ -0,0 +1,4 @@ +{ + "env": "test2-4a89da", + "query": "db.collection(\"geo\").where({done:false}).remove()" +} \ No newline at end of file diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbDatabaseDeleteResponse.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbDatabaseDeleteResponse.json new file mode 100644 index 00000000..1c91c202 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbDatabaseDeleteResponse.json @@ -0,0 +1,5 @@ +{ + "errcode": 0, + "errmsg": "ok", + "deleted": 2 +} \ No newline at end of file diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbDatabaseMigrateExportRequest.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbDatabaseMigrateExportRequest.json new file mode 100644 index 00000000..3ccca5b4 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbDatabaseMigrateExportRequest.json @@ -0,0 +1,6 @@ +{ + "env": "test2-4a89da", + "file_path": "test_export", + "file_type": 1, + "query": "const Point = db.Geo.Point;db.collection(\\'geo\\').where({name: \\'x\\',age: _.gt(10).and(_.lt(20)),loc: new Point(113,23),array: [1,2]}).limit(10).skip(1).orderBy(\\'age\\',\\'asc\\').orderBy(\\'name\\', \\'desc\\').field({ name: true }).get()" +} \ No newline at end of file diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbDatabaseMigrateExportResponse.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbDatabaseMigrateExportResponse.json new file mode 100644 index 00000000..897787f9 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbDatabaseMigrateExportResponse.json @@ -0,0 +1,5 @@ +{ + "errcode": 0, + "errmsg": "ok", + "job_id": 100074947 +} \ No newline at end of file diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbDatabaseMigrateImportRequest.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbDatabaseMigrateImportRequest.json new file mode 100644 index 00000000..ea54541a --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbDatabaseMigrateImportRequest.json @@ -0,0 +1,8 @@ +{ + "env": "qbasetest-a5c40e", + "collection_name": "test1", + "file_path": "test_import", + "file_type": 1, + "stop_on_error": false, + "conflict_mode": 2 +} \ No newline at end of file diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbDatabaseMigrateImportResponse.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbDatabaseMigrateImportResponse.json new file mode 100644 index 00000000..897787f9 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbDatabaseMigrateImportResponse.json @@ -0,0 +1,5 @@ +{ + "errcode": 0, + "errmsg": "ok", + "job_id": 100074947 +} \ No newline at end of file diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbDatabaseMigrateQueryInfoRequest.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbDatabaseMigrateQueryInfoRequest.json new file mode 100644 index 00000000..f2248173 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbDatabaseMigrateQueryInfoRequest.json @@ -0,0 +1,4 @@ +{ + "env": "test2-4a89da", + "job_id": 100071736 +} \ No newline at end of file diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbDatabaseMigrateQueryInfoResponse.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbDatabaseMigrateQueryInfoResponse.json new file mode 100644 index 00000000..c148ad8f --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbDatabaseMigrateQueryInfoResponse.json @@ -0,0 +1,9 @@ +{ + "errcode": 0, + "errmsg": "ok", + "status": "success", + "record_success": 3, + "record_fail": 0, + "error_msg": "导出完成.", + "file_url": "https://tcb-mongodb-data-1254135806.cos.ap-shanghai.myqcloud.com/..." +} \ No newline at end of file diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbUpdateIndexRequest.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbUpdateIndexRequest.json new file mode 100644 index 00000000..6d016fdc --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbUpdateIndexRequest.json @@ -0,0 +1,21 @@ +{ + "env": "test2-4a89da", + "collection_name": "counters", + "create_indexes": [ + { + "name": "add_index", + "unique": true, + "keys": [ + { + "name": "test", + "direction": "2dsphere" + } + ] + } + ], + "drop_indexes": [ + { + "name": "del_index" + } + ] +} \ No newline at end of file diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbUpdateIndexResponse.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbUpdateIndexResponse.json new file mode 100644 index 00000000..f752befe --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Tcb/ThirdPartyPlatforms/TcbUpdateIndexResponse.json @@ -0,0 +1,4 @@ +{ + "errcode": 0, + "errmsg": "ok" +} \ No newline at end of file