bbs-backend/api/request/user_request.go
2024-11-19 21:08:28 +08:00

29 lines
779 B
Go

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"`
}