fix:success true message

This commit is contained in:
Rama Priyanto 2026-01-26 04:56:12 +07:00
parent 50d298a48a
commit 5828351fb5
1 changed files with 4 additions and 0 deletions

View File

@ -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"},
})
}