users

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repository

type Repository interface {
	Atomic(ctx context.Context, opt *sql.TxOptions, repo func(tx Repository) error) error

	GetUserByID(context.Context, int64, ...entities.LockingOpt) (entities.User, error)
	GetUserByEmail(context.Context, string) (entities.User, error)
	SaveNewUser(context.Context, entities.User) (int64, error)
	UpdateUserByID(context.Context, entities.UpdateUser) error
	UpdateUserStatusByID(context.Context, entities.UpdateUserStatus) error
	IsUserExist(ctx context.Context, email string) bool
}

type Usecase

type Usecase interface {
	Login(ctx context.Context, request dtos.UserLoginRequest) (response dtos.UserLoginResponse, err error)
	Create(ctx context.Context, payload dtos.CreateUserRequest) (userID int64, err error)
	PartialUpdate(ctx context.Context, data dtos.UpdateUserRequest) error
	UpdateStatus(ctx context.Context, req dtos.UpdateUserStatusRequest) error
	Detail(ctx context.Context, id int64) (detail dtos.UserDetailResponse, err error)
}

Directories

Path Synopsis
delivery
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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