add: system notification history api

This commit is contained in:
2021-10-13 10:58:41 +08:00
parent 490ce7a234
commit 21af31f23c
7 changed files with 129 additions and 40 deletions

View File

@@ -59,7 +59,7 @@ json.setting do
if @top_system_notification.present?
json.system_notification do
json.(@top_system_notification, :subject, :sub_subject, :content)
json.(@top_system_notification, :id, :subject, :sub_subject, :content)
json.is_read @top_system_notification.read_member?(current_user.id)
end
else