add coloring option for title

This commit is contained in:
Cubicroot 2021-05-02 12:27:13 +02:00
parent 567c814968
commit fe1cbdf79e
7 changed files with 102 additions and 24 deletions

View file

@ -30,6 +30,7 @@ type NotificationHandler struct {
// CreateNotification is used to create a new notification for a user.
func (h *NotificationHandler) CreateNotification(ctx *gin.Context) {
var notification model.Notification
notification.Priority = 8 // set a default value
if err := ctx.Bind(&notification); err != nil {
return