biz

package
v0.0.0-...-d470ab9 Latest Latest
Warning

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

Go to latest
Published: May 10, 2024 License: MIT Imports: 7 Imported by: 0

README

Biz

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ProviderSet = wire.NewSet(NewUserBiz)

ProviderSet is biz providers.

Functions

This section is empty.

Types

type IUserRepo

type IUserRepo interface {
	CreateUser(ctx context.Context, user module.User) error
	GetUserByUserName(ctx context.Context, userName string) (module.User, error)
	GetUserByUserNameOrEmail(ctx context.Context, userName, email string) (module.User, error)
}

type UserBiz

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

func NewUserBiz

func NewUserBiz(repo IUserRepo) *UserBiz

func (*UserBiz) CreateUser

func (u *UserBiz) CreateUser(ctx context.Context, user *v1.UserRegisterRequest) error

func (*UserBiz) Login

func (u *UserBiz) Login(ctx context.Context, userRq *v1.UserLoginRequest) (*v1.UserLoginResponse, error)

Jump to

Keyboard shortcuts

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