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:
idafurjes
2022-09-20 12:57:51 +02:00
committed by GitHub
parent dbbab6e95c
commit 43a1d1484d
4 changed files with 144 additions and 0 deletions

View File

@@ -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)
}