repository

package
v0.0.0-...-723d331 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProductRepository

type ProductRepository interface {
	Insert(product entity.Product)

	FindAll() (products []entity.Product)

	DeleteAll()
}

func NewProductRepository

func NewProductRepository(database *mongo.Database) ProductRepository

type UserRepository

type UserRepository interface {
	Register(users *entity.UserEntity) error
	GetData(phone string) (*entity.UserEntity, error)
	Login(phone string) (*entity.UserEntity, error)
}

func NewUserRepository

func NewUserRepository(db *sql.DB) UserRepository

Jump to

Keyboard shortcuts

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