mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-12 11:04:25 +00:00
7a6ca24625
* check uniqueness on create and register user * change user email, reserve release unique email * usergrant unique aggregate * usergrant uniqueness * validate UserGrant * fix tests * domain is set on username in all orgs * domain in admin * org domain sql * zitadel domain org name * org domains * org iam policy * default org iam policy * SETUP * load login names * login by login name * login name * fix: merge master * fix: merge master * Update internal/user/repository/eventsourcing/user.go Co-authored-by: Livio Amstutz <livio.a@gmail.com> * fix: fix unique domains * fix: rename env variable Co-authored-by: adlerhurst <silvan.reusser@gmail.com> Co-authored-by: Livio Amstutz <livio.a@gmail.com>
28 lines
1.3 KiB
Go
28 lines
1.3 KiB
Go
package repository
|
|
|
|
import (
|
|
"context"
|
|
|
|
org_model "github.com/caos/zitadel/internal/org/model"
|
|
)
|
|
|
|
type OrgRepository interface {
|
|
OrgByID(ctx context.Context, id string) (*org_model.Org, error)
|
|
OrgByDomainGlobal(ctx context.Context, domain string) (*org_model.Org, error)
|
|
UpdateOrg(ctx context.Context, org *org_model.Org) (*org_model.Org, error)
|
|
DeactivateOrg(ctx context.Context, id string) (*org_model.Org, error)
|
|
ReactivateOrg(ctx context.Context, id string) (*org_model.Org, error)
|
|
OrgChanges(ctx context.Context, id string, lastSequence uint64, limit uint64) (*org_model.OrgChanges, error)
|
|
|
|
SearchMyOrgDomains(ctx context.Context, request *org_model.OrgDomainSearchRequest) (*org_model.OrgDomainSearchResponse, error)
|
|
AddMyOrgDomain(ctx context.Context, domain *org_model.OrgDomain) (*org_model.OrgDomain, error)
|
|
RemoveMyOrgDomain(ctx context.Context, domain string) error
|
|
|
|
SearchMyOrgMembers(ctx context.Context, request *org_model.OrgMemberSearchRequest) (*org_model.OrgMemberSearchResponse, error)
|
|
AddMyOrgMember(ctx context.Context, member *org_model.OrgMember) (*org_model.OrgMember, error)
|
|
ChangeMyOrgMember(ctx context.Context, member *org_model.OrgMember) (*org_model.OrgMember, error)
|
|
RemoveMyOrgMember(ctx context.Context, userID string) error
|
|
|
|
GetOrgMemberRoles() []string
|
|
}
|