orgimpl

package
v0.0.0-test.2 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2023 License: AGPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const MainOrgName = "Main Org."

Variables

This section is empty.

Functions

func ProvideService

func ProvideService(db db.DB, cfg *setting.Cfg, quotaService quota.Service) (org.Service, error)

Types

type Service

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

func (*Service) AddOrgUser

func (s *Service) AddOrgUser(ctx context.Context, cmd *org.AddOrgUserCommand) error

TODO: refactor service to call store CRUD method

func (*Service) CreateWithMember

func (s *Service) CreateWithMember(ctx context.Context, cmd *org.CreateOrgCommand) (*org.Org, error)

TODO: refactor service to call store CRUD method

func (*Service) Delete

func (s *Service) Delete(ctx context.Context, cmd *org.DeleteOrgCommand) error

TODO: refactor service to call store CRUD method

func (*Service) DeleteUserFromAll

func (s *Service) DeleteUserFromAll(ctx context.Context, userID int64) error

func (*Service) GetByID

func (s *Service) GetByID(ctx context.Context, query *org.GetOrgByIDQuery) (*org.Org, error)

func (*Service) GetByName

func (s *Service) GetByName(ctx context.Context, query *org.GetOrgByNameQuery) (*org.Org, error)

func (*Service) GetIDForNewUser

func (s *Service) GetIDForNewUser(ctx context.Context, cmd org.GetOrgIDForNewUserCommand) (int64, error)

func (*Service) GetOrCreate

func (s *Service) GetOrCreate(ctx context.Context, orgName string) (int64, error)

func (*Service) GetOrgUsers

func (s *Service) GetOrgUsers(ctx context.Context, query *org.GetOrgUsersQuery) ([]*org.OrgUserDTO, error)

TODO: refactor service to call store CRUD method

func (*Service) GetUserOrgList

func (s *Service) GetUserOrgList(ctx context.Context, query *org.GetUserOrgListQuery) ([]*org.UserOrgDTO, error)

TODO: refactor service to call store CRUD method

func (*Service) InsertOrgUser

func (s *Service) InsertOrgUser(ctx context.Context, orguser *org.OrgUser) (int64, error)

func (*Service) RemoveOrgUser

func (s *Service) RemoveOrgUser(ctx context.Context, cmd *org.RemoveOrgUserCommand) error

TODO: refactor service to call store CRUD method

func (*Service) Search

func (s *Service) Search(ctx context.Context, query *org.SearchOrgsQuery) ([]*org.OrgDTO, error)

TODO: refactor service to call store CRUD method

func (*Service) SearchOrgUsers

func (s *Service) SearchOrgUsers(ctx context.Context, query *org.SearchOrgUsersQuery) (*org.SearchOrgUsersQueryResult, error)

TODO: refactor service to call store CRUD method

func (*Service) UpdateAddress

func (s *Service) UpdateAddress(ctx context.Context, cmd *org.UpdateOrgAddressCommand) error

TODO: refactor service to call store CRUD method

func (*Service) UpdateOrg

func (s *Service) UpdateOrg(ctx context.Context, cmd *org.UpdateOrgCommand) error

TODO: refactor service to call store CRUD method

func (*Service) UpdateOrgUser

func (s *Service) UpdateOrgUser(ctx context.Context, cmd *org.UpdateOrgUserCommand) error

TODO: refactor service to call store CRUD method

func (*Service) Usage

func (s *Service) Usage(ctx context.Context, scopeParams *quota.ScopeParameters) (*quota.Map, error)

Jump to

Keyboard shortcuts

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