From 2f6c5686881d510a8327212708bb28acdc604147 Mon Sep 17 00:00:00 2001 From: zhangxunhui Date: Thu, 2 Feb 2023 17:00:49 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=BA=86=E5=AF=B9=E5=8C=BA?= =?UTF-8?q?=E5=9D=97=E9=93=BE=E9=A1=B9=E7=9B=AE=E5=9F=BA=E6=9C=AC=E4=BF=A1?= =?UTF-8?q?=E6=81=AF=E7=9A=84=E6=9F=A5=E8=AF=A2=E5=87=BD=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/queries/application_query.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/app/queries/application_query.rb b/app/queries/application_query.rb index 5029da75..5fd13055 100644 --- a/app/queries/application_query.rb +++ b/app/queries/application_query.rb @@ -63,4 +63,14 @@ class ApplicationQuery return resp_body end + # query the basic info of a repository + def find_blockchain_repo_info(project_id) + param = { + "request-type": "query repo basic info", + "token_name": project_id.to_s + }.to_json + resp_body = invoke_blockchain_api(Blockchain.blockchain_config[:api_url], param) + return resp_body + end + end \ No newline at end of file