Chore: Add org methods to org service and store (#55579)
* Add org methods to org service and store * Fix name of fake * Remove unused fake * Add xorm tags and half of a test * Add cmment for clarifying missing part of test * Add some comments about future refactors * Rename test * Add test for update org address
This commit is contained in:
@@ -14,6 +14,9 @@ type Service interface {
|
||||
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)
|
||||
CreateWithMember(string, int64) (*Org, error)
|
||||
Create(context.Context, *CreateOrgCommand) (*Org, error)
|
||||
UpdateAddress(context.Context, *UpdateOrgAddressCommand) error
|
||||
Delete(context.Context, *DeleteOrgCommand) error
|
||||
GetOrCreate(context.Context, string) (int64, error)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user