2020-05-20 12:28:08 +00:00
|
|
|
package model
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/caos/zitadel/internal/model"
|
|
|
|
"time"
|
|
|
|
)
|
|
|
|
|
|
|
|
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
|
2020-05-20 12:28:08 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
type NotifyUserSearchQuery struct {
|
|
|
|
Key NotifyUserSearchKey
|
|
|
|
Method model.SearchMethod
|
|
|
|
Value string
|
|
|
|
}
|
|
|
|
|
|
|
|
type NotifyUserSearchResponse struct {
|
|
|
|
Offset uint64
|
|
|
|
Limit uint64
|
|
|
|
TotalResult uint64
|
|
|
|
Result []*UserView
|
|
|
|
}
|