add admin API email endpoints (#22792)

add email endpoint to admin API to ensure API parity with admin
dashboard.
This commit is contained in:
techknowlogick authored and GitHub committed 2023-03-14 03:54:40 -04:00
1 parent 03591f0f95
commit d56bb74201
5 files changed
+188

No files matched your search

+3
View File
@@ -1,4 +1,5 @@
// Copyright 2015 The Gogs Authors. All rights reserved.
// Copyright 2023 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT
package structs
@@ -9,6 +10,8 @@ type Email struct {
Email string `json:"email"`
Verified bool `json:"verified"`
Primary bool `json:"primary"`
UserID int64 `json:"user_id"`
UserName string `json:"username"`
}
// CreateEmailOption options when creating email addresses