This commit is contained in:
parent
d33ed051f4
commit
8f53e8a967
2 changed files with 6 additions and 6 deletions
|
@ -25,12 +25,12 @@ type INotification interface {
|
|||
// 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
|
||||
// UPDATE @@table SET viewed_state = @state WHERE id IN @ids
|
||||
SetState(state uint8, ids ...uint) error
|
||||
|
||||
// Get the lastest count amount of notifications with a given offset for a user
|
||||
//
|
||||
// SELECT * FROM @@table WHERE for_user_id = @id
|
||||
// SELECT * FROM @@table WHERE for_user_id = @userId
|
||||
// ORDER BY id DESC
|
||||
// {{if count > 0 }}
|
||||
// LIMIT @count
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue