userdomain

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2024 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IUserUsecase

type IUserUsecase interface {
	CreateUser(ctx context.Context, mobile, email string, accountId int64) (int64, error)
	GetUserInfo(ctx context.Context, req dto.GetUserInfoRequest) (*entity.User, error)
	UpdateUserInfo(ctx context.Context, user *entity.User) error
}

type UserUsecase

type UserUsecase struct {
	// contains filtered or unexported fields
}

func NewUserUsecase

func NewUserUsecase(
	repo userdata.IUserRepo,
) *UserUsecase

func (*UserUsecase) CreateUser

func (uc *UserUsecase) CreateUser(ctx context.Context, mobile, email string, accountId int64) (int64, error)

func (*UserUsecase) GetUserInfo

func (uc *UserUsecase) GetUserInfo(ctx context.Context, req dto.GetUserInfoRequest) (*entity.User, error)

func (*UserUsecase) UpdateUserInfo

func (uc *UserUsecase) UpdateUserInfo(ctx context.Context, user *entity.User) error

Jump to

Keyboard shortcuts

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