commit
02d44cad62
@ -1,8 +1,12 @@
|
||||
json.(@hack_user, :id, :status, :error_line, :error_msg, :expected_output,
|
||||
json.status 0
|
||||
json.message "返回成功"
|
||||
json.data do
|
||||
json.(@hack_user, :id, :status, :error_line, :error_msg, :expected_output,
|
||||
:input, :output, :execute_time, :execute_memory, :created_at, :code)
|
||||
json.language @hack_user.hack.language
|
||||
json.name @hack_user.hack.name
|
||||
json.myproblem_identifier @my_hack.identifier
|
||||
json.user do
|
||||
json.language @hack_user.hack.language
|
||||
json.name @hack_user.hack.name
|
||||
json.myproblem_identifier @my_hack.identifier
|
||||
json.user do
|
||||
json.partial! 'users/user', user: current_user
|
||||
end
|
||||
end
|
Loading…
Reference in new issue