fix:success true message
This commit is contained in:
parent
50d298a48a
commit
5828351fb5
|
|
@ -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"},
|
||||
})
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue