|
|
@ -1,3 +1,6 @@
|
|
|
|
|
|
|
|
json.status 0
|
|
|
|
|
|
|
|
json.message "返回成功"
|
|
|
|
|
|
|
|
json.data do
|
|
|
|
json.(@hack_user, :id, :status, :error_line, :error_msg, :expected_output,
|
|
|
|
json.(@hack_user, :id, :status, :error_line, :error_msg, :expected_output,
|
|
|
|
:input, :output, :execute_time, :execute_memory, :created_at, :code)
|
|
|
|
:input, :output, :execute_time, :execute_memory, :created_at, :code)
|
|
|
|
json.language @hack_user.hack.language
|
|
|
|
json.language @hack_user.hack.language
|
|
|
@ -6,3 +9,4 @@ json.myproblem_identifier @my_hack.identifier
|
|
|
|
json.user do
|
|
|
|
json.user do
|
|
|
|
json.partial! 'users/user', user: current_user
|
|
|
|
json.partial! 'users/user', user: current_user
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|