repository

package
v0.0.0-...-e754585 Latest Latest
Warning

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

Go to latest
Published: May 29, 2023 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 AccountRepository

type AccountRepository interface {
	// GetByID returns an account by its ID.
	GetByID(id uuid.UUID) (account *entity.Account, err error)
	// GetByUserID returns an account by its user ID.
	GetByUserID(userID int64) (account *entity.Account, err error)
	// Create creates a new account.
	Create(account *entity.Account) (err error)
	// Update updates an account.
	Update(account *entity.Account) (err error)
}

AccountRepository interface defines the methods that the account repository must implement.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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