Documentation ¶
Index ¶
- Variables
- type OrganizationManager
- func (m *OrganizationManager) CreateOrganization(ctx context.Context, requestPayload request.CreateOrganizationRequest) (*entity.Organization, error)
- func (m *OrganizationManager) DeleteOrganizationByID(ctx context.Context, id uint) error
- func (m *OrganizationManager) GetOrganizationByID(ctx context.Context, id uint) (*entity.Organization, error)
- func (m *OrganizationManager) ListOrganizations(ctx context.Context) ([]*entity.Organization, error)
- func (m *OrganizationManager) UpdateOrganizationByID(ctx context.Context, id uint, requestPayload request.UpdateOrganizationRequest) (*entity.Organization, error)
Constants ¶
This section is empty.
Variables ¶
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)
Click to show internal directories.
Click to hide internal directories.