26 lines
699 B
Go
26 lines
699 B
Go
package forms
|
|
|
|
import "git.32bit.cafe/32bitcafe/guestbook/internal/validator"
|
|
|
|
type UserRegistrationForm struct {
|
|
Name string `schema:"username"`
|
|
Email string `schema:"email"`
|
|
Password string `schema:"password"`
|
|
validator.Validator `schema:"-"`
|
|
}
|
|
|
|
type UserLoginForm struct {
|
|
Email string `schema:"email"`
|
|
Password string `schema:"password"`
|
|
validator.Validator `schema:"-"`
|
|
}
|
|
|
|
type CommentCreateForm struct {
|
|
AuthorName string `schema:"authorname"`
|
|
AuthorEmail string `schema:"authoremail"`
|
|
AuthorSite string `schema:"authorsite"`
|
|
Content string `schema:"content,required"`
|
|
validator.Validator `schema:"-"`
|
|
}
|
|
|