json.status 0
json.message "success"
json.data do 
  json.total_count @journals.total_count 
  json.journals @journals do |journal|
    journal.associate_attachment_container
    json.id journal.id
    json.is_journal_detail journal.is_journal_detail? 
    json.created_at journal.created_on.strftime("%Y-%m-%d %H:%M")
    json.updated_at journal.updated_on.strftime("%Y-%m-%d %H:%M")
    json.created_time journal.created_on.to_i 
    json.updated_time journal.updated_on.to_i
    json.user do 
      if journal.user.present? 
        json.partial! "api/v1/users/simple_user", user: journal.user
      else 
        json.nil! 
      end
    end
    detail = journal.journal_details.take
    json.operate_category journal.pm_operate_category
    json.operate_content journal.is_journal_detail? ? journal.pm_dashboard_operate_content : nil
  
  end
end
