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)
Click to show internal directories.
Click to hide internal directories.