forked from Gitlink/forgeplus
新增:获取代码溯源系统维护信息接口
This commit is contained in:
parent
13472b2311
commit
3e352d3c7c
|
@ -0,0 +1,18 @@
|
|||
class Trace::SystemInfoService < Trace::ClientService
|
||||
|
||||
attr_accessor :token
|
||||
|
||||
def initialize(token)
|
||||
@token = token
|
||||
end
|
||||
|
||||
def call
|
||||
result = authed_get(token, url)
|
||||
response = render_response(result)
|
||||
end
|
||||
|
||||
private
|
||||
def url
|
||||
'/user/systemInfo'.freeze
|
||||
end
|
||||
end
|
Loading…
Reference in New Issue