usrext.go 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. // Copyright 2019 Yunion
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at
  6. //
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. package identity
  15. import "time"
  16. type SUserExtended struct {
  17. Id string `json:"id"`
  18. Name string `json:"name"`
  19. Enabled bool `json:"enabled"`
  20. ExpiredAt time.Time `json:"expired_at"`
  21. DefaultProjectId string `json:"default_project_id"`
  22. CreatedAt time.Time `json:"created_at"`
  23. LastActiveAt time.Time `json:"last_active_at"`
  24. DomainId string `json:"domain_id"`
  25. IsSystemAccount bool `json:"is_system_account"`
  26. Displayname string `json:"displayname"`
  27. Email string `json:"email"`
  28. Mobile string `json:"mobile"`
  29. LocalId int `json:"local_id"`
  30. LocalName string `json:"local_name"`
  31. LocalFailedAuthCount int `json:"local_failed_auth_count"`
  32. DomainName string `json:"domain_name"`
  33. DomainEnabled bool `json:"domain_enabled"`
  34. IsLocal bool `json:"is_local"`
  35. // IdpId string
  36. // IdpName string
  37. AuditIds []string `json:"audit_ids"`
  38. }