mirror of
https://github.com/pushbits/server.git
synced 2025-06-20 19:37:20 +02:00
add coloring option for title
This commit is contained in:
parent
567c814968
commit
fe1cbdf79e
7 changed files with 102 additions and 24 deletions
|
@ -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(¬ification); err != nil {
|
||||
return
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue