2024-02-14 00:07:24 +00:00
|
|
|
package account
|
|
|
|
|
|
|
|
type LoginRequest struct {
|
|
|
|
Email string `json:"email"`
|
|
|
|
Password string `json:"password"`
|
|
|
|
}
|
|
|
|
|
2024-03-06 23:11:34 +00:00
|
|
|
type LoginResponse struct {
|
|
|
|
Token string `json:"token"`
|
|
|
|
}
|
|
|
|
|
2024-02-14 00:07:24 +00:00
|
|
|
type RegisterRequest struct {
|
|
|
|
FirstName string `json:"first_name"`
|
|
|
|
LastName string `json:"last_name"`
|
|
|
|
Email string `json:"email"`
|
|
|
|
Password string `json:"password"`
|
|
|
|
}
|
2024-02-14 04:23:01 +00:00
|
|
|
|
|
|
|
type OTPGenerateResponse struct {
|
|
|
|
OTP string `json:"otp"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type OTPVerifyRequest struct {
|
|
|
|
OTP string `json:"otp"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type OTPValidateRequest struct {
|
|
|
|
OTP string `json:"otp"`
|
|
|
|
}
|
|
|
|
type OTPDisableRequest struct {
|
|
|
|
Password string `json:"password"`
|
|
|
|
}
|
2024-02-26 15:47:47 +00:00
|
|
|
type VerifyEmailRequest struct {
|
|
|
|
Email string `json:"email"`
|
|
|
|
Token string `json:"token"`
|
|
|
|
}
|
2024-02-26 16:04:05 +00:00
|
|
|
type PasswordResetRequest struct {
|
|
|
|
Email string `json:"email"`
|
|
|
|
}
|
|
|
|
type PasswordResetVerifyRequest struct {
|
|
|
|
Email string `json:"email"`
|
|
|
|
Token string `json:"token"`
|
|
|
|
Password string `json:"password"`
|
|
|
|
}
|
2024-03-13 16:26:38 +00:00
|
|
|
|
|
|
|
type PongResponse struct {
|
|
|
|
Ping string `json:"ping"`
|
|
|
|
}
|
2024-03-14 10:42:38 +00:00
|
|
|
type AccountInfoResponse struct {
|
|
|
|
ID uint `json:"id"`
|
|
|
|
Email string `json:"email"`
|
|
|
|
FirstName string `json:"first_name"`
|
|
|
|
LastName string `json:"last_name"`
|
|
|
|
}
|