json.status 0
json.message "success"
json.data do
  json.extract! @competition_notice, :id, :title, :content, :created_at, :updated_at, :description, :img_url
  json.user_id @competition_notice.user_id
  json.user_real_name @competition_notice.user&.real_name
  json.attachments @competition_notice.attachments do |attachment|
    json.partial! "attachments/attachment_simple", locals: {attachment: attachment}
  end
end