Add crud endpoints for notifications (#801)
Co-authored-by: kolaente <k@knt.li> Reviewed-on: https://kolaente.dev/vikunja/api/pulls/801 Co-authored-by: konrad <konrad@kola-entertainments.de> Co-committed-by: konrad <konrad@kola-entertainments.de>
This commit is contained in:
@ -54,6 +54,11 @@ func (n *EmailConfirmNotification) ToDB() interface{} {
|
||||
return nil
|
||||
}
|
||||
|
||||
// Name returns the name of the notification
|
||||
func (n *EmailConfirmNotification) Name() string {
|
||||
return ""
|
||||
}
|
||||
|
||||
// PasswordChangedNotification represents a PasswordChangedNotification notification
|
||||
type PasswordChangedNotification struct {
|
||||
User *User
|
||||
@ -73,6 +78,11 @@ func (n *PasswordChangedNotification) ToDB() interface{} {
|
||||
return nil
|
||||
}
|
||||
|
||||
// Name returns the name of the notification
|
||||
func (n *PasswordChangedNotification) Name() string {
|
||||
return ""
|
||||
}
|
||||
|
||||
// ResetPasswordNotification represents a ResetPasswordNotification notification
|
||||
type ResetPasswordNotification struct {
|
||||
User *User
|
||||
@ -92,3 +102,8 @@ func (n *ResetPasswordNotification) ToMail() *notifications.Mail {
|
||||
func (n *ResetPasswordNotification) ToDB() interface{} {
|
||||
return nil
|
||||
}
|
||||
|
||||
// Name returns the name of the notification
|
||||
func (n *ResetPasswordNotification) Name() string {
|
||||
return ""
|
||||
}
|
||||
|
Reference in New Issue
Block a user