add: trace client and api completed

This commit is contained in:
2022-03-30 16:19:32 +08:00
parent d0d906d04c
commit 747646cd9d
9 changed files with 354 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
# 代码溯源 重新检测
class Trace::ReloadCheckService < Trace::ClientService
attr_accessor :token, :fake_project_id
def initialize(token, fake_project_id)
@token = token
@fake_project_id = fake_project_id
end
def call
result = authed_post(token, url, request_params)
response = render_response(result)
end
private
def request_params
{
project_id: fake_project_id
}
end
def url
'/user/reloadcheck'.freeze
end
end