From 3e352d3c7c51b63f72a276a8047fe4e0cc8c5c4a Mon Sep 17 00:00:00 2001 From: yystopf Date: Fri, 12 Aug 2022 17:23:19 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=EF=BC=9A=E8=8E=B7=E5=8F=96?= =?UTF-8?q?=E4=BB=A3=E7=A0=81=E6=BA=AF=E6=BA=90=E7=B3=BB=E7=BB=9F=E7=BB=B4?= =?UTF-8?q?=E6=8A=A4=E4=BF=A1=E6=81=AF=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/services/trace/system_info_service.rb | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 app/services/trace/system_info_service.rb diff --git a/app/services/trace/system_info_service.rb b/app/services/trace/system_info_service.rb new file mode 100644 index 000000000..0ffbae7ae --- /dev/null +++ b/app/services/trace/system_info_service.rb @@ -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 \ No newline at end of file