15 lines
454 B
Go
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"`
|
|
}
|