mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Add some org methods to org service interface (#55449)
* Add some org methods to org service interface * Fix fake method name
This commit is contained in:
@@ -11,4 +11,9 @@ type Service interface {
|
||||
GetUserOrgList(context.Context, *GetUserOrgListQuery) ([]*UserOrgDTO, error)
|
||||
UpdateOrg(context.Context, *UpdateOrgCommand) error
|
||||
Search(context.Context, *SearchOrgsQuery) ([]*OrgDTO, error)
|
||||
GetByID(context.Context, *GetOrgByIdQuery) (*Org, error)
|
||||
GetByNameHandler(context.Context, *GetOrgByNameQuery) (*Org, error)
|
||||
GetByName(string) (*Org, error)
|
||||
CreateWithMember(name string, userID int64) (*Org, error)
|
||||
Create(ctx context.Context, cmd *CreateOrgCommand) (*Org, error)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user