Documentation
¶
Index ¶
- Variables
- type Service
- func (s *Service) ClearLogo(ctx context.Context, orgID, buID, userID pulid.ID) (*organization.Organization, error)
- func (s *Service) Create(ctx context.Context, org *organization.Organization, userID pulid.ID) (*organization.Organization, error)
- func (s *Service) Get(ctx context.Context, opts repositories.GetOrgByIDOptions) (*organization.Organization, error)
- func (s *Service) GetUserOrganizations(ctx context.Context, opts *ports.LimitOffsetQueryOptions) (*ports.ListResult[*organization.Organization], error)
- func (s *Service) List(ctx context.Context, opts *ports.LimitOffsetQueryOptions) (*ports.ListResult[*organization.Organization], error)
- func (s *Service) SelectOptions(ctx context.Context, opts *ports.LimitOffsetQueryOptions) ([]*types.SelectOption, error)
- func (s *Service) SetLogo(ctx context.Context, orgID, buID, userID pulid.ID, logo *multipart.FileHeader) (*organization.Organization, error)
- func (s *Service) Update(ctx context.Context, org *organization.Organization, userID pulid.ID) (*organization.Organization, error)
- type ServiceParams
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 (*Service) ClearLogo ¶
func (s *Service) ClearLogo(ctx context.Context, orgID, buID, userID pulid.ID) (*organization.Organization, error)
func (*Service) Create ¶
func (s *Service) Create(ctx context.Context, org *organization.Organization, userID pulid.ID) (*organization.Organization, error)
Create creates an organization.
func (*Service) Get ¶
func (s *Service) Get(ctx context.Context, opts repositories.GetOrgByIDOptions) (*organization.Organization, error)
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 ¶
func (s *Service) List(ctx context.Context, opts *ports.LimitOffsetQueryOptions) (*ports.ListResult[*organization.Organization], error)
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 (*Service) SetLogo ¶
func (s *Service) SetLogo(ctx context.Context, orgID, buID, userID pulid.ID, logo *multipart.FileHeader) (*organization.Organization, error)
func (*Service) Update ¶
func (s *Service) Update(ctx context.Context, org *organization.Organization, userID pulid.ID) (*organization.Organization, error)
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 }
Click to show internal directories.
Click to hide internal directories.