Documentation ¶
Index ¶
- type ProfileService
- type ProfileServiceImpl
- func (a *ProfileServiceImpl) ChangePasswordService(c context.Context, id string, data dto.ChangePasswordReq) (res string, err *helper.ErrorStruct)
- func (a *ProfileServiceImpl) DeleteUserService(c context.Context, id string) (res string, err *helper.ErrorStruct)
- func (a *ProfileServiceImpl) EditUserService(c context.Context, id string, data dto.UserChangeProfileReq) (res string, err *helper.ErrorStruct)
- func (a *ProfileServiceImpl) GetUserService(c context.Context, id string) (res dto.UserRegistrationsResp, err *helper.ErrorStruct)
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)
Click to show internal directories.
Click to hide internal directories.