📅  最后修改于: 2022-03-11 15:04:29.688000             🧑  作者: Mango
def render("event_all.json", %{event: event}) do
render("event.json", %{event: event})
|> Map.put_new(:activities, render_many(event.activities, Project.ActivityView, "activity.json", as: :activity))
end