service

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: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewUserService

func NewUserService(p Params) (service.UserService, error)

Types

type Params

type Params struct {
	fx.In

	Client auth1.ServiceClient
	Repo   repository.UserRepository
}

type UserService

type UserService struct {
	Params
}

func (*UserService) ChangePassword

func (s *UserService) ChangePassword(ctx context.Context, id int, old, new string) error

func (*UserService) GetUser

func (s *UserService) GetUser(ctx context.Context, id int) (*entity.User, error)

func (*UserService) UpdateProfile

func (s *UserService) UpdateProfile(ctx context.Context, user *entity.User) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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