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