From 5828351fb5ef1d36e5cf4716253c36c41a709c78 Mon Sep 17 00:00:00 2001 From: Rama Priyanto Date: Mon, 26 Jan 2026 04:56:12 +0700 Subject: [PATCH] fix:success true message --- .../notifications/controller/notifications.controller.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/module/notifications/controller/notifications.controller.go b/app/module/notifications/controller/notifications.controller.go index 56f1fde..34fd934 100644 --- a/app/module/notifications/controller/notifications.controller.go +++ b/app/module/notifications/controller/notifications.controller.go @@ -54,6 +54,7 @@ func (_i *notificationsController) Create(c *fiber.Ctx) error { } return utilRes.Resp(c, utilRes.Response{ + Success: true, Messages: utilRes.Messages{"Notification successfully created"}, Data: data, }) @@ -96,6 +97,7 @@ func (_i *notificationsController) ListBySentTo(c *fiber.Ctx) error { } return utilRes.Resp(c, utilRes.Response{ + Success: true, Messages: utilRes.Messages{"Notifications list successfully retrieved"}, Data: fiber.Map{ "total": total, @@ -130,6 +132,7 @@ func (_i *notificationsController) MarkRead(c *fiber.Ctx) error { } return utilRes.Resp(c, utilRes.Response{ + Success: true, Messages: utilRes.Messages{"Notification successfully marked as read"}, }) } @@ -158,6 +161,7 @@ func (_i *notificationsController) Delete(c *fiber.Ctx) error { } return utilRes.Resp(c, utilRes.Response{ + Success: true, Messages: utilRes.Messages{"Notification successfully deleted"}, }) }