Files
Atay-Makhzan/modules/structs/user_email.go
T

33 lines
927 B
Go
Raw Normal View History

2019-05-11 18:21:34 +08:00
// Copyright 2015 The Gogs Authors. All rights reserved.
2023-03-14 03:54:40 -04:00
// Copyright 2023 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT
2019-05-11 18:21:34 +08:00
package structs
// Email an email address belonging to a user
type Email struct {
// swagger:strfmt email
// The email address
Email string `json:"email"`
// Whether the email address has been verified
Verified bool `json:"verified"`
// Whether this is the primary email address
Primary bool `json:"primary"`
// The unique identifier of the user who owns this email
UserID int64 `json:"user_id"`
// username of the user
2023-03-14 03:54:40 -04:00
UserName string `json:"username"`
2019-05-11 18:21:34 +08:00
}
// CreateEmailOption options when creating email addresses
type CreateEmailOption struct {
// email addresses to add
Emails []string `json:"emails"`
}
// DeleteEmailOption options when deleting email addresses
type DeleteEmailOption struct {
// email addresses to delete
Emails []string `json:"emails"`
}