You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

user_email.go 739B

123456789101112131415161718192021222324252627
  1. // Copyright 2015 The Gogs Authors. All rights reserved.
  2. // Copyright 2023 The Gitea Authors. All rights reserved.
  3. // SPDX-License-Identifier: MIT
  4. package structs
  5. // Email an email address belonging to a user
  6. type Email struct {
  7. // swagger:strfmt email
  8. Email string `json:"email"`
  9. Verified bool `json:"verified"`
  10. Primary bool `json:"primary"`
  11. UserID int64 `json:"user_id"`
  12. UserName string `json:"username"`
  13. }
  14. // CreateEmailOption options when creating email addresses
  15. type CreateEmailOption struct {
  16. // email addresses to add
  17. Emails []string `json:"emails"`
  18. }
  19. // DeleteEmailOption options when deleting email addresses
  20. type DeleteEmailOption struct {
  21. // email addresses to delete
  22. Emails []string `json:"emails"`
  23. }