🗑️ Remove firebase deps

This commit is contained in:
2024-06-02 20:15:04 +08:00
parent c7ba566c48
commit 61eff6ea49
10 changed files with 23 additions and 69 deletions

View File

@ -22,6 +22,7 @@ type Account struct {
Profile AccountProfile `json:"profile"`
PersonalPage AccountPage `json:"personal_page"`
Badges []Badge `json:"badges"`
Contacts []AccountContact `json:"contacts"`
RealmIdentities []RealmMember `json:"realm_identities"`

10
pkg/models/badges.go Normal file
View File

@ -0,0 +1,10 @@
package models
type Badge struct {
BaseModel
Type string `json:"type"`
Label string `json:"label"`
Color string `json:"color"`
AccountID uint `json:"account_id"`
}

View File

@ -1,15 +1,18 @@
package models
import (
"gorm.io/datatypes"
"time"
"gorm.io/datatypes"
)
type Notification struct {
BaseModel
Type string `json:"type"`
Subject string `json:"subject"`
Content string `json:"content"`
Metadata datatypes.JSONMap `json:"metadata"`
Links datatypes.JSONSlice[NotificationLink] `json:"links"`
IsImportant bool `json:"is_important"`
IsRealtime bool `json:"is_realtime" gorm:"-"`
@ -25,7 +28,7 @@ type NotificationLink struct {
}
const (
NotifySubscriberFirebase = "firebase"
NotifySubscriberAPN = "apple"
)
type NotificationSubscriber struct {