package request type RegisterRequest struct { Username string `json:"username" binding:"required"` Email string `json:"email" binding:"required,email"` Password string `json:"password" binding:"required"` } type LoginRequest struct { Username string `json:"username" binding:"required"` Password string `json:"password" binding:"required"` } type UpdateUserInfoRequest struct { Email string `json:"email"` Nickname string `json:"nickname"` Description string `json:"description"` Password string `json:"password"` } type SendVerificationCodeRequest struct { Email string `json:"email" binding:"required,email"` } type VerifyEmailRequest struct { Email string `json:"email" binding:"required,email"` Code string `json:"code" binding:"required"` }