if params[:filepath].present? 
  json.partial! "api/v1/projects/simple_gitea_diff_detail", diff: @result_object
else
  json.file_nums @result_object[:total_data].to_i
  json.total_addition @result_object[:data]["total_addition"]
  json.total_deletion @result_object[:data]["total_deletion"]
  json.files @result_object[:data]["files"] do |file|
    json.partial! "api/v1/projects/simple_gitea_file", file: file
  end
end