blob: 487b7cc9c731c8e71b5ac199583d8d80dbe6ebeb (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
package controllers
type loginRequest struct {
Email string `form:"email"`
Password string `form:"password"`
Remember bool `form:"remember"`
}
type registerRequest struct {
Username string `form:"username"`
Email string `form:"email"`
Password string `form:"password"`
Password2 string `form:"password2"`
}
type topicRequest struct {
Parent int `form:"parent"`
Topic string `form:"topic"`
Text string `form:"text"`
}
type postRequest struct {
Parent int `form:"parent"`
Text string `form:"text"`
}
|