Documentation ¶
Index ¶
- type FakeOrgService
- func (f *FakeOrgService) AddOrgUser(ctx context.Context, cmd *org.AddOrgUserCommand) error
- func (f *FakeOrgService) CreateWithMember(ctx context.Context, cmd *org.CreateOrgCommand) (*org.Org, error)
- func (f *FakeOrgService) Delete(ctx context.Context, cmd *org.DeleteOrgCommand) error
- func (f *FakeOrgService) DeleteUserFromAll(ctx context.Context, userID int64) error
- func (f *FakeOrgService) GetByID(ctx context.Context, query *org.GetOrgByIDQuery) (*org.Org, error)
- func (f *FakeOrgService) GetByName(ctx context.Context, query *org.GetOrgByNameQuery) (*org.Org, error)
- func (f *FakeOrgService) GetIDForNewUser(ctx context.Context, cmd org.GetOrgIDForNewUserCommand) (int64, error)
- func (f *FakeOrgService) GetOrCreate(ctx context.Context, orgName string) (int64, error)
- func (f *FakeOrgService) GetOrgUsers(ctx context.Context, query *org.GetOrgUsersQuery) ([]*org.OrgUserDTO, error)
- func (f *FakeOrgService) GetUserOrgList(ctx context.Context, query *org.GetUserOrgListQuery) ([]*org.UserOrgDTO, error)
- func (f *FakeOrgService) Insert(ctx context.Context, cmd *org.OrgUser) (int64, error)
- func (f *FakeOrgService) InsertOrgUser(ctx context.Context, cmd *org.OrgUser) (int64, error)
- func (f *FakeOrgService) RemoveOrgUser(ctx context.Context, cmd *org.RemoveOrgUserCommand) error
- func (f *FakeOrgService) Search(ctx context.Context, query *org.SearchOrgsQuery) ([]*org.OrgDTO, error)
- func (f *FakeOrgService) SearchOrgUsers(ctx context.Context, query *org.SearchOrgUsersQuery) (*org.SearchOrgUsersQueryResult, error)
- func (f *FakeOrgService) UpdateAddress(ctx context.Context, cmd *org.UpdateOrgAddressCommand) error
- func (f *FakeOrgService) UpdateOrg(ctx context.Context, cmd *org.UpdateOrgCommand) error
- func (f *FakeOrgService) UpdateOrgUser(ctx context.Context, cmd *org.UpdateOrgUserCommand) error
- type OrgListResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeOrgService ¶
type FakeOrgService struct { ExpectedOrgUserID int64 ExpectedError error ExpectedUserOrgDTO []*org.UserOrgDTO ExpectedOrgs []*org.OrgDTO ExpectedOrg *org.Org ExpectedOrgUsers []*org.OrgUserDTO ExpectedSearchOrgUsersResult *org.SearchOrgUsersQueryResult ExpectedOrgListResponse OrgListResponse }
func NewOrgServiceFake ¶
func NewOrgServiceFake() *FakeOrgService
func (*FakeOrgService) AddOrgUser ¶
func (f *FakeOrgService) AddOrgUser(ctx context.Context, cmd *org.AddOrgUserCommand) error
func (*FakeOrgService) CreateWithMember ¶
func (f *FakeOrgService) CreateWithMember(ctx context.Context, cmd *org.CreateOrgCommand) (*org.Org, error)
func (*FakeOrgService) Delete ¶
func (f *FakeOrgService) Delete(ctx context.Context, cmd *org.DeleteOrgCommand) error
func (*FakeOrgService) DeleteUserFromAll ¶
func (f *FakeOrgService) DeleteUserFromAll(ctx context.Context, userID int64) error
func (*FakeOrgService) GetByID ¶
func (f *FakeOrgService) GetByID(ctx context.Context, query *org.GetOrgByIDQuery) (*org.Org, error)
func (*FakeOrgService) GetByName ¶
func (f *FakeOrgService) GetByName(ctx context.Context, query *org.GetOrgByNameQuery) (*org.Org, error)
func (*FakeOrgService) GetIDForNewUser ¶
func (f *FakeOrgService) GetIDForNewUser(ctx context.Context, cmd org.GetOrgIDForNewUserCommand) (int64, error)
func (*FakeOrgService) GetOrCreate ¶
func (*FakeOrgService) GetOrgUsers ¶
func (f *FakeOrgService) GetOrgUsers(ctx context.Context, query *org.GetOrgUsersQuery) ([]*org.OrgUserDTO, error)
func (*FakeOrgService) GetUserOrgList ¶
func (f *FakeOrgService) GetUserOrgList(ctx context.Context, query *org.GetUserOrgListQuery) ([]*org.UserOrgDTO, error)
func (*FakeOrgService) InsertOrgUser ¶
func (*FakeOrgService) RemoveOrgUser ¶
func (f *FakeOrgService) RemoveOrgUser(ctx context.Context, cmd *org.RemoveOrgUserCommand) error
func (*FakeOrgService) Search ¶
func (f *FakeOrgService) Search(ctx context.Context, query *org.SearchOrgsQuery) ([]*org.OrgDTO, error)
func (*FakeOrgService) SearchOrgUsers ¶
func (f *FakeOrgService) SearchOrgUsers(ctx context.Context, query *org.SearchOrgUsersQuery) (*org.SearchOrgUsersQueryResult, error)
func (*FakeOrgService) UpdateAddress ¶
func (f *FakeOrgService) UpdateAddress(ctx context.Context, cmd *org.UpdateOrgAddressCommand) error
func (*FakeOrgService) UpdateOrg ¶
func (f *FakeOrgService) UpdateOrg(ctx context.Context, cmd *org.UpdateOrgCommand) error
func (*FakeOrgService) UpdateOrgUser ¶
func (f *FakeOrgService) UpdateOrgUser(ctx context.Context, cmd *org.UpdateOrgUserCommand) error
type OrgListResponse ¶
Click to show internal directories.
Click to hide internal directories.