Files
old-backend/models/notification.go

39 lines
669 B
Go
Raw Normal View History

2023-10-09 18:23:44 +02:00
package models
import (
"time"
"github.com/jinzhu/gorm"
)
type Notification struct {
gorm.Model
2023-10-30 19:21:43 +01:00
Title string
2023-10-09 18:23:44 +02:00
NotificationType string
2023-10-30 19:21:43 +01:00
Text string
CompanyID int
2023-10-09 18:23:44 +02:00
}
2023-10-30 19:21:43 +01:00
type EmailNotification struct {
Subject string
Email string
Body string
}
2023-10-09 18:23:44 +02:00
type GetNotificationsResponse struct {
Type string `json:"type"`
Title string `json:"title"`
Message string `json:"message"`
DateTime time.Time `json:"datetime"`
}
func (Notification) Update() (bool, error) {
return false, nil
}
func (Notification) Create() (bool, error) {
return false, nil
}
func (Notification) Delete() (bool, error) {
return false, nil
}