更改: 新增旧版参数

This commit is contained in:
2024-11-11 11:01:55 +08:00
parent 6bbb4726f2
commit 8cd17a42f3
5 changed files with 21 additions and 6 deletions

View File

@@ -2,7 +2,9 @@ if params[:filepath].present?
json.partial! "api/v1/projects/simple_gitea_diff_detail", diff: @result_object
else
json.file_numbers @result_object[:total_data]
json.files @result_object[:data] do |file|
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