2020-05-20 12:28:08 +00:00
|
|
|
package model
|
|
|
|
|
|
|
|
import (
|
|
|
|
"time"
|
2022-04-19 06:26:12 +00:00
|
|
|
|
2022-04-26 23:01:45 +00:00
|
|
|
"github.com/zitadel/zitadel/internal/domain"
|
2020-05-20 12:28:08 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
type NotifyUser struct {
|
2020-07-07 17:31:51 +00: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 12:28:08 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type NotifyUserSearchRequest struct {
|
|
|
|
Offset uint64
|
|
|
|
Limit uint64
|
|
|
|
SortingColumn NotifyUserSearchKey
|
|
|
|
Asc bool
|
|
|
|
Queries []*NotifyUserSearchQuery
|
|
|
|
}
|
|
|
|
|
|
|
|
type NotifyUserSearchKey int32
|
|
|
|
|
|
|
|
const (
|
2020-07-07 17:31:51 +00:00
|
|
|
NotifyUserSearchKeyUnspecified NotifyUserSearchKey = iota
|
2020-06-23 12:47:47 +00:00
|
|
|
NotifyUserSearchKeyUserID
|
2020-07-07 17:31:51 +00:00
|
|
|
NotifyUserSearchKeyResourceOwner
|
2022-04-19 06:26:12 +00:00
|
|
|
NotifyUserSearchKeyInstanceID
|
2020-05-20 12:28:08 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
type NotifyUserSearchQuery struct {
|
|
|
|
Key NotifyUserSearchKey
|
2021-03-01 07:48:50 +00:00
|
|
|
Method domain.SearchMethod
|
2020-05-20 12:28:08 +00:00
|
|
|
Value string
|
|
|
|
}
|
|
|
|
|
|
|
|
type NotifyUserSearchResponse struct {
|
|
|
|
Offset uint64
|
|
|
|
Limit uint64
|
|
|
|
TotalResult uint64
|
|
|
|
Result []*UserView
|
|
|
|
}
|