Documentation ¶
Index ¶
- Constants
- func ProvideService(db db.DB, cfg *setting.Cfg, quotaService quota.Service) (org.Service, error)
- type Service
- func (s *Service) AddOrgUser(ctx context.Context, cmd *org.AddOrgUserCommand) error
- func (s *Service) CreateWithMember(ctx context.Context, cmd *org.CreateOrgCommand) (*org.Org, error)
- func (s *Service) Delete(ctx context.Context, cmd *org.DeleteOrgCommand) error
- func (s *Service) DeleteUserFromAll(ctx context.Context, userID int64) error
- func (s *Service) GetByID(ctx context.Context, query *org.GetOrgByIDQuery) (*org.Org, error)
- func (s *Service) GetByName(ctx context.Context, query *org.GetOrgByNameQuery) (*org.Org, error)
- func (s *Service) GetIDForNewUser(ctx context.Context, cmd org.GetOrgIDForNewUserCommand) (int64, error)
- func (s *Service) GetOrCreate(ctx context.Context, orgName string) (int64, error)
- func (s *Service) GetOrgUsers(ctx context.Context, query *org.GetOrgUsersQuery) ([]*org.OrgUserDTO, error)
- func (s *Service) GetUserOrgList(ctx context.Context, query *org.GetUserOrgListQuery) ([]*org.UserOrgDTO, error)
- func (s *Service) InsertOrgUser(ctx context.Context, orguser *org.OrgUser) (int64, error)
- func (s *Service) RegisterDelete(query string)
- func (s *Service) RemoveOrgUser(ctx context.Context, cmd *org.RemoveOrgUserCommand) error
- func (s *Service) Search(ctx context.Context, query *org.SearchOrgsQuery) ([]*org.OrgDTO, error)
- func (s *Service) SearchOrgUsers(ctx context.Context, query *org.SearchOrgUsersQuery) (*org.SearchOrgUsersQueryResult, error)
- func (s *Service) UpdateAddress(ctx context.Context, cmd *org.UpdateOrgAddressCommand) error
- func (s *Service) UpdateOrg(ctx context.Context, cmd *org.UpdateOrgCommand) error
- func (s *Service) UpdateOrgUser(ctx context.Context, cmd *org.UpdateOrgUserCommand) error
- func (s *Service) Usage(ctx context.Context, scopeParams *quota.ScopeParameters) (*quota.Map, error)
Constants ¶
View Source
const MainOrgName = "Main Org."
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (*Service) AddOrgUser ¶
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) DeleteUserFromAll ¶
func (*Service) GetIDForNewUser ¶
func (*Service) GetOrCreate ¶
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 (*Service) RegisterDelete ¶
func (*Service) RemoveOrgUser ¶
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 ¶
TODO: refactor service to call store CRUD method
func (*Service) UpdateOrgUser ¶
TODO: refactor service to call store CRUD method
Click to show internal directories.
Click to hide internal directories.