# 代码溯源 导出pdf
class Trace::PdfReportService < Trace::ClientService
  
  attr_accessor :token, :task_id 

  def initialize(token, task_id)
    @token = token 
    @task_id = task_id
  end

  def call 
    result = authed_get(token, url, request_params)
    response = render_response(result)
  end

  private 
  def request_params 
    {
      task_id: task_id
    }
  end

  def url
    "/user/pdfreport".freeze
  end
end