organization

package
v0.13.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2024 License: Apache-2.0 Imports: 8 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrGettingNonExistingOrganization  = errors.New("the organization does not exist")
	ErrUpdatingNonExistingOrganization = errors.New("the organization to update does not exist")
	ErrInvalidOrganizationID           = errors.New("the organization ID should be a uuid")
)

Functions

This section is empty.

Types

type OrganizationManager

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

func NewOrganizationManager

func NewOrganizationManager(organizationRepo repository.OrganizationRepository) *OrganizationManager

func (*OrganizationManager) CreateOrganization

func (m *OrganizationManager) CreateOrganization(ctx context.Context, requestPayload request.CreateOrganizationRequest) (*entity.Organization, error)

func (*OrganizationManager) DeleteOrganizationByID

func (m *OrganizationManager) DeleteOrganizationByID(ctx context.Context, id uint) error

func (*OrganizationManager) GetOrganizationByID

func (m *OrganizationManager) GetOrganizationByID(ctx context.Context, id uint) (*entity.Organization, error)

func (*OrganizationManager) ListOrganizations

func (m *OrganizationManager) ListOrganizations(ctx context.Context) ([]*entity.Organization, error)

func (*OrganizationManager) UpdateOrganizationByID

func (m *OrganizationManager) UpdateOrganizationByID(ctx context.Context, id uint, requestPayload request.UpdateOrganizationRequest) (*entity.Organization, error)

Jump to

Keyboard shortcuts

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