mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-13 03:24:26 +00:00
75f1c4c576
* feat: add search user memberships * feat: add search user memberships * feat: read user member ship * feat: add usergrant search key * feat: uesrmemberships based on permissions * feat: merge master * fix: correct permissions * fix: update display name on change profile * fix: merge request converations * fix: err handling * Update internal/user/model/user_membership_view.go Co-authored-by: Silvan <silvan.reusser@gmail.com> Co-authored-by: Silvan <silvan.reusser@gmail.com>
43 lines
2.2 KiB
Go
43 lines
2.2 KiB
Go
package repository
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/caos/zitadel/internal/user/model"
|
|
)
|
|
|
|
type UserRepository interface {
|
|
UserByID(ctx context.Context, id string) (*model.UserView, error)
|
|
CreateUser(ctx context.Context, user *model.User) (*model.User, error)
|
|
RegisterUser(ctx context.Context, user *model.User, resourceOwner string) (*model.User, error)
|
|
DeactivateUser(ctx context.Context, id string) (*model.User, error)
|
|
ReactivateUser(ctx context.Context, id string) (*model.User, error)
|
|
LockUser(ctx context.Context, id string) (*model.User, error)
|
|
UnlockUser(ctx context.Context, id string) (*model.User, error)
|
|
SearchUsers(ctx context.Context, request *model.UserSearchRequest) (*model.UserSearchResponse, error)
|
|
UserChanges(ctx context.Context, id string, lastSequence uint64, limit uint64, sortAscending bool) (*model.UserChanges, error)
|
|
GetGlobalUserByEmail(ctx context.Context, email string) (*model.UserView, error)
|
|
IsUserUnique(ctx context.Context, userName, email string) (bool, error)
|
|
UserMfas(ctx context.Context, userID string) ([]*model.MultiFactor, error)
|
|
|
|
SetOneTimePassword(ctx context.Context, password *model.Password) (*model.Password, error)
|
|
RequestSetPassword(ctx context.Context, id string, notifyType model.NotificationType) error
|
|
|
|
ProfileByID(ctx context.Context, userID string) (*model.Profile, error)
|
|
ChangeProfile(ctx context.Context, profile *model.Profile) (*model.Profile, error)
|
|
|
|
EmailByID(ctx context.Context, userID string) (*model.Email, error)
|
|
ChangeEmail(ctx context.Context, email *model.Email) (*model.Email, error)
|
|
CreateEmailVerificationCode(ctx context.Context, userID string) error
|
|
|
|
PhoneByID(ctx context.Context, userID string) (*model.Phone, error)
|
|
ChangePhone(ctx context.Context, email *model.Phone) (*model.Phone, error)
|
|
RemovePhone(ctx context.Context, userID string) error
|
|
CreatePhoneVerificationCode(ctx context.Context, userID string) error
|
|
|
|
AddressByID(ctx context.Context, userID string) (*model.Address, error)
|
|
ChangeAddress(ctx context.Context, address *model.Address) (*model.Address, error)
|
|
|
|
SearchUserMemberships(ctx context.Context, request *model.UserMembershipSearchRequest) (*model.UserMembershipSearchResponse, error)
|
|
}
|