mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-09 06:24:04 +08:00
init project
This commit is contained in:
11
app/views/users/private_messages/create.json.jbuilder
Normal file
11
app/views/users/private_messages/create.json.jbuilder
Normal file
@@ -0,0 +1,11 @@
|
||||
json.status 0
|
||||
json.message 'success'
|
||||
json.private_message do
|
||||
json.extract! @message, :id, :user_id, :receiver_id, :sender_id, :content
|
||||
|
||||
json.send_day @message.send_time.strftime('%Y-%m-%d')
|
||||
json.send_time @message.display_send_time
|
||||
json.sender do
|
||||
json.partial! 'users/user_simple', user: @message.sender
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user