user

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CRUD

type CRUD interface {
	Get(reqDTO dto.GetUserRequest) (*agg.User, error)
	Create(reqDTO dto.CreateUserRequest) (*agg.User, error)
	Update(reqDTO dto.UpdateUserRequest) (*agg.User, error)
	Delete(reqDTO dto.DeleteUserRequest) error
}

type CRUDService

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

func NewCRUDService

func NewCRUDService(
	ctx context.Context,
	logger logger.Logger,
	builder builder.User,
	validator validator.User,
	repository repository.User,
	videoService video.CRUD,
) *CRUDService

func (*CRUDService) Create

func (s *CRUDService) Create(reqDTO dto.CreateUserRequest) (*agg.User, error)

func (*CRUDService) Delete

func (s *CRUDService) Delete(reqDTO dto.DeleteUserRequest) (err error)

func (*CRUDService) Get

func (s *CRUDService) Get(reqDTO dto.GetUserRequest) (user *agg.User, err error)

func (*CRUDService) Update

func (s *CRUDService) Update(reqDTO dto.UpdateUserRequest) (*agg.User, error)

Jump to

Keyboard shortcuts

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