repository

package
v0.0.0-...-a78adbb Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2020 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrUserNotFound = errors.New("user not found")

Functions

This section is empty.

Types

type AuthLogRepository

type AuthLogRepository interface {
	Create(ctx context.Context, model *entity.AuthLogRecord) error
	FindAll(ctx context.Context, user_id int, offset, limit int) ([]entity.AuthLogRecord, error)
}

type UserParamLogRepository

type UserParamLogRepository interface {
	Create(ctx context.Context, models *entity.UserParamLogRecord) error

	FindAll(ctx context.Context, user_id int, offset, limit int) ([]entity.UserParamLogRecord, error)
}

type UserRepository

type UserRepository interface {
	Create(ctx context.Context, model *entity.User) error

	IsExistsEmail(ctx context.Context, email string) (bool, error)
	IsExistsPhone(ctx context.Context, phone string) (bool, error)

	Find(ctx context.Context, id int) (*entity.User, error)
	FindByEmail(ctx context.Context, email string) (*entity.User, error)
	FindByPhone(ctx context.Context, phone string) (*entity.User, error)
	FindByExternalID(ctx context.Context, externalId string) (*entity.User, error)
}

Jump to

Keyboard shortcuts

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