aboutsummaryrefslogblamecommitdiff
path: root/routes/requests.go
blob: a0bc13f1fea658b1d3fa0e056a33453e76285074 (plain) (tree)




















                                           
package routes

import "gitrepo.ru/neonxp/gorum/models"

type loginRequest struct {
	Email    string `form:"email"`
	Password string `form:"password"`
	Remember string `form:"remember"`
}

type registerRequest struct {
	Username  string `form:"username"`
	Email     string `form:"email"`
	Password  string `form:"password"`
	Password2 string `form:"password2"`
}

type nodeRequest struct {
	Type models.NodeType `form:"type"`
	Text string          `form:"text"`
}