Fix gorm gen being not good with typing
Some checks are pending
/ test (push) Waiting to run

This commit is contained in:
Melody Becker 2025-04-04 13:50:42 +02:00
parent b33f6c2af7
commit d33ed051f4
Signed by: mstar
SSH key fingerprint: SHA256:9VAo09aaVNTWKzPW7Hq2LW+ox9OdwmTSHRoD4mlz1yI
2 changed files with 7 additions and 5 deletions

View file

@ -22,10 +22,11 @@ type Notification struct {
}
type INotification interface {
// Update a given set of notifications to a given viewed state
// Update a given set of notifications to a given viewed state.
// State should be a [NotificationViewedStateType]
//
// UPDATE @@table SET viewed_state = @state WHERE id IN @id
SetState(state NotificationViewedState, ids ...uint) error
SetState(state uint8, ids ...uint) error
// Get the lastest count amount of notifications with a given offset for a user
//