json.status 0
json.message "success"
json.count @competition_notices_count
json.data do
  json.array! @competition_notices.to_a do | notice |
    json.extract! notice, :id, :title, :content, :created_at, :updated_at
    json.user_id notice.user_id
    json.user_real_name notice.user&.real_name
    json.attachments notice.attachments do |attachment|
      json.partial! "attachments/attachment_simple", locals: {attachment: attachment}
    end
  end
end