organization

package
v0.0.0-...-20e6d49 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2025 License: AGPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrOrgBucketNameNotSet = eris.New("organization bucket name is not set")

Functions

This section is empty.

Types

type Service

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

func NewService

func NewService(p ServiceParams) *Service
func (s *Service) ClearLogo(ctx context.Context, orgID, buID, userID pulid.ID) (*organization.Organization, error)

func (*Service) Create

Create creates an organization.

func (*Service) Get

Get returns an organization by its ID.

func (*Service) GetUserOrganizations

func (s *Service) GetUserOrganizations(
	ctx context.Context, opts *ports.LimitOffsetQueryOptions,
) (*ports.ListResult[*organization.Organization], error)

func (*Service) List

List returns a list of organizations.

func (*Service) SelectOptions

func (s *Service) SelectOptions(ctx context.Context, opts *ports.LimitOffsetQueryOptions) ([]*types.SelectOption, error)

SelectOptions returns a list of select options for organizations.

func (s *Service) SetLogo(ctx context.Context, orgID, buID, userID pulid.ID, logo *multipart.FileHeader) (*organization.Organization, error)

func (*Service) Update

Update updates an organization.

type ServiceParams

type ServiceParams struct {
	fx.In

	Logger       *logger.Logger
	Repo         repositories.OrganizationRepository
	PermService  services.PermissionService
	AuditService services.AuditService
	FileService  services.FileService
}

Jump to

Keyboard shortcuts

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