ZPRP_Rental/gin/forms/user.go
2019-05-30 16:14:10 +02:00

15 lines
454 B
Go

package forms
//SigninForm ...
type SigninForm struct {
Email string `form:"email" json:"email" binding:"required,email"`
Password string `form:"password" json:"password" binding:"required"`
}
//SignupForm ...
type SignupForm struct {
Name string `form:"name" json:"name" binding:"required,max=100"`
Email string `form:"email" json:"email" binding:"required,email"`
Password string `form:"password" json:"password" binding:"required"`
}