mirror of
https://github.com/grafana/grafana.git
synced 2024-11-26 02:40:26 -06:00
1fc375855c
* delete team related entries for an org after the org gets deleted * fix tests * one more test fix
27 lines
1.1 KiB
Go
27 lines
1.1 KiB
Go
package org
|
|
|
|
import (
|
|
"context"
|
|
)
|
|
|
|
type Service interface {
|
|
GetIDForNewUser(context.Context, GetOrgIDForNewUserCommand) (int64, error)
|
|
InsertOrgUser(context.Context, *OrgUser) (int64, error)
|
|
DeleteUserFromAll(context.Context, int64) error
|
|
GetUserOrgList(context.Context, *GetUserOrgListQuery) ([]*UserOrgDTO, error)
|
|
UpdateOrg(context.Context, *UpdateOrgCommand) error
|
|
Search(context.Context, *SearchOrgsQuery) ([]*OrgDTO, error)
|
|
GetByID(context.Context, *GetOrgByIDQuery) (*Org, error)
|
|
GetByName(context.Context, *GetOrgByNameQuery) (*Org, error)
|
|
CreateWithMember(context.Context, *CreateOrgCommand) (*Org, error)
|
|
UpdateAddress(context.Context, *UpdateOrgAddressCommand) error
|
|
Delete(context.Context, *DeleteOrgCommand) error
|
|
GetOrCreate(context.Context, string) (int64, error)
|
|
AddOrgUser(context.Context, *AddOrgUserCommand) error
|
|
UpdateOrgUser(context.Context, *UpdateOrgUserCommand) error
|
|
RemoveOrgUser(context.Context, *RemoveOrgUserCommand) error
|
|
GetOrgUsers(context.Context, *GetOrgUsersQuery) ([]*OrgUserDTO, error)
|
|
SearchOrgUsers(context.Context, *SearchOrgUsersQuery) (*SearchOrgUsersQueryResult, error)
|
|
RegisterDelete(query string)
|
|
}
|