diff --git a/docs/openapiv2/bdware/bdledger/api/ledger.swagger.json b/docs/openapiv2/bdware/bdledger/api/ledger.swagger.json index 445b66d..c783591 100644 --- a/docs/openapiv2/bdware/bdledger/api/ledger.swagger.json +++ b/docs/openapiv2/bdware/bdledger/api/ledger.swagger.json @@ -91,6 +91,7 @@ "parameters": [ { "name": "ledger", + "description": "Ledger name\n账本名称", "in": "path", "required": true, "type": "string" @@ -115,7 +116,8 @@ "type": "object", "properties": { "name": { - "type": "string" + "type": "string", + "title": "Ledger name\n账本名称" } } }, @@ -123,7 +125,8 @@ "type": "object", "properties": { "ok": { - "type": "boolean" + "type": "boolean", + "title": "Boolean value indicating if the ledger is successfully created\n是否创建成功" } } }, @@ -134,7 +137,8 @@ "type": "array", "items": { "type": "string" - } + }, + "title": "List of ledger names\n帐本名称列表" } } }, @@ -142,10 +146,12 @@ "type": "object", "properties": { "ledger": { - "type": "string" + "type": "string", + "title": "Ledger name\n账本名称" }, "transaction": { - "$ref": "#/definitions/apiSendTransactionRequestTransaction" + "$ref": "#/definitions/apiSendTransactionRequestTransaction", + "title": "Transaction info\n事务信息" } } }, @@ -178,7 +184,8 @@ "properties": { "hash": { "type": "string", - "format": "byte" + "format": "byte", + "title": "Hash of the created transaction\n事务哈希" } } }, diff --git a/docs/openapiv2/bdware/bdledger/api/node.swagger.json b/docs/openapiv2/bdware/bdledger/api/node.swagger.json index 1e8eb46..05afed3 100644 --- a/docs/openapiv2/bdware/bdledger/api/node.swagger.json +++ b/docs/openapiv2/bdware/bdledger/api/node.swagger.json @@ -45,7 +45,8 @@ "type": "object", "properties": { "version": { - "type": "string" + "type": "string", + "title": "Client version\n节点客户端版本" } } }, diff --git a/docs/openapiv2/bdware/bdledger/api/query.swagger.json b/docs/openapiv2/bdware/bdledger/api/query.swagger.json index 232a6dd..bba4761 100644 --- a/docs/openapiv2/bdware/bdledger/api/query.swagger.json +++ b/docs/openapiv2/bdware/bdledger/api/query.swagger.json @@ -208,6 +208,13 @@ "required": true, "type": "string" }, + { + "name": "offset", + "in": "query", + "required": false, + "type": "string", + "format": "int64" + }, { "name": "count", "in": "query", @@ -422,7 +429,8 @@ "type": "string", "format": "int64" } - } + }, + "title": "*\n暂不支持" }, "apiBlocksRequest": { "type": "object", @@ -552,7 +560,8 @@ "HASH", "FULL" ], - "default": "NONE" + "default": "NONE", + "title": "*\n包含事务信息详细程度" }, "apiTransactionFilter": { "type": "object", diff --git a/grpc/pb/bdware/bdledger/api/query.proto b/grpc/pb/bdware/bdledger/api/query.proto index 1b12c07..d7e6872 100644 --- a/grpc/pb/bdware/bdledger/api/query.proto +++ b/grpc/pb/bdware/bdledger/api/query.proto @@ -122,8 +122,9 @@ message CountBlocksResponse { message RecentBlocksRequest { string ledger = 1; // 账本名称 - int64 count = 2; // 查询区块数量 - IncludeTransactions include_transactions = 3; // 包含事务信息详细程度 + int64 offset = 2; // 起始值 + int64 count = 3; // 查询区块数量 + IncludeTransactions include_transactions = 4; // 包含事务信息详细程度 } message GetTransactionByHashRequest {