repositories

package
v0.0.0-...-31ddaea Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 27, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeviceTokenRepository

type DeviceTokenRepository interface {
	Create(ctx context.Context, payload *entities.DeviceToken) error
	All(ctx context.Context, params *entities.DeviceTokenQueryParams) ([]*entities.DeviceToken, error)
	Delete(ctx context.Context, id string) error
}

type NotificationRepository

type NotificationRepository interface {
	Create(ctx context.Context, payload *entities.Notification) error
	GetAll(ctx context.Context, params *entities.NotificationQueryParams) ([]*entities.Notification, int, error)
	Delete(ctx context.Context, id string) error
}

type TemplateRepository

type TemplateRepository interface {
	Create(ctx context.Context, payload *entities.Template) error
	Find(ctx context.Context, id string) (*entities.Template, error)
	FindByName(ctx context.Context, name string) (*entities.Template, error)
	Update(ctx context.Context, payload *entities.Template) error
	Delete(ctx context.Context, id string) error
}

type UserRepository

type UserRepository interface {
	FindUser(ctx context.Context, id string) (*entities.User, error)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL