add: setting of system notification

This commit is contained in:
2021-10-12 16:34:00 +08:00
parent d176508010
commit 490ce7a234
4 changed files with 29 additions and 7 deletions

View File

@@ -56,4 +56,13 @@ json.setting do
end
json.common @common
if @top_system_notification.present?
json.system_notification do
json.(@top_system_notification, :subject, :sub_subject, :content)
json.is_read @top_system_notification.read_member?(current_user.id)
end
else
json.system_notification nil
end
end