service

package
v0.0.0-...-6eb8140 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProfileService

type ProfileService interface {
	GetUserService(c context.Context, id string) (res dto.UserRegistrationsResp, err *helper.ErrorStruct)
	EditUserService(c context.Context, id string, data dto.UserChangeProfileReq) (res string, err *helper.ErrorStruct)
	DeleteUserService(c context.Context, id string) (res string, err *helper.ErrorStruct)
	ChangePasswordService(c context.Context, id string, data dto.ChangePasswordReq) (res string, err *helper.ErrorStruct)
}

func NewProfileService

func NewProfileService(ProfileRepo repository.ProfileRepo) ProfileService

type ProfileServiceImpl

type ProfileServiceImpl struct {
	ProfileRepo repository.ProfileRepo
}

func (*ProfileServiceImpl) ChangePasswordService

func (a *ProfileServiceImpl) ChangePasswordService(c context.Context, id string, data dto.ChangePasswordReq) (res string, err *helper.ErrorStruct)

func (*ProfileServiceImpl) DeleteUserService

func (a *ProfileServiceImpl) DeleteUserService(c context.Context, id string) (res string, err *helper.ErrorStruct)

func (*ProfileServiceImpl) EditUserService

func (a *ProfileServiceImpl) EditUserService(c context.Context, id string, data dto.UserChangeProfileReq) (res string, err *helper.ErrorStruct)

func (*ProfileServiceImpl) GetUserService

func (a *ProfileServiceImpl) GetUserService(c context.Context, id string) (res dto.UserRegistrationsResp, err *helper.ErrorStruct)

Jump to

Keyboard shortcuts

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