2020-05-20 14:28:08 +02:00
|
|
|
package model
|
|
|
|
|
|
|
|
import (
|
|
|
|
"time"
|
2022-04-19 08:26:12 +02:00
|
|
|
|
2022-04-27 01:01:45 +02:00
|
|
|
"github.com/zitadel/zitadel/internal/domain"
|
2020-05-20 14:28:08 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
type NotifyUser struct {
|
2020-07-07 19:31:51 +02:00
|
|
|
ID string
|
|
|
|
CreationDate time.Time
|
|
|
|
ChangeDate time.Time
|
|
|
|
ResourceOwner string
|
|
|
|
UserName string
|
|
|
|
PreferredLoginName string
|
|
|
|
LoginNames []string
|
|
|
|
FirstName string
|
|
|
|
LastName string
|
|
|
|
NickName string
|
|
|
|
DisplayName string
|
|
|
|
PreferredLanguage string
|
|
|
|
Gender Gender
|
|
|
|
LastEmail string
|
|
|
|
VerifiedEmail string
|
|
|
|
LastPhone string
|
|
|
|
VerifiedPhone string
|
|
|
|
PasswordSet bool
|
|
|
|
Sequence uint64
|
2020-05-20 14:28:08 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
type NotifyUserSearchRequest struct {
|
|
|
|
Offset uint64
|
|
|
|
Limit uint64
|
|
|
|
SortingColumn NotifyUserSearchKey
|
|
|
|
Asc bool
|
|
|
|
Queries []*NotifyUserSearchQuery
|
|
|
|
}
|
|
|
|
|
|
|
|
type NotifyUserSearchKey int32
|
|
|
|
|
|
|
|
const (
|
2020-07-07 19:31:51 +02:00
|
|
|
NotifyUserSearchKeyUnspecified NotifyUserSearchKey = iota
|
2020-06-23 14:47:47 +02:00
|
|
|
NotifyUserSearchKeyUserID
|
2020-07-07 19:31:51 +02:00
|
|
|
NotifyUserSearchKeyResourceOwner
|
2022-04-19 08:26:12 +02:00
|
|
|
NotifyUserSearchKeyInstanceID
|
2020-05-20 14:28:08 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
type NotifyUserSearchQuery struct {
|
|
|
|
Key NotifyUserSearchKey
|
2021-03-01 08:48:50 +01:00
|
|
|
Method domain.SearchMethod
|
2020-05-20 14:28:08 +02:00
|
|
|
Value string
|
|
|
|
}
|
|
|
|
|
|
|
|
type NotifyUserSearchResponse struct {
|
|
|
|
Offset uint64
|
|
|
|
Limit uint64
|
|
|
|
TotalResult uint64
|
|
|
|
Result []*UserView
|
|
|
|
}
|