mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-13 11:34:26 +00:00
1de574df42
* fix: project by id return projectview * fix: return always view model on query side * fix: return always view model on query side
30 lines
1.4 KiB
Go
30 lines
1.4 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.OrgView, error)
|
|
OrgByDomainGlobal(ctx context.Context, domain string) (*org_model.OrgView, 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
|
|
|
|
GetMyOrgIamPolicy(ctx context.Context) (*org_model.OrgIamPolicy, error)
|
|
}
|