mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-12 11:04:25 +00:00
207842be91
* fix: alway do permission check * fix: alway do permission check * fix: add project query to applications search request * fix: add email template to statik * fix: org members
23 lines
915 B
Go
23 lines
915 B
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.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)
|
|
|
|
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
|
|
}
|