43a1d1484d
* Add some org methods to org service interface * Fix fake method name
20 lines
723 B
Go
20 lines
723 B
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)
|
|
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)
|
|
}
|