diff options
author | Alexander NeonXP Kiryukhin <i@neonxp.ru> | 2024-07-29 02:47:35 +0300 |
---|---|---|
committer | Alexander NeonXP Kiryukhin <i@neonxp.ru> | 2024-07-29 02:47:35 +0300 |
commit | 96e2ce2e9d363a6296f9411ecb00168520258874 (patch) | |
tree | 09aa7fffe10eab84ae0edd39e570355984ba0148 /controllers/requests.go | |
parent | 12ed72e4e1da181a6c87319a50d3b4142788b4c0 (diff) |
Отказ от echo
Diffstat (limited to 'controllers/requests.go')
-rw-r--r-- | controllers/requests.go | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/controllers/requests.go b/controllers/requests.go new file mode 100644 index 0000000..487b7cc --- /dev/null +++ b/controllers/requests.go @@ -0,0 +1,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"` +} |