mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-24 13:45:44 +08:00
Merge branch 'develop' into standalone_develop
This commit is contained in:
18
app/services/trace/system_info_service.rb
Normal file
18
app/services/trace/system_info_service.rb
Normal file
@@ -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
|
||||||
Reference in New Issue
Block a user