repository

package
v0.0.0-...-dd21589 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2022 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UserRepository

type UserRepository struct {
	PgDB postgres.PgDBIOCInterface `normal:",pg_local"`
}

+ioc:autowire=true +ioc:autowire:type=singleton

func GetUserRepositorySingleton

func GetUserRepositorySingleton() (*UserRepository, error)

func (*UserRepository) GetDB

func (r *UserRepository) GetDB() *gorm.DB

func (*UserRepository) GetUserByPhone

func (r *UserRepository) GetUserByPhone(phone string) (*entity.User, error)

type UserRepositoryIOCInterface

type UserRepositoryIOCInterface interface {
	GetUserByPhone(phone string) (*entity.User, error)
	GetDB() *gorm.DB
}

func GetUserRepositoryIOCInterfaceSingleton

func GetUserRepositoryIOCInterfaceSingleton() (UserRepositoryIOCInterface, error)

Jump to

Keyboard shortcuts

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