repository

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NotificationRepository

type NotificationRepository struct {
	// contains filtered or unexported fields
}

func CreateNotificationRepository

func CreateNotificationRepository(conn *gorm.DB) *NotificationRepository

func (*NotificationRepository) Create

func (n *NotificationRepository) Create(notification *entity.Notification) *gorm.DB

func (*NotificationRepository) FindByUser

func (n *NotificationRepository) FindByUser(user *entity.User, limit int) []*entity.Notification

type UserRepository

type UserRepository struct {
	// contains filtered or unexported fields
}

func CreateUserRepository

func CreateUserRepository(conn *gorm.DB) *UserRepository

func (*UserRepository) Create

func (u *UserRepository) Create(user *entity.User)

func (*UserRepository) FindOneByUuid

func (u *UserRepository) FindOneByUuid(uuid uuid.UUID) (*entity.User, error)

func (*UserRepository) Save

func (u *UserRepository) Save(user *entity.User)

Jump to

Keyboard shortcuts

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