52 lines
1.2 KiB
Go
52 lines
1.2 KiB
Go
package dto
|
|
|
|
type LoginRequest struct {
|
|
Username string `json:"username"`
|
|
Password string `json:"password"`
|
|
}
|
|
|
|
type RegisterRequest struct {
|
|
Username string `json:"username"`
|
|
Email string `json:"email"`
|
|
Password string `json:"password"`
|
|
}
|
|
|
|
type ResendVerificationRequest struct {
|
|
Email string `json:"email"`
|
|
}
|
|
|
|
type ForgotPasswordRequest struct {
|
|
UsernameOrEmail string `json:"username_or_email"`
|
|
}
|
|
|
|
type ResetPasswordRequest struct {
|
|
Token string `json:"token"`
|
|
NewPassword string `json:"new_password"`
|
|
}
|
|
|
|
type UpdateEmailRequest struct {
|
|
Email string `json:"email"`
|
|
}
|
|
|
|
type UpdateUsernameRequest struct {
|
|
Username string `json:"username"`
|
|
}
|
|
|
|
type UpdatePasswordRequest struct {
|
|
CurrentPassword string `json:"current_password"`
|
|
NewPassword string `json:"new_password"`
|
|
}
|
|
|
|
type ConfirmAccountDeletionRequest struct {
|
|
Token string `json:"token"`
|
|
DeletePosts bool `json:"delete_posts"`
|
|
}
|
|
|
|
type RefreshTokenRequest struct {
|
|
RefreshToken string `json:"refresh_token" example:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..." binding:"required"`
|
|
}
|
|
|
|
type RevokeTokenRequest struct {
|
|
RefreshToken string `json:"refresh_token" example:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..." binding:"required"`
|
|
}
|