accounts: add user enable/disable & emails

This commit is contained in:
Harvey Tindall
2021-04-12 21:28:36 +01:00
parent dafb439a7d
commit 55e21f8be3
23 changed files with 437 additions and 58 deletions
+7
View File
@@ -29,6 +29,13 @@ type deleteUserDTO struct {
Reason string `json:"reason"` // Account deletion reason (for notification)
}
type enableDisableUserDTO struct {
Users []string `json:"users" binding:"required"` // List of usernames to delete
Enabled bool `json:"enabled"` // True = enable users, False = disable.
Notify bool `json:"notify"` // Whether to notify users of deletion
Reason string `json:"reason"` // Account deletion reason (for notification)
}
type generateInviteDTO struct {
Months int `json:"months" example:"0"` // Number of months
Days int `json:"days" example:"1"` // Number of days