添加了对区块链上仓库基本信息的查询
This commit is contained in:
parent
bbe8407311
commit
c5314f7439
|
@ -0,0 +1,17 @@
|
|||
class Blockchain::RepoBasicInfo < ApplicationQuery
|
||||
|
||||
attr_reader :params, :is_current_admin_user
|
||||
|
||||
def initialize(params)
|
||||
@params = params
|
||||
end
|
||||
|
||||
def call
|
||||
info = find_blockchain_repo_info(params[:project_id].to_s)
|
||||
if info == false
|
||||
return false
|
||||
else
|
||||
return info
|
||||
end
|
||||
end
|
||||
end
|
Loading…
Reference in New Issue